|
@@ -134,8 +134,7 @@ class RegisterNew { |
|
@@ -134,8 +134,7 @@ class RegisterNew { |
134
|
if (this.view.mobileInput.val() &&
|
134
|
if (this.view.mobileInput.val() &&
|
135
|
this.view.passwordInput.val() &&
|
135
|
this.view.passwordInput.val() &&
|
136
|
this.view.verifyCodeInput.val() &&
|
136
|
this.view.verifyCodeInput.val() &&
|
137
|
- this.view.getVerifyCodeBtn.data('oneClick') &&
|
|
|
138
|
- this.view.protocolCheckbox.hasClass('icon-cb-radio')) {
|
137
|
+ this.view.getVerifyCodeBtn.data('oneClick')) {
|
139
|
this.view.regBtn.addClass('active');
|
138
|
this.view.regBtn.addClass('active');
|
140
|
} else {
|
139
|
} else {
|
141
|
this.view.regBtn.removeClass('active');
|
140
|
this.view.regBtn.removeClass('active');
|
|
@@ -152,6 +151,11 @@ class RegisterNew { |
|
@@ -152,6 +151,11 @@ class RegisterNew { |
152
|
return;
|
151
|
return;
|
153
|
}
|
152
|
}
|
154
|
|
153
|
|
|
|
154
|
+ if (!this.view.protocolCheckbox.hasClass('icon-cb-radio')) {
|
|
|
155
|
+ showErrTip('您必须同意YOHO!BUY有货服务条款后,才能进行注册!');
|
|
|
156
|
+ return;
|
|
|
157
|
+ }
|
|
|
158
|
+
|
155
|
let validateResult = validatePWD(password, result => {
|
159
|
let validateResult = validatePWD(password, result => {
|
156
|
if (!result.valid) {
|
160
|
if (!result.valid) {
|
157
|
showErrTip(result.msg);
|
161
|
showErrTip(result.msg);
|