Showing
2 changed files
with
4 additions
and
4 deletions
@@ -40,9 +40,9 @@ class RegisterNew { | @@ -40,9 +40,9 @@ class RegisterNew { | ||
40 | this.view.passwordEyeIcon.on('click', this.passwordShowStatus.bind(this)); | 40 | this.view.passwordEyeIcon.on('click', this.passwordShowStatus.bind(this)); |
41 | 41 | ||
42 | if ($captcha.data('geetest')) { | 42 | if ($captcha.data('geetest')) { |
43 | - validate.init(); | ||
44 | this.view.getVerifyCodeBtn.on('click', this.getVerifyCode.bind(this)); | 43 | this.view.getVerifyCodeBtn.on('click', this.getVerifyCode.bind(this)); |
45 | } else { | 44 | } else { |
45 | + validate.init(); | ||
46 | this.view.getVerifyCodeBtn.on('click', this.imgVerifyInit.bind(this)); | 46 | this.view.getVerifyCodeBtn.on('click', this.imgVerifyInit.bind(this)); |
47 | } | 47 | } |
48 | } | 48 | } |
@@ -54,7 +54,7 @@ class RegisterNew { | @@ -54,7 +54,7 @@ class RegisterNew { | ||
54 | if (!this.view.getVerifyCodeBtn.hasClass('active')) { | 54 | if (!this.view.getVerifyCodeBtn.hasClass('active')) { |
55 | return; | 55 | return; |
56 | } | 56 | } |
57 | - validate.init(); | 57 | + validate.refresh(); |
58 | $(document).off('click.refresh').on('click.refresh', '.img-check-refresh', this.imgVerifyInit.bind(this)); | 58 | $(document).off('click.refresh').on('click.refresh', '.img-check-refresh', this.imgVerifyInit.bind(this)); |
59 | if (!$('#getVerifyCodeBtnByValidate').length) { | 59 | if (!$('#getVerifyCodeBtnByValidate').length) { |
60 | $captcha.append('<div class="validate-sub-btn"><button id="getVerifyCodeBtnByValidate">获取验证码</button></div>'); // eslint-disable-line | 60 | $captcha.append('<div class="validate-sub-btn"><button id="getVerifyCodeBtnByValidate">获取验证码</button></div>'); // eslint-disable-line |
@@ -44,9 +44,9 @@ class SmsLoginNew extends Page { | @@ -44,9 +44,9 @@ class SmsLoginNew extends Page { | ||
44 | this.selector.smsLoginBtn.on('click', this.login.bind(this)); | 44 | this.selector.smsLoginBtn.on('click', this.login.bind(this)); |
45 | 45 | ||
46 | if ($captcha.data('geetest')) { | 46 | if ($captcha.data('geetest')) { |
47 | - validate.init(); | ||
48 | this.selector.getVerifyCodeBtn.on('click', this.getVerifyCode.bind(this)); | 47 | this.selector.getVerifyCodeBtn.on('click', this.getVerifyCode.bind(this)); |
49 | } else { | 48 | } else { |
49 | + validate.init(); | ||
50 | this.selector.getVerifyCodeBtn.on('click', this.imgVerifyInit.bind(this)); | 50 | this.selector.getVerifyCodeBtn.on('click', this.imgVerifyInit.bind(this)); |
51 | } | 51 | } |
52 | } | 52 | } |
@@ -58,7 +58,7 @@ class SmsLoginNew extends Page { | @@ -58,7 +58,7 @@ class SmsLoginNew extends Page { | ||
58 | if (!this.selector.getVerifyCodeBtn.hasClass('active')) { | 58 | if (!this.selector.getVerifyCodeBtn.hasClass('active')) { |
59 | return; | 59 | return; |
60 | } | 60 | } |
61 | - validate.init(); | 61 | + validate.refresh(); |
62 | $(document).off('click.refresh').on('click.refresh', '.img-check-refresh', this.imgVerifyInit.bind(this)); | 62 | $(document).off('click.refresh').on('click.refresh', '.img-check-refresh', this.imgVerifyInit.bind(this)); |
63 | if (!$('#getVerifyCodeBtnByValidate').length) { | 63 | if (!$('#getVerifyCodeBtnByValidate').length) { |
64 | $captcha.append('<div class="validate-sub-btn"><button id="getVerifyCodeBtnByValidate">获取验证码</button></div>'); // eslint-disable-line | 64 | $captcha.append('<div class="validate-sub-btn"><button id="getVerifyCodeBtnByValidate">获取验证码</button></div>'); // eslint-disable-line |
-
Please register or login to post a comment