my.html
2.3 KB
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
59
60
61
62
63
64
65
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="../assets/css/swiper-3.4.2.min.css">
<script src="../assets/js/base.js" type="text/javascript"></script>
<link rel="stylesheet" href="//at.alicdn.com/t/font_939574_unwnof3vehp.css">
<link rel="stylesheet" href="../assets/css/style.css">
<style>
</style>
<title>个人中心</title>
</head>
<body>
<div class="container">
<div class="topmain my_top" style="background-image: url('../assets/imgs/aicon_02@2x.png')">
<div class="headerimg">
<img src="../assets/imgs/aicon_03@2x.png" alt="">
</div>
</div>
<div class="input_box">
<div class="input_in">
<div class="input_tab">负责人姓名:</div>
<div class="input_cell">
<input type="text" value="孙晓晓" class="name">
</div>
</div>
<div class="input_in">
<div class="input_tab">负责人手机号:</div>
<div class="input_cell">
<input type="number" value="15732136232" class="tel">
</div>
</div>
</div>
<div class="my_btn">修改资料</div>
</div>
<!--toast-->
<div id="toast" style="display: none;">
<div class="weui-mask_transparent"></div>
<div class="weui-toast">
<i class="weui-icon-success-no-circle weui-icon_toast"></i>
<p class="weui-toast__content">已完成</p>
</div>
</div>
<script type="text/javascript" src="../assets/js/jquery-2.1.0.js"></script>
<script type="text/javascript" src="../assets/js/common.js"></script>
<script type="text/javascript" src="../assets/js/Augly_Verification.js"></script>
<script type="text/javascript" src="../assets/js/swiper-3.4.2.jquery.min.js"></script>
<script>
$('.my_btn').click(function () {
if($('.name').val()==''){
toast('请填写姓名')
}else if($('.tel').val()==''){
toast('请填写电话号码')
}else if(! AuglyTest_phone.test($('.tel').val())){
toast('请电话号码不正确')
}else{
toast('验证通过');
}
})
</script>
</body>
</html>