...
|
...
|
@@ -22,8 +22,11 @@ class MobileNew extends Page { |
|
|
mobileInput: $('input[name=mobile]'),
|
|
|
clearMobile: $('#clearMobile'),
|
|
|
verifyCodeInput: $('input[name=verifyCode]'),
|
|
|
passwordInput: $('input[name=password]'),
|
|
|
getVerifyCodeBtn: $('#getVerifyCodeBtn'),
|
|
|
passwordInput: $('input[name=password]'),
|
|
|
passwordEyeIcon: $('#passwordEyeIcon'),
|
|
|
eyeClose: $('.eye-close'),
|
|
|
eyeOpen: $('.eye-open'),
|
|
|
backMobileResetBtn: $('#backMobileResetBtn')
|
|
|
};
|
|
|
|
...
|
...
|
@@ -41,11 +44,27 @@ class MobileNew extends Page { |
|
|
this.selector.clearMobile.on('click', this.clearMobile.bind(this));
|
|
|
this.selector.verifyCodeInput.on('input', this.changeBtnStatus.bind(this));
|
|
|
this.selector.passwordInput.on('input', this.changeBtnStatus.bind(this));
|
|
|
this.selector.passwordEyeIcon.on('click', this.passwordShowStatus.bind(this));
|
|
|
this.selector.getVerifyCodeBtn.on('click', this.getVerifyCode.bind(this));
|
|
|
this.selector.backMobileResetBtn.on('click', this.resetPassword.bind(this));
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 隐藏显示密码
|
|
|
*/
|
|
|
passwordShowStatus() {
|
|
|
if (this.selector.eyeOpen.hasClass('hide')) {
|
|
|
this.selector.passwordInput.attr('type', 'text');
|
|
|
this.selector.eyeClose.addClass('hide');
|
|
|
this.selector.eyeOpen.removeClass('hide');
|
|
|
} else {
|
|
|
this.selector.passwordInput.attr('type', 'password');
|
|
|
this.selector.eyeOpen.addClass('hide');
|
|
|
this.selector.eyeClose.removeClass('hide');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 清除输入的手机号
|
|
|
*/
|
|
|
clearMobile() {
|
...
|
...
|
|