From 12ec47a5fed86e04433ca725caf6068c5000d0af Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期日, 08 十月 2023 17:02:09 +0800 Subject: [PATCH] 后台代码 --- cloud-server-management/src/main/webapp/static/modular/system/advertisement/advertisement.js | 67 +++++++++++++++++++++++++++++++++ 1 files changed, 66 insertions(+), 1 deletions(-) diff --git a/cloud-server-management/src/main/webapp/static/modular/system/advertisement/advertisement.js b/cloud-server-management/src/main/webapp/static/modular/system/advertisement/advertisement.js index 166152c..ff8c4e0 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/advertisement/advertisement.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/advertisement/advertisement.js @@ -138,6 +138,34 @@ }); this.layerIndex = index; }; +/** + * 跳转基础页面配置 + */ +TSite.basic = function () { + var index = layer.open({ + type: 2, + title: "基础页面配置", + area: ['100%', '100%'], //宽高 + fix: false, //不固定 + maxmin: true, + content: Feng.ctxPath + '/advertisement/config' + }); + this.layerIndex = index; +}; +/** + * 跳转福利页面配置 + */ +TSite.benefits = function () { + var index = layer.open({ + type: 2, + title: "福利页面配置", + area: ['100%', '100%'], //宽高 + fix: false, //不固定 + maxmin: true, + content: Feng.ctxPath + '/advertisement/benefits' + }); + this.layerIndex = index; +}; /** * 打开查看详情页面 @@ -207,7 +235,32 @@ ajax.set("province",province); ajax.start(); }; - +TSite.addConfig = function(){ + $("#cover1").val(); + $("#cover2").val(); + $("#cover7").val(); + var ajax = new $ax(Feng.ctxPath + "/advertisement/updateConfig", function (data) { + Feng.success("基础页面设置成功") + }); + ajax.set("p1",$("#cover1").val()) + ajax.set("p2",$("#cover2").val()) + ajax.set("p7",$("#cover7").val()) + ajax.start(); +} +TSite.addBenefits = function(){ + $("#cover3").val(); + $("#cover4").val(); + $("#cover5").val(); + $("#cover6").val(); + var ajax = new $ax(Feng.ctxPath + "/advertisement/updateBenefits", function (data) { + Feng.success("基础页面设置成功") + }); + ajax.set("p3",$("#cover3").val()) + ajax.set("p4",$("#cover4").val()) + ajax.set("p5",$("#cover5").val()) + ajax.set("p6",$("#cover6").val()) + ajax.start(); +} TSite.addSubmit = function(){ var data1 = { @@ -422,6 +475,17 @@ } $(function () { + var carPhoto1 = new $WebUpload("cover1"); + carPhoto1.setUploadBarId("progressBar"); + carPhoto1.init(); + + var carPhoto2 = new $WebUpload("cover2"); + carPhoto2.setUploadBarId("progressBar"); + carPhoto2.init(); + + var carPhoto7 = new $WebUpload("cover7"); + carPhoto7.setUploadBarId("progressBar"); + carPhoto7.init(); var defaultColunms = TSite.initColumn(); var table = new BSTable(TSite.id, "/advertisement/listAll", defaultColunms); table.setPaginationType("client"); @@ -429,4 +493,5 @@ var carPhoto = new $WebUpload("img"); carPhoto.setUploadBarId("progressBar"); carPhoto.init(); + }); -- Gitblit v1.7.1