Commit 862d7ac4 authored by daniel's avatar daniel

feat(customer): 移除手机号验证

parent da65f50e
...@@ -107,13 +107,13 @@ ...@@ -107,13 +107,13 @@
save: function () { save: function () {
var telNo = $.trim(customerV.$data.customer.mobile); var telNo = $.trim(customerV.$data.customer.mobile);
var telPhone = /^(0|86|17951)?(13[0-9]|14[5-9]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])[0-9]{8}$/; // var telPhone = /^(0|86|17951)?(13[0-9]|14[5-9]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])[0-9]{8}$/;
const fixedTel = /^(0[0-9]{2,3}-)([2-9][0-9]{6,7})(-[0-9]{1,4})?$/; // const fixedTel = /^(0[0-9]{2,3}-)([2-9][0-9]{6,7})(-[0-9]{1,4})?$/;
if (!telPhone.test(telNo) && !fixedTel.test(telNo)) { // if (!telPhone.test(telNo) && !fixedTel.test(telNo)) {
layer.alert('联系电话格式不正确,请输入正确的固定电话或手机号'); // layer.alert('联系电话格式不正确,请输入正确的固定电话或手机号');
return false; // return false;
} // }
$.ajax({ $.ajax({
url: '/gk/customer/saveOrUpdate', url: '/gk/customer/saveOrUpdate',
data: customerV.$data.customer, data: customerV.$data.customer,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment