From b8037382a5f01b1fe272e26acaa84e680555d606 Mon Sep 17 00:00:00 2001
From: 44323 <443237572@qq.com>
Date: 星期一, 16 十月 2023 13:08:05 +0800
Subject: [PATCH] 门票bug
---
cloud-server-management/src/main/webapp/static/modular/system/tGoods/tGoods_info.js | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tGoods/tGoods_info.js b/cloud-server-management/src/main/webapp/static/modular/system/tGoods/tGoods_info.js
index 1aaf193..80a09d1 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/tGoods/tGoods_info.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/tGoods/tGoods_info.js
@@ -603,6 +603,8 @@
return Feng.error('请选中一个省市');
}
cityIds.push(seCity);
+ console.log("看看num")
+ console.log(num)
if (num > 0){
for (let i = 1; i <= num; i++) {
var insSelect=document.getElementById('cityData'+i);
@@ -611,11 +613,22 @@
cityIds.push(inData);
}
}
- cts = cityIds.join(',');
+
+
}else {
- cts = cityIds
+ // 如果只有一个城市,则将cts设置为字符串
+ if (cityIds.length === 1) {
+ console.log("是1吗?")
+ cts = cityIds[0];
+ console.log(cts)
+ } else {
+ console.log("走下面了")
+ cts = cityIds.join(',');
+ console.log(cts)
+ }
}
}
+
let type = document.querySelector('input[name="redemptionMethod"]:checked').value;
let name = $("#name").val()
if(name==''){
@@ -764,6 +777,8 @@
},function(data){
Feng.error("添加失败!" + data.responseJSON.message + "!");
});
+ console.log("看看城市ids")
+ console.log(cts);
ajax.set("typeAll",3);
ajax.set("name",name);
ajax.set("price",price);
--
Gitblit v1.7.1