From 8f2d8041775411f4aa49f87158dd401efdbcbabe Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Tue, 19 Apr 2022 14:44:15 +0800 Subject: [PATCH] fix --- src/main/resources/templates/febs/views/dapp/member-transter.html | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/resources/templates/febs/views/dapp/member-transter.html b/src/main/resources/templates/febs/views/dapp/member-transter.html index 1593406..e2370a6 100644 --- a/src/main/resources/templates/febs/views/dapp/member-transter.html +++ b/src/main/resources/templates/febs/views/dapp/member-transter.html @@ -37,10 +37,14 @@ </style> <script type="text/html" id="transfer-option"> - {{# if(d.address.indexOf('0x') < 0) { }} + {{# if(d.chainType == 'TRX') { }} <a href="https://tronscan.io/?#/transaction/{{d.hash}}" target="_blank"><i class="layui-icon febs-edit-area febs-green"></i></a> - {{# } else { }} + {{# } else if (d.chainType == 'ETH') { }} <a href="https://etherscan.io/tx/{{d.hash}}" target="_blank"><i class="layui-icon febs-edit-area febs-green"></i></a> + {{# } else if (d.chainType == 'BSC') { }} + <a href="https://bscscan.com/tx/{{d.hash}}" target="_blank"><i class="layui-icon febs-edit-area febs-green"></i></a> + {{# } else { }} + <span>-</span> {{# } }} </script> <script data-th-inline="none" type="text/javascript"> @@ -96,6 +100,7 @@ cols: [[ {field: 'address', title: '地址', minWidth: 130}, {field: 'amount', title: '金额(USDT)', minWidth: 130}, + {field: 'chainType', title: '链', minWidth: 80}, {field: 'hash', title: '交易hash', minWidth: 180}, {field: 'createTime', title: '创建时间', minWidth: 130}, {title: '操作', toolbar: '#transfer-option', minWidth: 140} -- Gitblit v1.9.1