From d053b57d7475488a451d2cca6a9da1eb711eec71 Mon Sep 17 00:00:00 2001 From: huangdeliang Date: Wed, 9 Dec 2020 11:10:00 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=B8=AF=E6=BE=B3?= =?UTF-8?q?=E6=89=8B=E6=9C=BA=E5=8F=B7=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stdiet-ui/src/views/custom/signContract/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stdiet-ui/src/views/custom/signContract/index.vue b/stdiet-ui/src/views/custom/signContract/index.vue index a1ed1a9b2..2dea02c35 100644 --- a/stdiet-ui/src/views/custom/signContract/index.vue +++ b/stdiet-ui/src/views/custom/signContract/index.vue @@ -134,7 +134,8 @@ const checkPhone = (rule, value, callback) => { const phoneReg = /^1[3|4|5|6|7|8|9][0-9]{9}$/ - const hkPhoneReg = /^(5|6|8|9)\\d{7}$/ + const hkPhoneReg = /^(5|6|8|9)\d{7}$/ + console.log(hkPhoneReg.test(value)) if (!value) { return callback(new Error('电话号码不能为空')) } From f727a6d758d77e25e69faa41f5922dcb449b2a7c Mon Sep 17 00:00:00 2001 From: huangdeliang Date: Wed, 9 Dec 2020 11:11:27 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=B8=AF=E6=BE=B3?= =?UTF-8?q?=E6=89=8B=E6=9C=BA=E5=8F=B7=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stdiet-ui/src/views/custom/signContract/index.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/stdiet-ui/src/views/custom/signContract/index.vue b/stdiet-ui/src/views/custom/signContract/index.vue index 2dea02c35..c507226f8 100644 --- a/stdiet-ui/src/views/custom/signContract/index.vue +++ b/stdiet-ui/src/views/custom/signContract/index.vue @@ -135,7 +135,6 @@ const checkPhone = (rule, value, callback) => { const phoneReg = /^1[3|4|5|6|7|8|9][0-9]{9}$/ const hkPhoneReg = /^(5|6|8|9)\d{7}$/ - console.log(hkPhoneReg.test(value)) if (!value) { return callback(new Error('电话号码不能为空')) }