From 3254d33cd01cbf6417f415a92744b6f75be471f8 Mon Sep 17 00:00:00 2001 From: liuyuan <582976274@qq.com> Date: Tue, 1 Jul 2025 16:37:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/baseUrl.js | 2 +- manifest.json | 4 ++-- pages/user/addAddress.vue | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/baseUrl.js b/config/baseUrl.js index 913a4c6..ac8f839 100644 --- a/config/baseUrl.js +++ b/config/baseUrl.js @@ -36,7 +36,7 @@ const courtConfig = { }; //手机号验证正则表达式 // (中国大陆) -const phoneRegular = /^1\d{10}$/; +const phoneRegular = /^1(3[0-9]|4[5-9]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}$/; // 手机号码验证 支持港澳台 大陆 // const phoneRegular = /^[1][3-8]\d{9}$|^([6|9])\d{7}$|^[0][9]\d{8}$|^[6]([8|6])\d{5}$|^(00){0,1}(65){1}[13689]\d{6,7}$/; //邮箱验证正则表达式 diff --git a/manifest.json b/manifest.json index 29fe891..683167b 100644 --- a/manifest.json +++ b/manifest.json @@ -12,8 +12,8 @@ "src" : "图片路径" } ], - "versionName" : "1.2.72", - "versionCode" : 1272, + "versionName" : "1.2.73", + "versionCode" : 1273, "app-plus" : { "compatible" : { "ignoreVersion" : true diff --git a/pages/user/addAddress.vue b/pages/user/addAddress.vue index 148a931..4bb952c 100644 --- a/pages/user/addAddress.vue +++ b/pages/user/addAddress.vue @@ -107,7 +107,7 @@ // 返回true表示校验通过,返回false表示不通过 // 过滤第一层,先判断输入为不为空,因为required: false,不是必填项,所以为空应该返回true if (value) { - return this.$u.test.mobile(value); + return /^\d{5,15}$/.test(value); } else { return true }