From 082b7025e5654be2d38a7caccfe714937217410b Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期二, 07 十一月 2023 14:22:33 +0800 Subject: [PATCH] 后台bug修改 --- 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..c1b7311 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