From 9f92f05ca155623adf2d6f937d2ae96575848a74 Mon Sep 17 00:00:00 2001 From: ZhaoTongYao <531131322@qq.com> Date: Fri, 22 May 2020 14:20:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E6=9C=BA=E5=8F=B7=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/modules/customer-manage/customer-manage.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/epmet-oper-web/src/views/modules/customer-manage/customer-manage.vue b/epmet-oper-web/src/views/modules/customer-manage/customer-manage.vue index 6364835..4cbb7ba 100644 --- a/epmet-oper-web/src/views/modules/customer-manage/customer-manage.vue +++ b/epmet-oper-web/src/views/modules/customer-manage/customer-manage.vue @@ -137,8 +137,9 @@ export default { if (!Number.isInteger(value)) { return callback(new Error('手机号格式不正确')) } - if (value.toString().length !== 11) { - return callback(new Error('请输入11位长度的手机号')) + var phoneReg = /^[1][3,4,5,6,7,8,9][0-9]{9}$/ + if (!phoneReg.test(value.toString())) { + return callback(new Error('请输入正确格式的手机号')) } callback() }