...
|
...
|
@@ -51,18 +51,18 @@ $('.va').keyup(function() { |
|
|
if ($this.hasClass('pwd')) {
|
|
|
if (v === '') {
|
|
|
$this.addClass('error');
|
|
|
$pwdErr.removeClass('hide').find('em').text('请输入密码');
|
|
|
$pwdErr.removeClass('hide').find('em').text('密码输入不能为空');
|
|
|
}
|
|
|
} else {
|
|
|
if (v === '') {
|
|
|
$this.addClass('error');
|
|
|
$repwdErr.removeClass('hide').find('em').text('请输入密码确认');
|
|
|
$repwdErr.removeClass('hide').find('em').text('密码输入不能为空');
|
|
|
} else if (v.length < 6 || v.length > 20) {
|
|
|
$this.addClass('error');
|
|
|
$repwdErr.removeClass('hide').find('em').text('密码只支持6-20位');
|
|
|
$repwdErr.removeClass('hide').find('em').text('新密码不符合要求');
|
|
|
} else if (!pwdRegx.test(v)) {
|
|
|
$this.addClass('error');
|
|
|
$repwdErr.removeClass('hide').find('em').text('密码须字母和数字组合');
|
|
|
$repwdErr.removeClass('hide').find('em').text('新密码不符合要求');
|
|
|
}
|
|
|
|
|
|
$waakRepwdTip.find('span').addClass('hide');
|
...
|
...
|
@@ -116,7 +116,7 @@ $next.on('click', function() { |
|
|
document.location.href = '//www.yohobuy.com/signin.html?refer=' + refer;
|
|
|
return true;
|
|
|
} else if (d.code === 401) {
|
|
|
// token is error
|
|
|
// pwd is error
|
|
|
$pwdErr.removeClass('hide').find('em').text(d.message);
|
|
|
return true;
|
|
|
}
|
...
|
...
|
|