From ce9a4fa42bf6a3f1dfdbb39ee1443e6a278f7471 Mon Sep 17 00:00:00 2001
From: nickchange <126672920+nickchange@users.noreply.github.com>
Date: 星期一, 04 十二月 2023 11:32:08 +0800
Subject: [PATCH] 12.4.1

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

diff --git a/cloud-server-management/src/main/webapp/static/modular/system/operator/operator_add.js b/cloud-server-management/src/main/webapp/static/modular/system/operator/operator_add.js
index 79c70b1..f4d67b0 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/operator/operator_add.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/operator/operator_add.js
@@ -130,6 +130,7 @@
 
 
 TSite.addSubmit = function(){
+    var phoneRegex = /^1[0-9]{10}$/;
     var areaType = $("input[name='areaType']:checked").val();
     if ("" == $("#name").val() || null == $("#name").val()){
         Feng.error("请输入运营商名称");
@@ -143,6 +144,13 @@
         Feng.error("请输入管理员电话");
         return;
     }
+    console.log("看看手机号");
+    console.log($("#phone").val());
+    if (!phoneRegex.test($("#phone").val())){
+
+        Feng.info("手机号不合法,请重新输入!");
+        return;
+    }
     if (areaType == 2){
         var comArr=[];
         $(".areaValueClass").each(function () {

--
Gitblit v1.7.1