...
|
...
|
@@ -42,6 +42,9 @@ require('yoho-jquery-placeholder'); |
|
|
require('../../plugins/tips');
|
|
|
|
|
|
function errTip(ele, msg) {
|
|
|
|
|
|
//ele.tips('show', msg)
|
|
|
|
|
|
var topLeft = ele.offset();
|
|
|
|
|
|
$errMsg.text(msg);
|
...
|
...
|
@@ -244,14 +247,15 @@ function validatePhoneNumLocal() { |
|
|
regionCode = $regionCodeText.text();
|
|
|
|
|
|
if (length === 0) {
|
|
|
errTip($phone, '请输入手机号码');
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
if (/^[0-9]+$/.test($phoneNumInput.val())) {
|
|
|
if (/^[0-9]+$/.test(phoneNum)) {
|
|
|
|
|
|
// 这里只做中国区验证
|
|
|
if (regionCode === '+86') {
|
|
|
if (phoneNum.length === 11 && regValidate.phoneRegx['+86'].test(phoneNum.val())) {
|
|
|
if (length === 11 && regValidate.phoneRegx['+86'].test(phoneNum)) {
|
|
|
return true;
|
|
|
} else {
|
|
|
errTip($phone, '手机号码不正确,请重新输入');
|
...
|
...
|
@@ -333,7 +337,7 @@ function validatePassword() { |
|
|
function validatePasswordComplexLocal($obj) {
|
|
|
var pwd = $obj.val(),
|
|
|
level = computeComplex(pwd);
|
|
|
console.log(level);
|
|
|
|
|
|
switch (level) {
|
|
|
case 0:
|
|
|
$pwdParent.removeClass('red yellow green');
|
...
|
...
|
|