From aa89d67a4ec7560cee226d53dd2be555a9e5df99 Mon Sep 17 00:00:00 2001
From: nickchange <126672920+nickchange@users.noreply.github.com>
Date: 星期四, 12 十月 2023 15:11:51 +0800
Subject: [PATCH] 10.12bug

---
 cloud-server-management/src/main/webapp/static/modular/system/tShop/tShop_info.js |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tShop/tShop_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tShop/tShop_info.js
index dc85985..862075b 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/tShop/tShop_info.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/tShop/tShop_info.js
@@ -203,6 +203,12 @@
         Feng.info("门店名称不能为空")
         return;
     }
+
+    var phonePattern = /^1[3-9]\d{9}$/;
+    if (!phonePattern.test(phone)) {
+        Feng.info("请输入合法手机号")
+        return ;
+    }
     if(phone==''){
         Feng.info("联系电话不能为空")
         return;
@@ -232,7 +238,15 @@
         Feng.info("请输入店长姓名")
         return;
     }
+
+
     let userPhone = $("#userPhone").val()
+    if (!phonePattern.test(userPhone)) {
+
+        Feng.info("请输入正确手机号")
+        return false;
+    }
+
 
     if(userPhone==''){
         Feng.info("请输入店长手机号")
@@ -446,6 +460,13 @@
         Feng.info("门店名称不能为空")
         return;
     }
+
+    var phonePattern = /^1[3-9]\d{9}$/;
+    if (!phonePattern.test(phone)) {
+        Feng.info("请输入合法手机号")
+        return ;
+    }
+
     if(phone==''){
         Feng.info("联系电话不能为空")
         return;
@@ -477,6 +498,11 @@
     }
     let userPhone = $("#userPhone").val()
 
+    if (!phonePattern.test(userPhone)) {
+        Feng.info("请输入合法手机号")
+        return ;
+    }
+
     if(userPhone==''){
         Feng.info("请输入店长手机号")
         return;

--
Gitblit v1.7.1