Authored by yyq

收件人手机号11位校验

... ... @@ -107,7 +107,7 @@ function validateAddress(data) {
var regx = {
consignee: /^([\u4e00-\u9fa5\w*]{1,20})$/,
areaCode: /^[0-9]{6,9}$/,
mobile: /^\d{3}(\d{4}|\*{4})\d{1,8}$/,
mobile: /^\d{3}(\d{4}|\*{4})\d{4}$/, // 手机号11位校验 by 新飞 2017.7.11
phone: /^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/
},
pass = true,
... ...
... ... @@ -230,7 +230,7 @@ function blurAction(opt) {
}
if (opt.inputName === 'mobile') {
regular = /^[0-9]{1,}$/;
regular = /^[0-9]{11}$/; // 手机号11位校验 by 新飞 2017.7.11
if (regular.test(opt.val) === false) {
msg = '您输入的手机号格式不正确';
... ...