From d7c7a6e9d05eec7b38b41b8ae39f373f650ca891 Mon Sep 17 00:00:00 2001 From: 移动系统liao <liaoxujun@qq.com> Date: 星期三, 15 五月 2024 14:48:03 +0800 Subject: [PATCH] no message --- CoreCms.Net.Web.Admin/wwwroot/views/shop/store/create.html | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/CoreCms.Net.Web.Admin/wwwroot/views/shop/store/create.html b/CoreCms.Net.Web.Admin/wwwroot/views/shop/store/create.html index 8e0758e..09c4ffb 100644 --- a/CoreCms.Net.Web.Admin/wwwroot/views/shop/store/create.html +++ b/CoreCms.Net.Web.Admin/wwwroot/views/shop/store/create.html @@ -92,7 +92,7 @@ str += "<select lay-ignore name='areaId_" + (i + 1) + "' dep='" + (i + 1) + "' class='select-address'>"; str += "<option value='' >璇烽�夋嫨</option>"; $.each(n.list, function (h, z) { - if (n.hasOwnProperty('info') && n.info.id == z.id) { + if (n.hasOwnProperty('info') && n.info?.id == z.id) { str += "<option value='" + z.id + "' selected='selected'>" + z.name + "</option>"; } else { str += "<option value='" + z.id + "' >" + z.name + "</option>"; @@ -185,6 +185,7 @@ for (var x = i + 1; x <= 6; x++) { //鏈�澶�6灞傦紝瓒冲浜� $("select[name='areaId_" + x + "']").remove(); } + debugger var val = $("select[name='areaId_" + i + "']").val(); if (val != "") { //鍙栧瓙鑺傜偣鏁版嵁锛岀劧鍚庢樉绀轰笅涓�绾� -- Gitblit v1.9.1