master
yulingwei 4 years ago
parent e4a29b8bb4
commit cdf2d903cd

@ -25,7 +25,7 @@
<span class="input-group-addon"><i class="input_icon input_icon_barcode"></i></span>
<input class="form-control" name="code" id="code" placeholder="短信验证码" autocomplete="off" maxlength="6">
</div>
<div class="f-wsn"><input id="sendtelCode" class="btn btn_primary" readonly onfocus="this.blur()" value="发送验证码" style="width:100px;margin-left:20px" title="" target-form="paw_info"> </div>
<div class="f-wsn"><button id="sendtelCode" class="btn btn_primary" style="width:140px;" target-form="paw_info">发送验证码</button></div>
<div class="input-status"></div>
</div>
<div class="form-group ff clearfix">
@ -249,19 +249,16 @@
}
});
var r = function(i, t) {
if (i>0) {
var r = 60;
e='#sendSasfeCode';
$(e).removeClass('g-btn').addClass('g-btntn');
var a = setInterval(function() {
r--;
$(e).text(r + '秒');
0 == r && ($(e).removeClass('g-btntn').addClass('g-btn'),
$(e).text('获取验证码'),
clearInterval(a))
},1000)
}
};
var e = $('#sendtelCode');
var t = 60;
e.attr('disabled', true).text(t+'秒');
var a = setInterval(function() {
t--;
e.text(t+'秒');
t>0 || (clearInterval(a),e.attr('disabled', false).text('重新发送'));
},1000);
};
return false;
});
</script>
</block>

@ -59,7 +59,7 @@
<td class="l"><span style="color:red">*</span>短信验证码</td>
<td class="r"><input type="text" class="input txt" name="code" id="code" style="width:230px" placeholder="请输入短信验证码">
<span id="confirm_password_tip"></span>
<input id="sendtelCode" readonly onfocus="this.blur()" class="tj btn ajax-post" value="发送验证码" style="padding-left:40px;width:120px;margin-left:20px" title="" target-form="paw_info">
<button id="sendtelCode" class="tj btn" target-form="paw_info">发送验证码</button>
</td>
</tr>
@ -208,8 +208,8 @@
AF.users.account_edit(1429);
AF.users.account_content_edit(1429);
// AF.users.account_edit(1429);
// AF.users.account_content_edit(1429);
_init_area();
_reset_area('','','');
});
@ -245,19 +245,16 @@
}
});
var r = function(i, t) {
if (i>0) {
var r = 60;
e='#sendSasfeCode';
$(e).removeClass('g-btn').addClass('g-btntn');
var a = setInterval(function() {
r--;
$(e).text(r + '秒');
0 == r && ($(e).removeClass('g-btntn').addClass('g-btn'),
$(e).text('获取验证码'),
clearInterval(a))
},1000)
}
var e = $('#sendtelCode');
var t = 60;
e.addClass('disabled').attr('disabled', true).text(t+'秒');
var a = setInterval(function() {
t--;
e.text(t+'秒');
t>0 || (clearInterval(a),e.removeClass('disabled').attr('disabled', false).text('重新发送'));
},1000);
};
return false;
});
</script>
</block>

@ -3,11 +3,11 @@
<link href="__CSS__/20180207/account.css" rel="stylesheet" >
<style>.notice_tip {padding-left:20px;color:#999;font-size:12px;}
.formtxt{display:inline-block;width:232px;}
/* .trunk-list .table2 .r .qrcodeboxwrap {padding-left:0;padding-right:20px;padding-bottom:20px;}
.trunk-list .table2 .r .qrcodeboxwrap {padding-left:0;padding-right:20px;padding-bottom:20px;}
.qrcodebox img {width:100px;height:100px;}
.qrcodebox p {font-size:12px;margin:0;color:#666;}
.qrcodebox p span{color:red;}
.qrcodeboxwrap~.notice_tip{vertical-align:top;display:inline-block;margin-top:20px;} */
.qrcodeboxwrap~.notice_tip{vertical-align:top;display:inline-block;margin-top:20px;}
.mail_suffix {position: absolute;
top: 43px;
@ -56,12 +56,17 @@
<span id="confirm_password_tip"></span></td>
</tr>
<tr>
<td class="l">手机号码</td>
<td class="r"><input type="text" id='login_phone' readonly disabled class="input txt" value="{$login_phone}">
<span id="confirm_password_tip"><a href="{:U("bindTel")}">修改号码</a></span>
</td>
</tr>
<tr>
<td class="l"><span style="color:red">*</span>短信验证码</td>
<input type="hidden" value="{$login_phone}" id="login_phone">
<td class="r"><input type="text" class="input txt" name="code" id="code" style="width:230px" placeholder="请输入短信验证码">
<span id="confirm_password_tip"></span>
<input id="sendtelCode" readonly onfocus="this.blur()" class="tj btn ajax-post" value="发送验证码" style="padding-left:40px;width:120px;margin-left:20px" title="" target-form="paw_info">
<button id="sendtelCode" class="tj btn" target-form="paw_info">发送验证码</button>
</td>
</tr>
@ -249,19 +254,16 @@
}
});
var r = function(i, t) {
if (i>0) {
var r = 60;
e='#sendSasfeCode';
$(e).removeClass('g-btn').addClass('g-btntn');
var a = setInterval(function() {
r--;
$(e).text(r + '秒');
0 == r && ($(e).removeClass('g-btntn').addClass('g-btn'),
$(e).text('获取验证码'),
clearInterval(a))
},1000)
}
};
var e = $('#sendtelCode');
var t = 60;
e.addClass('disabled').attr('disabled', true).text(t+'秒');
var a = setInterval(function() {
t--;
e.text(t+'秒');
t>0 || (clearInterval(a),e.removeClass('disabled').attr('disabled', false).text('重新发送'));
},1000);
};
return false;
});
</script>
</block>

Loading…
Cancel
Save