...
|
...
|
@@ -427,7 +427,9 @@ function disableSMSBtn() { |
|
|
second = 60;
|
|
|
$smsCaptchaCtrl.text('获取短信验证码');
|
|
|
$smsCaptchaCtrl.removeClass('disable');
|
|
|
$smsCaptchaCtrl.removeClass('progress');
|
|
|
} else {
|
|
|
$smsCaptchaCtrl.add('progress');
|
|
|
$smsCaptchaCtrl.text(second + '秒后可重新操作');
|
|
|
window.setTimeout(disableSMSBtn, 1000);
|
|
|
}
|
...
|
...
|
@@ -460,8 +462,8 @@ exports.init = function() { |
|
|
});
|
|
|
|
|
|
// 图形验证通过时,发送短信按钮可点击
|
|
|
ep.on('captcha-img', function(auth) {
|
|
|
if (auth) {
|
|
|
ep.tail('captcha-img', 'phone-num', function(captchaAuth, phoneAuth) {
|
|
|
if (captchaAuth && phoneAuth && !$smsCaptchaCtrl.hasClass('progress')) {
|
|
|
$smsCaptchaCtrl.removeClass('disable');
|
|
|
} else {
|
|
|
$smsCaptchaCtrl.addClass('disable');
|
...
|
...
|
|