Authored by 周少峰

delete input validate

... ... @@ -216,7 +216,7 @@ function blurAction(opt) {
}
if (opt.inputName === 'mobile') {
regular = /^\d+$/; // /^1[3|4|5|8|7][0-9]{9}$/;
regular = /^1[3|4|5|8|7][0-9]{9}$/;
if (opt.len !== 11) {
msg = '手机号码必须是11位的,请确认';
... ...
... ... @@ -492,7 +492,7 @@ function validateForm() {
var nameReg = /^[\u4e00-\u9fa5]{2,5}$/;
var addressReg = /^[a-zA-Z0-9-#()()\u4e00-\u9fa5]+$/;
var phoneReg = /^\d+$/; // /^(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$/;
var phoneReg = /^(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$/;
var telCodeReg = /^[0-9]{3,4}$/;
var telReg = /^[0-9]{8}$/;
var _right_html = '<i class="order-icon icon-right"></i>';
... ...
... ... @@ -444,9 +444,9 @@ exports.saveAddress = function() {
var nameReg = /^[\u4e00-\u9fa5]{2,5}$/;
var addressReg = /^[\s\S]{2,100}$/;
var phoneReg = /^\d+$/;
var phoneReg = /^1[35847]{1}[0-9]{9}$/;
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 = /^\d+$/; // /[1][34578][0-9]{9}/;
verifymobile = /[1][34578][0-9]{9}/;
if (!verifymobile.test(finalReceiptMobile)) {
$('.invoice-phone .enpty-input').removeClass('hide');
if (finalReceiptMobile.length === 0) {
... ...