From 07811c07c6e23f179d284fc2fde13cc9218d967b Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期三, 15 十一月 2023 16:06:14 +0800 Subject: [PATCH] 后台bug修改 --- cloud-server-management/src/main/webapp/static/modular/system/tShop/tShop_info.js | 37 ++++++++++++++++++++----------------- 1 files changed, 20 insertions(+), 17 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 c5fa4e7..6a6779f 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 @@ -228,27 +228,30 @@ let name = $("#name").val() let phone = $("#phone").val() var elementById = document.getElementById("radio1"); - if (elementById.checked) { - if (pCode == '' && $("#role").val() == "1") { - Feng.info("请选择省") - return; + if (elementById != null){ + if (elementById.checked) { + if (pCode == '' && $("#role").val() == "1") { + Feng.info("请选择省") + return; + } + if (cCode == '' && $("#role").val() == "1") { + Feng.info("请选择市") + return; + } } - if (cCode == '' && $("#role").val() == "1") { - Feng.info("请选择市") - return; + if (!elementById.checked){ + if(pCode1=='' && $("#role").val()=="1"){ + Feng.info("请选择省") + return; + } + if(cCode1=='' && $("#role").val()=="1"){ + Feng.info("请选择市") + return; + } } } - if (!elementById.checked){ - if(pCode1=='' && $("#role").val()=="1"){ - Feng.info("请选择省") - return; - } - if(cCode1=='' && $("#role").val()=="1"){ - Feng.info("请选择市") - return; - } - } + if(name==''){ Feng.info("门店名称不能为空") return; -- Gitblit v1.7.1