...
|
...
|
@@ -48,8 +48,9 @@ function disableSMSBtn() { |
|
|
second = 60;
|
|
|
$smsCaptchaCtrl.text('获取短信验证码');
|
|
|
$smsCaptchaCtrl.removeClass('disable');
|
|
|
$smsCaptchaCtrl.removeClass('progress');
|
|
|
$smsCaptchaCtrl.removeClass('second-progress');
|
|
|
} else {
|
|
|
$smsCaptchaCtrl.addClass('second-progress');
|
|
|
$smsCaptchaCtrl.text(second + '秒后可重新操作');
|
|
|
window.setTimeout(disableSMSBtn, 1000);
|
|
|
}
|
...
|
...
|
@@ -113,7 +114,7 @@ $('#region').change(function() { |
|
|
});
|
|
|
|
|
|
ep.tail('phoneNum', 'img-captcha', function(phoneAuth, imgAuth) {
|
|
|
if (phoneAuth && imgAuth && !$smsCaptchaCtrl.hasClass('progress')) {
|
|
|
if (phoneAuth && imgAuth && !$smsCaptchaCtrl.hasClass('second-progress')) {
|
|
|
$smsCaptchaCtrl.removeClass('disable');
|
|
|
} else {
|
|
|
$smsCaptchaCtrl.addClass('disable');
|
...
|
...
|
@@ -210,12 +211,11 @@ $smsCaptchaInput.on('blur', function() { |
|
|
});
|
|
|
|
|
|
$smsCaptchaCtrl.on('click', function() {
|
|
|
if ($smsCaptchaCtrl.hasClass('disable')) {
|
|
|
if ($smsCaptchaCtrl.hasClass('disable') || $smsCaptchaCtrl.hasClass('second-progress')) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
$smsCaptchaCtrl.addClass('disable');
|
|
|
$smsCaptchaCtrl.addClass('progress');
|
|
|
|
|
|
disableSMSBtn();
|
|
|
sendSMSCaptcha();
|
...
|
...
|
|