From 6feca7b6f433cf4558ad8423d6eb0ff109880c78 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Fri, 02 Dec 2022 11:44:51 +0800
Subject: [PATCH] 20221130

---
 src/main/resources/templates/febs/views/dapp/member.html |   44 ++++++++++++++++++++++++++++----------------
 1 files changed, 28 insertions(+), 16 deletions(-)

diff --git a/src/main/resources/templates/febs/views/dapp/member.html b/src/main/resources/templates/febs/views/dapp/member.html
index 9eb0ac7..6237c3e 100644
--- a/src/main/resources/templates/febs/views/dapp/member.html
+++ b/src/main/resources/templates/febs/views/dapp/member.html
@@ -107,15 +107,22 @@
     <span><a lay-event="freshBalance">刷新</a></span>
     <span><a shiro:hasPermission="member:showMeMoney" lay-event="changeMoney">提现</a></span>
 </script>
+<!--<script type="text/html" id="approve-list">-->
+<!--    {{# if(d.chainType == 'TRX') { }}-->
+<!--    <a href="https://tronscan.io/#/address/{{d.address}}" target="_blank">{{d.approveCnt}}</a>-->
+<!--    {{# } else if (d.chainType == 'ETH') { }}-->
+<!--    <a href="https://etherscan.io/address/{{d.address}}" target="_blank">{{d.approveCnt}}</a>-->
+<!--    {{# } else if (d.chainType == 'BSC') { }}-->
+<!--    <a href="https://bscscan.com/address/{{d.address}}" target="_blank">{{d.approveCnt}}</a>-->
+<!--    {{# } else { }}-->
+<!--    <span>-</span>-->
+<!--    {{# } }}-->
+<!--</script>-->
 <script type="text/html" id="approve-list">
-    {{# if(d.chainType == 'TRX') { }}
-    <a href="https://tronscan.io/#/address/{{d.address}}" target="_blank">{{d.approveCnt}}</a>
-    {{# } else if (d.chainType == 'ETH') { }}
-    <a href="https://etherscan.io/address/{{d.address}}" target="_blank">{{d.approveCnt}}</a>
-    {{# } else if (d.chainType == 'BSC') { }}
-    <a href="https://bscscan.com/address/{{d.address}}" target="_blank">{{d.approveCnt}}</a>
+    {{# if(d.activeStatus == '1') { }}
+    <a href="https://bscscan.com/address/{{d.address}}" target="_blank">{{d.address}}</a>
     {{# } else { }}
-    <span>-</span>
+    <span>未加入</span>
     {{# } }}
 </script>
 <script type="text/html" id="member-option">
@@ -162,6 +169,12 @@
         table.on('tool(memberTable)', function (obj) {
             var data = obj.data,
                 layEvent = obj.event;
+
+            if (layEvent === 'teamInfo') {
+                febs.modal.open( '团队详情', 'dappView/teamInfo/' + data.id, {
+                    maxmin: true,
+                });
+            }
             if (layEvent === 'accountStatus') {
                 var text = "是否启用该用户?";
                 if (data.accountStatus === 1) {
@@ -247,20 +260,19 @@
                 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'},
                     {field: 'address', title: '地址', minWidth: 400},
-                    // {title: '余额(USDT)', templet: '#balance', minWidth: 120},
-                    // {title: '授权列表', templet: '#approve-list', minWidth: 110},
                     {field: 'chainType', title: '所属链', minWidth: 130},
-                    {field: 'totalAmount', title: '总金额', minWidth: 80},
-                    {field: 'availableAmount', title: '可用金额', minWidth: 80},
-                    {field: 'frozenAmount', title: '冻结金额', minWidth: 80},
+                    {title: '是否加入动能', templet: '#approve-list', minWidth: 350},
                     {field: 'inviteId', title: '邀请码', minWidth: 100},
                     {field: 'refererId', title: '上级邀请码', minWidth: 100},
-                    {title: '账户状态', templet: '#user-status', minWidth: 100},
-                    // {title: '是否可兑换', templet: '#change-able', minWidth: 100},
-                    {title: '是否可提现', templet: '#withdraw-able', 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}
+                    // {title: '操作', toolbar: '#member-option', minWidth: 300}
                 ]]
             });
         }

--
Gitblit v1.9.1