|
@@ -21,7 +21,9 @@ class SmsLoginNew extends Page { |
|
@@ -21,7 +21,9 @@ class SmsLoginNew extends Page { |
21
|
mobileInput: $('input[name=mobile]'),
|
21
|
mobileInput: $('input[name=mobile]'),
|
22
|
getVerifyCodeBtn: $('#getVerifyCodeBtn'),
|
22
|
getVerifyCodeBtn: $('#getVerifyCodeBtn'),
|
23
|
verifyCode: $('input[name=verifyCode]'),
|
23
|
verifyCode: $('input[name=verifyCode]'),
|
24
|
- smsLoginBtn: $('#smsLoginBtn')
|
24
|
+ smsLoginBtn: $('#smsLoginBtn'),
|
|
|
25
|
+ getPswrdBtn: $('#getPswrdBtn'),
|
|
|
26
|
+ getPasswordBox: $('.get-password-box')
|
25
|
};
|
27
|
};
|
26
|
|
28
|
|
27
|
this.init();
|
29
|
this.init();
|
|
@@ -42,6 +44,8 @@ class SmsLoginNew extends Page { |
|
@@ -42,6 +44,8 @@ class SmsLoginNew extends Page { |
42
|
this.selector.mobileInput.bind('input', this.changeBtnStatus.bind(this));
|
44
|
this.selector.mobileInput.bind('input', this.changeBtnStatus.bind(this));
|
43
|
this.selector.verifyCode.bind('input', this.changeBtnStatus.bind(this));
|
45
|
this.selector.verifyCode.bind('input', this.changeBtnStatus.bind(this));
|
44
|
this.selector.smsLoginBtn.on('click', this.login.bind(this));
|
46
|
this.selector.smsLoginBtn.on('click', this.login.bind(this));
|
|
|
47
|
+ this.selector.getPswrdBtn.on('click', this.showGetPasswordBox.bind(this));
|
|
|
48
|
+ this.selector.getPasswordBox.on('click', this.hiddenGetPasswordBox.bind(this));
|
45
|
|
49
|
|
46
|
if ($captcha.data('geetest')) {
|
50
|
if ($captcha.data('geetest')) {
|
47
|
this.selector.getVerifyCodeBtn.on('click', this.getVerifyCode.bind(this));
|
51
|
this.selector.getVerifyCodeBtn.on('click', this.getVerifyCode.bind(this));
|
|
@@ -183,6 +187,21 @@ class SmsLoginNew extends Page { |
|
@@ -183,6 +187,21 @@ class SmsLoginNew extends Page { |
183
|
clearMobile() {
|
187
|
clearMobile() {
|
184
|
this.selector.mobileInput.val('');
|
188
|
this.selector.mobileInput.val('');
|
185
|
}
|
189
|
}
|
|
|
190
|
+
|
|
|
191
|
+ /**
|
|
|
192
|
+ * 显示找回密码遮罩
|
|
|
193
|
+ */
|
|
|
194
|
+ showGetPasswordBox() {
|
|
|
195
|
+ this.selector.getPasswordBox.removeClass('hide');
|
|
|
196
|
+ }
|
|
|
197
|
+
|
|
|
198
|
+ /**
|
|
|
199
|
+ * 隐藏找回密码遮罩
|
|
|
200
|
+ */
|
|
|
201
|
+ hiddenGetPasswordBox() {
|
|
|
202
|
+ this.selector.getPasswordBox.addClass('hide');
|
|
|
203
|
+ return false;
|
|
|
204
|
+ }
|
186
|
}
|
205
|
}
|
187
|
|
206
|
|
188
|
module.exports = SmsLoginNew; |
207
|
module.exports = SmsLoginNew; |