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 | 17 +++++++++++------ 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/main/resources/templates/febs/views/dapp/member.html b/src/main/resources/templates/febs/views/dapp/member.html index 0cc4a9c..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,11 +206,11 @@ 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) { - if (data.data) { + if (data.data >= 0) { balance.text(data.data); febs.alert.success('刷新成功'); } @@ -245,8 +249,9 @@ {type: 'checkbox'}, {type: 'numbers'}, {field: 'address', title: '地址', minWidth: 130}, - {title: '余额', templet: '#balance', minWidth: 120}, + {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