...
|
...
|
@@ -21,7 +21,9 @@ class SmsLoginNew extends Page { |
|
|
mobileInput: $('input[name=mobile]'),
|
|
|
getVerifyCodeBtn: $('#getVerifyCodeBtn'),
|
|
|
verifyCode: $('input[name=verifyCode]'),
|
|
|
smsLoginBtn: $('#smsLoginBtn')
|
|
|
smsLoginBtn: $('#smsLoginBtn'),
|
|
|
getPswrdBtn: $('#getPswrdBtn'),
|
|
|
getPasswordBox: $('.get-password-box')
|
|
|
};
|
|
|
|
|
|
this.init();
|
...
|
...
|
@@ -42,6 +44,8 @@ class SmsLoginNew extends Page { |
|
|
this.selector.mobileInput.bind('input', this.changeBtnStatus.bind(this));
|
|
|
this.selector.verifyCode.bind('input', this.changeBtnStatus.bind(this));
|
|
|
this.selector.smsLoginBtn.on('click', this.login.bind(this));
|
|
|
this.selector.getPswrdBtn.on('click', this.showGetPasswordBox.bind(this));
|
|
|
this.selector.getPasswordBox.on('click', this.hiddenGetPasswordBox.bind(this));
|
|
|
|
|
|
if ($captcha.data('geetest')) {
|
|
|
this.selector.getVerifyCodeBtn.on('click', this.getVerifyCode.bind(this));
|
...
|
...
|
@@ -183,6 +187,21 @@ class SmsLoginNew extends Page { |
|
|
clearMobile() {
|
|
|
this.selector.mobileInput.val('');
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 显示找回密码遮罩
|
|
|
*/
|
|
|
showGetPasswordBox() {
|
|
|
this.selector.getPasswordBox.removeClass('hide');
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 隐藏找回密码遮罩
|
|
|
*/
|
|
|
hiddenGetPasswordBox() {
|
|
|
this.selector.getPasswordBox.addClass('hide');
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
module.exports = SmsLoginNew; |
...
|
...
|
|