From 2812309093cc6fd31a75d10f62bc52abb7588f56 Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Mon, 06 Jan 2025 17:16:57 +0800
Subject: [PATCH] feat(mall): 后台活动列表添加分页和搜索功能 - 在 ActivityServiceImpl 中实现 getAdminListInPage 方法,支持分页和搜索 - 在 AdminActivityController 中添加 list 接口,返回分页数据 - 在 IActivityService 中定义 getAdminListInPage 接口 - 更新前端模板,根据活动状态控制按钮显示

---
 src/main/resources/templates/febs/views/modules/leader/leaderList.html |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/main/resources/templates/febs/views/modules/leader/leaderList.html b/src/main/resources/templates/febs/views/modules/leader/leaderList.html
index f10fb07..819e847 100644
--- a/src/main/resources/templates/febs/views/modules/leader/leaderList.html
+++ b/src/main/resources/templates/febs/views/modules/leader/leaderList.html
@@ -69,11 +69,11 @@
     <input type="checkbox" value={{d.id}} lay-text="在线|离线" lay-skin="switch" lay-filter="onlineStateSwitch">
     {{# } }}
 </script>
-<script type="text/html" id="upOrDownSwitch">
+<script type="text/html" id="profitSwitch">
     {{# if(d.profitSwitch === 1) { }}
-    <input type="checkbox" value={{d.id}} lay-text="开启|关闭" checked lay-skin="switch" lay-filter="upOrDownSwitch">
+    <input type="checkbox" value={{d.id}} lay-text="开启|关闭" checked lay-skin="switch" lay-filter="profitSwitch">
     {{# } else { }}
-    <input type="checkbox" value={{d.id}} lay-text="开启|关闭" lay-skin="switch" lay-filter="upOrDownSwitch">
+    <input type="checkbox" value={{d.id}} lay-text="开启|关闭" lay-skin="switch" lay-filter="profitSwitch">
     {{# } }}
 </script>
 <!-- 表格操作栏 end -->
@@ -193,10 +193,10 @@
                         }, minWidth: 150,align:'center'},
                     {field: 'addressArea', title: '自提点名称', minWidth: 150,align:'left'},
                     {field: 'detailAddress', title: '自提点地址', minWidth: 150,align:'left'},
-                    {field: 'totalProfit', title: '收益', minWidth: 150,align:'left'},
+                    // {field: 'totalProfit', title: '收益', minWidth: 150,align:'left'},
                     {field: 'onlineState', title: '在线状态', templet: '#onlineStateSwitch', minWidth: 100,align:'center'},
-                    {field: 'profitSwitch', title: '是否返利', templet: '#upOrDownSwitch', minWidth: 100,align:'center'},
-                    {field: 'bonusPercent', title: '返利比例', minWidth: 150,align:'left'},
+                    // {field: 'profitSwitch', title: '是否返利', templet: '#profitSwitch', minWidth: 100,align:'center'},
+                    // {field: 'bonusPercent', title: '返利比例', minWidth: 150,align:'left'},
                     // {field: 'phone', title: '电话', minWidth: 150,align:'left'},
                     {field: 'state', title: '状态',
                         templet: function (d) {
@@ -254,7 +254,7 @@
             });
         }
 
-        form.on('switch(upOrDownSwitch)', function (data) {
+        form.on('switch(profitSwitch)', function (data) {
             if (data.elem.checked) {
                 startProfit(data.value);
             } else {

--
Gitblit v1.9.1