...
|
...
|
@@ -505,7 +505,15 @@ function sendCaptchaSmsAsync() { |
|
|
url: '/passport/login/sms/send',
|
|
|
data: {
|
|
|
area: getArea(),
|
|
|
mobile: getMoblie()
|
|
|
mobile: getMoblie(),
|
|
|
verifyCode: $.trim($imgCaptchaInput.val())
|
|
|
}
|
|
|
}).then(function(data) {
|
|
|
if (data.captchaCount === false) {
|
|
|
errTip($imgCaptchaInput, data.message);
|
|
|
ep.emit('captcha', false);
|
|
|
refreshCaptcha();
|
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
}
|
...
|
...
|
@@ -644,6 +652,8 @@ $smsBtn.on('mousedown', function() { |
|
|
|
|
|
$imgCaptchaInput.off('blur'); // 点发送验证码按钮不需要执行图形验证码的blur事件 因此移除
|
|
|
$imgCaptchaInput.removeClass('focus');
|
|
|
$smsCaptchaInput.off('blur');
|
|
|
$smsCaptchaInput.removeClass('focus');
|
|
|
|
|
|
validateAccount()
|
|
|
.then(function() {
|
...
|
...
|
@@ -656,15 +666,16 @@ $smsBtn.on('mousedown', function() { |
|
|
});
|
|
|
|
|
|
// 短信验证码
|
|
|
$smsCaptchaInput.on('blur', function() {
|
|
|
function smsCaptchaInput() {
|
|
|
$smsCaptchaInput.removeClass('focus');
|
|
|
validateCaptchaSms();
|
|
|
}).on('focus', function() {
|
|
|
}
|
|
|
$smsCaptchaInput.on('focus', function() {
|
|
|
$smsCaptchaInput.addClass('focus');
|
|
|
hideTip($smsCaptchaInput);
|
|
|
$(this).off('blur').on('blur', smsCaptchaInput);
|
|
|
});
|
|
|
|
|
|
|
|
|
/** **************************************************登录事件********************************************/
|
|
|
// 登录
|
|
|
function login() {
|
...
|
...
|
|