...
|
...
|
@@ -129,19 +129,25 @@ $phoneNumInput.on('blur', function() { |
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (length !== 11) {
|
|
|
errTip($phone, '手机号码格式不正确');
|
|
|
ep.emit('phoneNum', false);
|
|
|
if (/^[0-9]+$/.test($phoneNumInput.val())) {
|
|
|
|
|
|
// 这里只做中国区验证
|
|
|
if ($regionCodeText.text() === '+86') {
|
|
|
if ($phoneNumInput.length === 11 && phoneRegx['+86'].test($phoneNumInput.val())) {
|
|
|
ep.emit('phoneNum', true);
|
|
|
return;
|
|
|
} else {
|
|
|
errTip($phone, '手机号码不正确,请重新输入');
|
|
|
ep.emit('phoneNum', false);
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
ep.emit('phoneNum', true);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (!phoneRegx[$regionCodeText.text()].test($phoneNumInput.val())) {
|
|
|
errTip($phone, '手机号码格式不正确');
|
|
|
} else {
|
|
|
ep.emit('phoneNum', false);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
ep.emit('phoneNum', true);
|
|
|
});
|
|
|
|
|
|
$imgCaptchaInput.on('blur', function() {
|
...
|
...
|
|