-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmobile.html
executable file
·58 lines (58 loc) · 1.67 KB
/
mobile.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>手机归属地查询</title>
<link rel="stylesheet" href="static/css/bootstrap.min.css" type="text/css">
<script src="static/js/jquery-3.0.0.min.js"></script>
<script src="static/js/base.js"></script>
<style>
.container {
width: 300px;
}
#phoneInfo {
display: none;
}
</style>
</head>
<body>
<div style="height: 50px;"></div>
<div class="container">
<div class="form-group">
<label for="">请输入手机号码</label>
<div class="input-group">
<input type="text" id="phoneText" class="form-control"/>
<span class="input-group-btn">
<button class="btn btn-default" id="subPhone">查询</button>
</span>
</div>
</div>
<table class="table" id="phoneInfo">
<tr>
<td>手机号码</td>
<td id="phoneNumber"></td>
</tr>
<tr>
<td>归属地</td>
<td id="phoneProvince"></td>
</tr>
<tr>
<td>运营商</td>
<td id="phoneCatName"></td>
</tr>
<tr>
<td>其他</td>
<td id="phoneMsg"></td>
</tr>
</table>
</div>
</body>
<script>
$(document).ready(function(){
$('#subPhone').click(function(){
var phone = $('#phoneText').val();
IMOOC.GLOBAL.ajax('api.php', 'post', {phone: phone}, 'json', IMOOC.APPS.QUERYMOBILE.dataCallback);
});
});
</script>
</html>