Authored by 王水玲

注册协议默认不勾选

@@ -31,7 +31,7 @@ @@ -31,7 +31,7 @@
31 <div data-userverify="{{captchaShow}}" data-geetest="{{useGeetest}}" id="js-img-check"{{#unless useGeetest}} class="full-img-verify"{{/unless}}></div> 31 <div data-userverify="{{captchaShow}}" data-geetest="{{useGeetest}}" id="js-img-check"{{#unless useGeetest}} class="full-img-verify"{{/unless}}></div>
32 <button id="regBtn" class="reg-btn" type="button">注册</button> 32 <button id="regBtn" class="reg-btn" type="button">注册</button>
33 <div class="protocol"> 33 <div class="protocol">
34 - <span class="iconfont checkbox icon-cb-radio"></span> 34 + <span class="iconfont checkbox icon-radio"></span>
35 我已阅读并同意遵守<a href="/service/qaDetail?keyword=服务条款&sonId=197" title="Yoho!Buy有货服务条款" target="_blank">Yoho!Buy有货服务条款</a> 35 我已阅读并同意遵守<a href="/service/qaDetail?keyword=服务条款&sonId=197" title="Yoho!Buy有货服务条款" target="_blank">Yoho!Buy有货服务条款</a>
36 </div> 36 </div>
37 </form> 37 </form>
@@ -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);