From 94d774ee91be8785b03a8b59d694c3f412dd92ab Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期五, 29 八月 2025 09:18:29 +0800
Subject: [PATCH] update
---
cloud-server-management/src/main/webapp/static/modular/system/tHomeModule/tHomeModule.js | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tHomeModule/tHomeModule.js b/cloud-server-management/src/main/webapp/static/modular/system/tHomeModule/tHomeModule.js
index 855baa9..b9678e6 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/tHomeModule/tHomeModule.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/tHomeModule/tHomeModule.js
@@ -177,6 +177,7 @@
typeId:null,
turnId:null,
content:"",
+ storeId:null,
};
let name = $("#model").val();
data1.id = $("#id").val();
@@ -209,6 +210,7 @@
data1.typeId = $("#type").val();
data1.turnId = $("#pageId").val();
data1.content = jQuery.trim(THomeModuleDlg.editor.getContent());
+ data1.storeId = $("#id_").val();
if ( $("#roleType").val()==1){
if($("#title").val()==''){
@@ -240,7 +242,7 @@
}
if(name !='0') {
if ($("#roleType").val() == 1) {
- if ($('#type option:selected').text() == "详情"&&$('#type option:selected').text() == "指定商品"&&$('#type option:selected').text() == "指定折扣") {
+ if ($('#type option:selected').text() == "详情"||$('#type option:selected').text() == "指定商品"||$('#type option:selected').text() == "指定折扣") {
if ($("#pageId").val() == '') {
Feng.info("请输入跳转ID")
return;
@@ -248,13 +250,13 @@
}
}
}
- if ( $("#roleType").val()==1){
- if($("#content").val()==''){
+ if(data1.content ==''){
data1.content = $("#content").val();
Feng.info("请填写内容设置")
return;
}
- }
+ console.log(data1,1111)
+
$.ajax({
url: Feng.ctxPath + "/tHomeModule/updateHomeModule",
type: "POST",
--
Gitblit v1.7.1