From d053b57d7475488a451d2cca6a9da1eb711eec71 Mon Sep 17 00:00:00 2001 From: huangdeliang Date: Wed, 9 Dec 2020 11:10:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=B8=AF=E6=BE=B3=E6=89=8B?= =?UTF-8?q?=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('电话号码不能为空')) }