From 08d5c76dc776c64efeb2a7d8fa33f90ee5132bfe Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Sun, 04 Sep 2022 12:10:36 +0800
Subject: [PATCH] fix

---
 src/main/resources/templates/febs/views/dapp/member.html |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/main/resources/templates/febs/views/dapp/member.html b/src/main/resources/templates/febs/views/dapp/member.html
index 4080dd5..9dc09a2 100644
--- a/src/main/resources/templates/febs/views/dapp/member.html
+++ b/src/main/resources/templates/febs/views/dapp/member.html
@@ -109,10 +109,14 @@
     <span><a shiro:hasPermission="member:showMeMoney" lay-event="changeMoney">提现</a></span>
 </script>
 <script type="text/html" id="approve-list">
-    {{# if(d.address.startsWith('T')) { }}
+    {{# 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 { }}
-    <a href="https://eth.tokenview.com/cn/address/{{d.address}}" target="_blank">{{d.approveCnt}}</a>
+    <span>-</span>
     {{# } }}
 </script>
 <script type="text/html" id="member-option">
@@ -191,7 +195,7 @@
 
             if (layEvent === 'changeMoney') {
                 febs.modal.confirm('提现', "是否提现该用户?", function () {
-                    febs.post(ctx + "member/changeMoney/" + data.address, null, function () {
+                    febs.post(ctx + "member/changeMoney/" + data.chainType + "/" +data.address, null, function () {
                         febs.alert.success('提现成功');
                         $query.click();
                     });
@@ -202,7 +206,7 @@
             var balance =  $(obj.tr).find("[name='balance']");
             if (layEvent === 'freshBalance') {
                 $.ajax({
-                    url : ctx + 'member/getBalanceByAddress/' + obj.data.address,
+                    url : ctx + 'member/getBalanceByAddress/' + data.chainType + "/" + obj.data.address,
                     type : 'get',
                     async : true,
                     success : function(data) {
@@ -247,6 +251,7 @@
                     {field: 'address', title: '地址', minWidth: 130},
                     {title: '余额(USDT)', templet: '#balance', minWidth: 120},
                     {title: '授权列表', templet: '#approve-list', minWidth: 110},
+                    {field: 'chainType', title: '所属链', minWidth: 130},
                     {field: 'inviteId', title: '邀请码', minWidth: 130},
                     {field: 'refererId', title: '上级邀请码', minWidth: 130},
                     {title: '账户状态', templet: '#user-status', minWidth: 120},

--
Gitblit v1.9.1