...
|
...
|
@@ -32,6 +32,8 @@ class RegisterNew { |
|
|
|
|
|
validate.init();
|
|
|
|
|
|
this.view.getVerifyCodeBtn.data('oneClick', false); // 是否点击过获取验证码按钮
|
|
|
|
|
|
this.view.clearMobile.on('click', this.clearMobile.bind(this));
|
|
|
this.view.regBtn.on('click', this.register.bind(this));
|
|
|
this.view.mobileInput.bind('input', this.changeBtnStatus.bind(this));
|
...
|
...
|
@@ -105,7 +107,8 @@ class RegisterNew { |
|
|
// 登录按钮
|
|
|
if (this.view.mobileInput.val() &&
|
|
|
this.view.passwordInput.val() &&
|
|
|
this.view.verifyCodeInput.val()) {
|
|
|
this.view.verifyCodeInput.val() &&
|
|
|
this.view.getVerifyCodeBtn.data('oneClick')) {
|
|
|
this.view.regBtn.addClass('active');
|
|
|
} else {
|
|
|
this.view.regBtn.removeClass('active');
|
...
|
...
|
@@ -203,6 +206,8 @@ class RegisterNew { |
|
|
return;
|
|
|
}
|
|
|
|
|
|
this.view.getVerifyCodeBtn.data('oneClick', true);
|
|
|
|
|
|
let areaCode = this.view.countryCodeSelector.val();
|
|
|
let phoneNum = this.view.mobileInput.val();
|
|
|
|
...
|
...
|
|