Authored by 刘传洋

change mobile and email validate

... ... @@ -216,7 +216,7 @@ function blurAction(opt) {
}
if (opt.inputName === 'mobile') {
regular = /^1[3|4|5|8|7][0-9]{9}$/;
regular = /^\d{11}$/;; // /^1[3|4|5|8|7][0-9]{9}$/;
if (opt.len !== 11) {
msg = '手机号码必须是11位的,请确认';
... ...
... ... @@ -444,9 +444,9 @@ exports.saveAddress = function() {
var nameReg = /^[\u4e00-\u9fa5]{2,5}$/;
var addressReg = /^[\s\S]{2,100}$/;
var phoneReg = /^1[35847]{1}[0-9]{9}$/;
var phoneReg = /^\d{11}$/;
var codeReg = /^[0-9]{6}$/;
var emailReg = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
var emailReg = /^[^@]+\@[^@]+$/; // /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
var telCodeReg = /^[0-9]{3,5}$/;
var telReg = /^[0-9]{5,10}$/;
... ...
... ... @@ -916,7 +916,7 @@ function saveReceiptInfo() {
if (finalReceiptMobile === receiptMobileStar) {
finalReceiptMobile = receiptMobile;
} else {
verifymobile = /[1][34578][0-9]{9}/;
verifymobile = /^\d{11}$/; // /[1][34578][0-9]{9}/;
if (!verifymobile.test(finalReceiptMobile)) {
$('.invoice-phone .enpty-input').removeClass('hide');
if (finalReceiptMobile.length === 0) {
... ...