From 5772ee39bd00b83ecca16b0b472d86e945d8c0ea Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Fri, 01 Sep 2023 10:21:09 +0800
Subject: [PATCH] 后台修改

---
 src/main/resources/templates/febs/views/dapp/member.html |   34 ++++++++++++++++++++++++++++++++--
 1 files changed, 32 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/templates/febs/views/dapp/member.html b/src/main/resources/templates/febs/views/dapp/member.html
index f60a86d..f5fcfde 100644
--- a/src/main/resources/templates/febs/views/dapp/member.html
+++ b/src/main/resources/templates/febs/views/dapp/member.html
@@ -58,6 +58,13 @@
     }}
     <span class="layui-badge febs-bg-{{status.color}}">{{ status.title }}</span>
 </script>
+<script type="text/html" id="switchChangeAble">
+    {{# if(d.changeAble === 1) { }}
+    <input type="checkbox" value={{d.id}} lay-text="是|否" checked lay-skin="switch" lay-filter="switchChangeAble">
+    {{# } else { }}
+    <input type="checkbox" value={{d.id}} lay-text="是|否" lay-skin="switch" lay-filter="switchChangeAble">
+    {{# } }}
+</script>
 <script type="text/html" id="switchActiveStatus">
     {{# if(d.activeStatus === 1) { }}
     <input type="checkbox" value={{d.id}} lay-text="是|否" checked lay-skin="switch" lay-filter="switchActiveStatus">
@@ -140,6 +147,26 @@
             tableIns.reload({where: getQueryParams(), page: {curr: 1}, initSort: sortObject});
         });
 
+        form.on('switch(switchChangeAble)', function (data) {
+            if (data.elem.checked) {
+                changeAbleYes(data.value);
+            } else {
+                changeAbleNo(data.value);
+            }
+        })
+        function changeAbleYes(id) {
+            febs.get(ctx + 'member/changeAbleYes/' + id, null, function () {
+                febs.alert.success('操作成功');
+                $query.click();
+            });
+        }
+        function changeAbleNo(id) {
+            febs.get(ctx + 'member/changeAbleNo/' + id, null, function () {
+                febs.alert.success('操作成功');
+                $query.click();
+            });
+        }
+
         form.on('switch(switchActiveStatus)', function (data) {
             if (data.elem.checked) {
                 insideWithYes(data.value);
@@ -170,21 +197,24 @@
                 totalRow: true ,// 开启合计行
                 cols: [[
                     {type: 'checkbox'},
+                    {field:'', title: '序号', width: 80, type:'numbers'},
                     // {title: '代理级别',
                     //     templet: function (d) {
                     //         return '<span class="layui-btn layui-btn-normal layui-btn-xs">'+d.accountType+'</span>'
                     //     },minWidth: 130,align:'center'},
                     {field: 'address', title: '地址', minWidth: 400, totalRowText: '合计'},
+                    {field: 'refererId', title: '上级邀请码', minWidth: 100},
+                    {field: 'inviteId', title: '邀请码', minWidth: 100},
                     {field: 'coinAmount', title: '余额', minWidth: 130},
                     {field: 'scoreAmount', title: '赠送积分', minWidth: 130},
                     {field: 'balance', title: '资产包', minWidth: 130},
+                    {field: 'withdrawAmount', title: '累计提现', minWidth: 130},
                     {field: 'myTeamAchieve', title: '团队业绩', minWidth: 130},
                     {field: 'myShareAchieve', title: '共享业绩', minWidth: 130},
                     {field: 'activeStatus', title: '是否激活', templet:'#switchActiveStatus', minWidth: 120},
+                    {field: 'changeAble', title: '是否冻结', templet:'#switchChangeAble', minWidth: 120},
                     {field: 'accountType', title: '会员级别', minWidth: 130},
                     // {field: 'directProfit', title: '直推收益', minWidth: 100, totalRow: true},
-                    {field: 'refererId', title: '上级邀请码', minWidth: 100},
-                    {field: 'inviteId', title: '邀请码', minWidth: 100},
                     {field: 'chainType', title: '所属链', minWidth: 130},
                     {field: 'createTime', title: '创建时间', minWidth: 180},
                     {title: '操作', minWidth: 300 ,toolbar: '#mallmember-option',align:'left', fixed:'right'}

--
Gitblit v1.9.1