...
|
...
|
@@ -198,8 +198,8 @@ function msgCaptchaAjaxFn(page, callback) { |
|
|
function validateRule(page, $element, callback) {
|
|
|
|
|
|
var val = $.trim($element.val()),
|
|
|
regionCode;
|
|
|
|
|
|
regionCode,
|
|
|
pwdReg = /^([a-zA-Z0-9\-\+_!@\#$%\^&\*\(\)\:\;\.=\[\]\\\',\?]){6,20}$/gi;
|
|
|
|
|
|
//手机号校验
|
|
|
if ($element.hasClass('phone-num')) {
|
...
|
...
|
@@ -266,6 +266,7 @@ function validateRule(page, $element, callback) { |
|
|
} else {
|
|
|
validateResult[2].message = '短信验证码错误';
|
|
|
validateResult[2].status = false;
|
|
|
callback();
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -279,8 +280,8 @@ function validateRule(page, $element, callback) { |
|
|
validateResult[3].message = '密码只支持6-20位字符';
|
|
|
validateResult[3].status = false;
|
|
|
|
|
|
} else if (/\s/.test($element.val())) {
|
|
|
validateResult[3].message = '密码不能包含空格';
|
|
|
} else if (!pwdReg.test($element.val())) {
|
|
|
validateResult[3].message = '密码只能包含字母,数字,半角标点符号';
|
|
|
validateResult[3].status = false;
|
|
|
|
|
|
} else {
|
...
|
...
|
@@ -420,10 +421,8 @@ exports.init = function(page) { |
|
|
|
|
|
$('#agree-terms').click(function() {
|
|
|
if ($(this).attr('notchecked')) {
|
|
|
console.log(1);
|
|
|
$(this).removeAttr('notchecked');
|
|
|
} else {
|
|
|
console.log(2);
|
|
|
$(this).attr('notchecked', 'true');
|
|
|
}
|
|
|
|
...
|
...
|
|