From a550e674f03c486e9d7f13e3eaf7fe76acea9ffc Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期五, 08 三月 2024 18:15:20 +0800
Subject: [PATCH] 合并代码
---
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