From 26f059f55124470a57554e0941d6be4cc72bbbdc Mon Sep 17 00:00:00 2001
From: liaoxujun@qq.com <liaoxujun@qq.com>
Date: 星期三, 27 三月 2024 17:28:00 +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