From ada1169b0bcabc1eadb621d2215f157234e4031a Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Sat, 11 Jun 2022 22:57:12 +0800
Subject: [PATCH] fix to test
---
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 042c393..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 { }}
+ {{# } 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="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