...
|
...
|
@@ -55,7 +55,7 @@ var $accountInput1 = $('#account1'), |
|
|
// 图像验证码
|
|
|
$captchaImgWrapper = $('.captcha-wrap'),
|
|
|
captchaImg = new Captcha('.captcha-wrap').init(),
|
|
|
$showCaptchaImg = false,
|
|
|
$showCaptchaImg = true,
|
|
|
getCaptchaImgVal = function() {
|
|
|
return captchaImg.getResults();
|
|
|
},
|
...
|
...
|
@@ -278,7 +278,10 @@ accountChangeEvent.add(function(type) { |
|
|
if (type === AccountLoginData.PasswordLogin.name) {
|
|
|
if ($showCaptchaImg) {
|
|
|
$captchaImgWrapper.removeClass('hide');
|
|
|
captchaImg.refresh();
|
|
|
|
|
|
setTimeout(function() {
|
|
|
captchaImg.refresh();
|
|
|
}, 500);
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -848,7 +851,7 @@ function loginAsync() { |
|
|
areaCode: getAreaCodeVal(),
|
|
|
account: currentLogin.getAccountVal(),
|
|
|
password: currentLogin.creditableToken(),
|
|
|
captcha: currentLogin.type() === 'password' ? getCaptchaImgVal() : '',
|
|
|
verifyCode: currentLogin.type() === 'password' ? getCaptchaImgVal() : '',
|
|
|
isRemember: getRememberMeVal(),
|
|
|
loginType: currentLogin.type()
|
|
|
}
|
...
|
...
|
|