Authored by 周少峰

delete input validate

@@ -216,7 +216,7 @@ function blurAction(opt) { @@ -216,7 +216,7 @@ function blurAction(opt) {
216 } 216 }
217 217
218 if (opt.inputName === 'mobile') { 218 if (opt.inputName === 'mobile') {
219 - regular = /^\d+$/; // /^1[3|4|5|8|7][0-9]{9}$/; 219 + regular = /^1[3|4|5|8|7][0-9]{9}$/;
220 220
221 if (opt.len !== 11) { 221 if (opt.len !== 11) {
222 msg = '手机号码必须是11位的,请确认'; 222 msg = '手机号码必须是11位的,请确认';
@@ -492,7 +492,7 @@ function validateForm() { @@ -492,7 +492,7 @@ function validateForm() {
492 492
493 var nameReg = /^[\u4e00-\u9fa5]{2,5}$/; 493 var nameReg = /^[\u4e00-\u9fa5]{2,5}$/;
494 var addressReg = /^[a-zA-Z0-9-#()()\u4e00-\u9fa5]+$/; 494 var addressReg = /^[a-zA-Z0-9-#()()\u4e00-\u9fa5]+$/;
495 - var phoneReg = /^\d+$/; // /^(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$/; 495 + var phoneReg = /^(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$/;
496 var telCodeReg = /^[0-9]{3,4}$/; 496 var telCodeReg = /^[0-9]{3,4}$/;
497 var telReg = /^[0-9]{8}$/; 497 var telReg = /^[0-9]{8}$/;
498 var _right_html = '<i class="order-icon icon-right"></i>'; 498 var _right_html = '<i class="order-icon icon-right"></i>';
@@ -444,9 +444,9 @@ exports.saveAddress = function() { @@ -444,9 +444,9 @@ exports.saveAddress = function() {
444 444
445 var nameReg = /^[\u4e00-\u9fa5]{2,5}$/; 445 var nameReg = /^[\u4e00-\u9fa5]{2,5}$/;
446 var addressReg = /^[\s\S]{2,100}$/; 446 var addressReg = /^[\s\S]{2,100}$/;
447 - var phoneReg = /^\d+$/; 447 + var phoneReg = /^1[35847]{1}[0-9]{9}$/;
448 var codeReg = /^[0-9]{6}$/; 448 var codeReg = /^[0-9]{6}$/;
449 - var emailReg = /^[^@]+\@[^@]+$/; // /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; 449 + var emailReg = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
450 var telCodeReg = /^[0-9]{3,5}$/; 450 var telCodeReg = /^[0-9]{3,5}$/;
451 var telReg = /^[0-9]{5,10}$/; 451 var telReg = /^[0-9]{5,10}$/;
452 452
@@ -916,7 +916,7 @@ function saveReceiptInfo() { @@ -916,7 +916,7 @@ function saveReceiptInfo() {
916 if (finalReceiptMobile === receiptMobileStar) { 916 if (finalReceiptMobile === receiptMobileStar) {
917 finalReceiptMobile = receiptMobile; 917 finalReceiptMobile = receiptMobile;
918 } else { 918 } else {
919 - verifymobile = /^\d+$/; // /[1][34578][0-9]{9}/; 919 + verifymobile = /[1][34578][0-9]{9}/;
920 if (!verifymobile.test(finalReceiptMobile)) { 920 if (!verifymobile.test(finalReceiptMobile)) {
921 $('.invoice-phone .enpty-input').removeClass('hide'); 921 $('.invoice-phone .enpty-input').removeClass('hide');
922 if (finalReceiptMobile.length === 0) { 922 if (finalReceiptMobile.length === 0) {