binding.html
4.9 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html>
<head>
<title>{$user_login} - 绑定账号</title>
<meta name="keywords" content=""/>
<meta name="description" content="">
<include file="public@head"/>
</head>
<body class="body-white" id="top">
<include file="public@nav" />
<div class="container tc-main">
<div class="row">
<div class="col-md-3">
<include file="public@usernav" />
</div>
<div class="col-md-9">
<div class="tabs">
<ul class="nav nav-tabs">
<li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-exchange"></i> 绑定账号</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="one">
<br>
<if condition="!$mobile">
<form class="js-ajax-form" action="{:url('user/Profile/bindingMobile')}" method="post">
<div class="form-group">
<label for="js-mobile-input">手机</label>
<div class="row">
<div class="col-md-6">
<input type="text" class="form-control" placeholder="手机号" id="js-mobile-input" name="username"><br>
</div>
</div>
<div class="row">
<div class="col-md-3">
<input type="text" name="captcha" placeholder="验证码" class="form-control"><br>
</div>
<div class="col-md-3">
<captcha height="38" width="180" font-size="20"/><br><br>
</div>
</div>
<div class="row">
<div class="col-md-3">
<input type="text" class="form-control" placeholder="手机验证码" name="verification_code"><br>
</div>
<div class="col-md-3">
<a class="btn btn-success btn-block js-get-mobile-code" data-wait-msg="[second]后才能再次获取" data-mobile-input="#js-mobile-input" data-url="{:url('user/VerificationCode/send')}">获取手机验证码</a><br>
</div>
</div>
<div class="row">
<div class="col-md-6">
<button type="submit" class="btn btn-primary btn-block js-ajax-submit">验证</button><br>
</div>
</div>
</div>
</form>
<else />
<div class="form-group">
<label for="js-mobile">手机</label>
<div class="row">
<div class="col-md-6">
<input type="text" class="form-control" placeholder="手机" id="js-mobile" name="mobile" value="{$mobile}" disabled><br>
</div>
<div class="col-md-3">
<button type="submit" class="btn btn-primary btn-block" disabled>已绑定手机</button><br>
</div>
</div>
</div>
</if>
<if condition="empty($user_email)">
<form class="js-ajax-form" action="{:url('user/Profile/bindingEmail')}" method="post">
<div class="form-group">
<label for="js-email-input">邮箱</label>
<div class="row">
<div class="col-md-6">
<input type="text" class="form-control" placeholder="邮箱" id="js-email-input" name="username"><br>
</div>
</div>
<div class="row">
<div class="col-md-3">
<input type="text" name="captcha" placeholder="验证码" class="form-control"><br>
</div>
<div class="col-md-3">
<captcha height="38" width="180" font-size="20"/><br><br>
</div>
</div>
<div class="row">
<div class="col-md-3">
<input type="text" class="form-control" placeholder="邮件验证码" name="verification_code"><br>
</div>
<div class="col-md-3">
<a class="btn btn-success btn-block js-get-email-code" data-wait-msg="[second]后才能再次获取" data-email-input="#js-email-input" data-url="{:url('user/VerificationCode/send')}" data-init-second-left="60">获取邮箱验证码</a><br>
</div>
</div>
<div class="row">
<div class="col-md-6">
<button type="submit" class="btn btn-primary btn-block js-ajax-submit">验证</button><br>
</div>
</div>
</div>
</form>
<else />
<div class="form-group">
<label for="js-email">邮箱</label>
<div class="row">
<div class="col-md-6">
<input type="text" class="form-control" placeholder="邮箱" id="js-email" name="email" value="{$user_email}" disabled><br>
</div>
<div class="col-md-3">
<button type="submit" class="btn btn-primary btn-block" disabled>已绑定邮箱</button><br>
</div>
</div>
</div>
</if>
</div>
</div>
</div>
</div>
</div>
<include file="public@footer" />
</div>
<!-- /container -->
<include file="public@scripts" />
</body>
</html>