...
|
...
|
@@ -120,7 +120,10 @@ var mailPhoneRegx = require('../common/mail-phone-regx'), // 邮箱格式验证 |
|
|
mailAc = require('../common/ac-email'); // 邮箱自动完成
|
|
|
|
|
|
// 刷新手机短信图形验证码
|
|
|
var refreshSmsImgCallBack = $.Callbacks(); // eslint-disable-line
|
|
|
var refreshSmsCaptchaEvent = $.Callbacks(); // eslint-disable-line
|
|
|
|
|
|
// 刷新手机密码图形验证码
|
|
|
var refreshPasswordCaptchaEvent = $.Callbacks(); // eslint-disable-line
|
|
|
|
|
|
// 记住我符号
|
|
|
var checkboxSymbol = {
|
...
|
...
|
@@ -321,10 +324,14 @@ mobileTipShowOnce.add(function() { |
|
|
$deviceTips.removeClass('hide');
|
|
|
});
|
|
|
|
|
|
refreshSmsImgCallBack.add(function() {
|
|
|
refreshSmsCaptchaEvent.add(function() {
|
|
|
refreshSmsCaptchaImg(); // eslint-disable-line
|
|
|
});
|
|
|
|
|
|
refreshPasswordCaptchaEvent.add(function() {
|
|
|
refreshPasswordCaptchaImg(); // eslint-disable-line
|
|
|
});
|
|
|
|
|
|
/** ************************************************************************/
|
|
|
/* 加载自定义库 */
|
|
|
/** ************************************************************************/
|
...
|
...
|
@@ -350,6 +357,7 @@ function errTipHide($tip, $input) { |
|
|
/** ************************************************************************/
|
|
|
|
|
|
function showAccountTip1(msg) {
|
|
|
refreshPasswordCaptchaEvent.fire();
|
|
|
return errTipShow($accountTip1, $accountInput1, msg);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -358,7 +366,7 @@ function hideAccountTip1() { |
|
|
}
|
|
|
|
|
|
function showAccountTip2(msg) {
|
|
|
refreshSmsImgCallBack.fire();
|
|
|
refreshSmsCaptchaEvent.fire();
|
|
|
return errTipShow($accountTip2, $accountInput2, msg);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -369,6 +377,7 @@ function hideAccountTip2() { |
|
|
/** ************************************************************************/
|
|
|
|
|
|
function showPasswordTip(msg) {
|
|
|
refreshPasswordCaptchaEvent.fire();
|
|
|
return errTipShow($passwordTip, $passwordInput, msg);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -385,7 +394,7 @@ function hideCaptchaImgTip() { |
|
|
/** ************************************************************************/
|
|
|
|
|
|
function showCaptchaSmsTip(msg) {
|
|
|
refreshSmsImgCallBack.fire();
|
|
|
refreshSmsCaptchaEvent.fire();
|
|
|
return errTipShow($captchaSmsTip, $captchaSmsInput, msg);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -396,7 +405,7 @@ function hideCaptchaSmsTip() { |
|
|
/** ************************************************************************/
|
|
|
|
|
|
function showSmsCaptchaImgTip() {
|
|
|
refreshSmsImgCallBack.fire();
|
|
|
refreshSmsCaptchaEvent.fire();
|
|
|
smsCaptchaImg.showTip();
|
|
|
}
|
|
|
|
...
|
...
|
@@ -544,6 +553,10 @@ function validateCaptchaImg() { |
|
|
.then(hideCaptchaSmsTip);
|
|
|
}
|
|
|
|
|
|
function refreshPasswordCaptchaImg() {
|
|
|
return captchaImg.refresh();
|
|
|
}
|
|
|
|
|
|
/** ************************************************************************/
|
|
|
/* 短信验证码 */
|
|
|
/** ************************************************************************/
|
...
|
...
|
|