From b63785e94f5777080fc8cba1c7b6e112cca01617 Mon Sep 17 00:00:00 2001
From: 44323 <443237572@qq.com>
Date: 星期五, 13 十月 2023 11:05:55 +0800
Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/PlayPai

---
 cloud-server-management/src/main/webapp/static/modular/system/tShop/tShop_info.js |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 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..9ddafc4 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;
@@ -498,6 +524,8 @@
         }
 
     }
+
+
     //提交信息
     var ajax = new $ax(Feng.ctxPath + "/tShop/update", function(data){
         if(data=="5001"){

--
Gitblit v1.7.1