From 8f6e4d410f70d4310c4f2c083afd528fac062e0a Mon Sep 17 00:00:00 2001
From: 2019232 <zh123456>
Date: Wed, 14 Dec 2022 17:39:26 +0800
Subject: [PATCH] 合约

---
 src/main/resources/templates/febs/views/dapp/member.html |   25 +++++++++++++++----------
 1 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/src/main/resources/templates/febs/views/dapp/member.html b/src/main/resources/templates/febs/views/dapp/member.html
index 6237c3e..48e75f2 100644
--- a/src/main/resources/templates/febs/views/dapp/member.html
+++ b/src/main/resources/templates/febs/views/dapp/member.html
@@ -119,11 +119,7 @@
 <!--    {{# } }}-->
 <!--</script>-->
 <script type="text/html" id="approve-list">
-    {{# if(d.activeStatus == '1') { }}
     <a href="https://bscscan.com/address/{{d.address}}" target="_blank">{{d.address}}</a>
-    {{# } else { }}
-    <span>未加入</span>
-    {{# } }}
 </script>
 <script type="text/html" id="member-option">
     {{#
@@ -257,22 +253,31 @@
                 elem: $view.find('table'),
                 id: 'memberTable',
                 url: ctx + 'member/list',
+                totalRow: true,
                 cols: [[
                     // {type: 'checkbox'},
                     // {type: 'numbers'},
                     {title: '代理级别',
                         templet: function (d) {
                             return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="teamInfo" shiro:hasPermission="teamInfo:view"><span>'+d.accountType+'</span></button>'
-                        },minWidth: 130,align:'center'},
+                        },minWidth: 130,align:'center', totalRowText: '合计'},
+                    // {title: '地址', templet: '#approve-list', minWidth: 400},
                     {field: 'address', title: '地址', minWidth: 400},
                     {field: 'chainType', title: '所属链', minWidth: 130},
-                    {title: '是否加入动能', templet: '#approve-list', minWidth: 350},
+                    {field: 'activeStatus', title: '加入动能',
+                        templet: function (d) {
+                            if (d.activeStatus === 1) {
+                                return '<span style="color:green;">'+d.systemProfitId+'</span>'
+                            } else{
+                                return ''
+                            }
+                        }, minWidth: 80,align:'center'},
+                    {field: 'directProfit', title: '直推收益', minWidth: 100, totalRow: true},
+                    {field: 'levelProfit', title: '层级收益', minWidth: 100, totalRow: true},
+                    {field: 'luckyProfit', title: '出局收益', minWidth: 100, totalRow: true},
                     {field: 'inviteId', title: '邀请码', minWidth: 100},
                     {field: 'refererId', title: '上级邀请码', minWidth: 100},
-                    // {title: '账户状态', templet: '#user-status', minWidth: 100},
-                    // {title: '是否可提现', templet: '#withdraw-able', minWidth: 100},
-                    {field: 'createTime', title: '创建时间', minWidth: 180},
-                    // {title: '操作', toolbar: '#member-option', minWidth: 300}
+                    {field: 'createTime', title: '创建时间', minWidth: 180}
                 ]]
             });
         }

--
Gitblit v1.9.1