|
@@ -250,6 +250,8 @@ var tpl = function(text) { |
|
@@ -250,6 +250,8 @@ var tpl = function(text) { |
250
|
].join('');
|
250
|
].join('');
|
251
|
};
|
251
|
};
|
252
|
|
252
|
|
|
|
253
|
+require('../../common/promise');
|
|
|
254
|
+
|
253
|
// 切换登录方式
|
255
|
// 切换登录方式
|
254
|
accountChangeEvent.add(function(type) {
|
256
|
accountChangeEvent.add(function(type) {
|
255
|
currentLogin = AccountLoginData[type];
|
257
|
currentLogin = AccountLoginData[type];
|
|
@@ -279,9 +281,9 @@ accountChangeEvent.add(function(type) { |
|
@@ -279,9 +281,9 @@ accountChangeEvent.add(function(type) { |
279
|
if ($showCaptchaImg) {
|
281
|
if ($showCaptchaImg) {
|
280
|
$captchaImgWrapper.removeClass('hide');
|
282
|
$captchaImgWrapper.removeClass('hide');
|
281
|
|
283
|
|
282
|
- setTimeout(function() {
|
284
|
+ $.sleep(500).then(function() {
|
283
|
captchaImg.refresh();
|
285
|
captchaImg.refresh();
|
284
|
- }, 500);
|
286
|
+ });
|
285
|
}
|
287
|
}
|
286
|
}
|
288
|
}
|
287
|
|
289
|
|
|
@@ -651,7 +653,9 @@ function validateSmsCaptchaImg() { |
|
@@ -651,7 +653,9 @@ function validateSmsCaptchaImg() { |
651
|
}
|
653
|
}
|
652
|
|
654
|
|
653
|
function refreshSmsCaptchaImg() {
|
655
|
function refreshSmsCaptchaImg() {
|
654
|
- smsCaptchaImg.refresh();
|
656
|
+ $.sleep(1000).then(function() {
|
|
|
657
|
+ smsCaptchaImg.refresh();
|
|
|
658
|
+ });
|
655
|
}
|
659
|
}
|
656
|
|
660
|
|
657
|
/** ************************************************************************/
|
661
|
/** ************************************************************************/
|