From 4a055748da8c4e8baf002dff7b74e12ec150610a Mon Sep 17 00:00:00 2001 From: nickchange <126672920+nickchange@users.noreply.github.com> Date: 星期五, 17 十一月 2023 20:24:59 +0800 Subject: [PATCH] 11.10 --- cloud-server-management/src/main/webapp/static/modular/system/tShop/tShop_info.js | 43 +++++++++++++++++++++++-------------------- 1 files changed, 23 insertions(+), 20 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 276bd3e..4403ce4 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; @@ -361,7 +364,8 @@ var marker; //搜索地图 TCarInfoDlg.searchByStationName = function(e,type){ - var keyword="成都"; + console.log("调用") + var keyword=""; if(type==2){ keyword = $(e).parent().prev().find("input").val(); }else { @@ -404,8 +408,7 @@ } }); }); - -} +}; //地图点击事件 function showInfoClick(){ map.on('click', function (e) { -- Gitblit v1.7.1