From 689873e9964374d9d6df388dcd956f558e055428 Mon Sep 17 00:00:00 2001
From: 44323 <443237572@qq.com>
Date: 星期二, 12 十二月 2023 18:21:20 +0800
Subject: [PATCH] 11.27,9
---
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