...
|
...
|
@@ -253,30 +253,30 @@ accountChangeEvent.add(function(type) { |
|
|
|
|
|
// 重置状态
|
|
|
accountChangeEvent.add(function(type) {
|
|
|
//hideAccountTip1(); // eslint-disable-line
|
|
|
//hideAccountTip2(); // eslint-disable-line
|
|
|
//hideCaptchaImgTip(); // eslint-disable-line
|
|
|
//hideCaptchaSmsTip(); // eslint-disable-line
|
|
|
//hidePasswordTip(); // eslint-disable-line
|
|
|
//
|
|
|
//$passwordInput.val('');
|
|
|
//$captchaImgInput.val('');
|
|
|
//$captchaSmsInput.val('');
|
|
|
//$captchaSmsTokenHideInput.val('');
|
|
|
//
|
|
|
//if (type === AccountLoginData.QRCodeLogin.name) {
|
|
|
// $qrCodeOverLayer.empty();
|
|
|
// initQrCode(); // eslint-disable-line
|
|
|
//}
|
|
|
hideAccountTip1(); // eslint-disable-line
|
|
|
hideAccountTip2(); // eslint-disable-line
|
|
|
hideCaptchaImgTip(); // eslint-disable-line
|
|
|
hideCaptchaSmsTip(); // eslint-disable-line
|
|
|
hidePasswordTip(); // eslint-disable-line
|
|
|
|
|
|
$passwordInput.val('');
|
|
|
$captchaImgInput.val('');
|
|
|
$captchaSmsInput.val('');
|
|
|
$captchaSmsTokenHideInput.val('');
|
|
|
|
|
|
if (type === AccountLoginData.QRCodeLogin.name) {
|
|
|
$qrCodeOverLayer.empty();
|
|
|
initQrCode(); // eslint-disable-line
|
|
|
}
|
|
|
});
|
|
|
|
|
|
// 保留已输入的帐号信息
|
|
|
accountChangeEvent.add(function(type) {
|
|
|
//if (type === AccountLoginData.SMSLogin.name) {
|
|
|
// $accountInput2.val($accountInput1.val());
|
|
|
//} else {
|
|
|
// $accountInput1.val($accountInput2.val());
|
|
|
//}
|
|
|
if (type === AccountLoginData.SMSLogin.name) {
|
|
|
$accountInput2.val($accountInput1.val());
|
|
|
} else {
|
|
|
$accountInput1.val($accountInput2.val());
|
|
|
}
|
|
|
});
|
|
|
|
|
|
desktopTipShowOnce.add(function() {
|
...
|
...
|
@@ -1073,35 +1073,31 @@ $deviceSwitcher.on('click', function() { |
|
|
$parent = $this.parent(),
|
|
|
type = $parent.data('type');
|
|
|
|
|
|
// 二维码登录
|
|
|
//$deviceTips.addClass('hide'); // 提示一直隐藏
|
|
|
//
|
|
|
//$(deviceLoginData[type].ele).removeClass('hide');
|
|
|
//$(deviceLoginData[type].hideEle).addClass('hide');
|
|
|
//
|
|
|
//$parent.data('type', deviceLoginData[type].dataType);
|
|
|
//$parent.find('#device-tip').html(deviceLoginData[type].tipText);
|
|
|
//
|
|
|
//$this.removeClass(deviceLoginData[type].removeClass)
|
|
|
// .addClass(deviceLoginData[type].bgClass);
|
|
|
// end 二维码登录结束
|
|
|
$deviceTips.addClass('hide'); // 提示一直隐藏
|
|
|
|
|
|
$(deviceLoginData[type].ele).removeClass('hide');
|
|
|
$(deviceLoginData[type].hideEle).addClass('hide');
|
|
|
|
|
|
$parent.data('type', deviceLoginData[type].dataType);
|
|
|
$parent.find('#device-tip').html(deviceLoginData[type].tipText);
|
|
|
|
|
|
$this.removeClass(deviceLoginData[type].removeClass)
|
|
|
.addClass(deviceLoginData[type].bgClass);
|
|
|
|
|
|
if (type === 'DesktopLogin') {
|
|
|
//desktopTipShowOnce.fire();
|
|
|
desktopTipShowOnce.fire();
|
|
|
|
|
|
// 还原桌面登录方式
|
|
|
accountChangeEvent.fire(getDesktopLoginType());
|
|
|
|
|
|
//stopPollingQrCodeTimer();
|
|
|
stopPollingQrCodeTimer();
|
|
|
} else {
|
|
|
mobileTipShowOnce.fire();
|
|
|
|
|
|
accountChangeEvent.fire('QRCodeLogin');
|
|
|
|
|
|
refreshQrCodeAsync().then(pollingThisQrCodeStatusAsync);
|
|
|
}
|
|
|
//} else {
|
|
|
// mobileTipShowOnce.fire();
|
|
|
//
|
|
|
// accountChangeEvent.fire('QRCodeLogin');
|
|
|
//
|
|
|
// refreshQrCodeAsync().then(pollingThisQrCodeStatusAsync);
|
|
|
//}
|
|
|
});
|
|
|
|
|
|
// 鼠标移动到上面
|
...
|
...
|
|