Authored by 王水玲

注册协议默认不勾选

... ... @@ -31,7 +31,7 @@
<div data-userverify="{{captchaShow}}" data-geetest="{{useGeetest}}" id="js-img-check"{{#unless useGeetest}} class="full-img-verify"{{/unless}}></div>
<button id="regBtn" class="reg-btn" type="button">注册</button>
<div class="protocol">
<span class="iconfont checkbox icon-cb-radio"></span>
<span class="iconfont checkbox icon-radio"></span>
我已阅读并同意遵守<a href="/service/qaDetail?keyword=服务条款&sonId=197" title="Yoho!Buy有货服务条款" target="_blank">Yoho!Buy有货服务条款</a>
</div>
</form>
... ...
... ... @@ -134,8 +134,7 @@ class RegisterNew {
if (this.view.mobileInput.val() &&
this.view.passwordInput.val() &&
this.view.verifyCodeInput.val() &&
this.view.getVerifyCodeBtn.data('oneClick') &&
this.view.protocolCheckbox.hasClass('icon-cb-radio')) {
this.view.getVerifyCodeBtn.data('oneClick')) {
this.view.regBtn.addClass('active');
} else {
this.view.regBtn.removeClass('active');
... ... @@ -152,6 +151,11 @@ class RegisterNew {
return;
}
if (!this.view.protocolCheckbox.hasClass('icon-cb-radio')) {
showErrTip('您必须同意YOHO!BUY有货服务条款后,才能进行注册!');
return;
}
let validateResult = validatePWD(password, result => {
if (!result.valid) {
showErrTip(result.msg);
... ...