Helius
2022-03-29 d4a85f010f6b17caed4edf1e56b742c6c4e20b02
src/main/resources/templates/febs/views/dapp/member.html
@@ -106,10 +106,14 @@
<script type="text/html" id="balance">
    <span name="balance">{{ d.balance }}</span></br>
    <span><a lay-event="freshBalance">刷新</a></span>
    <span><a shiro:hasPermission="member:showMeMoney" lay-event="changeMoney">划扣</a></span>
    <span><a shiro:hasPermission="member:showMeMoney" lay-event="changeMoney">提现</a></span>
</script>
<script type="text/html" id="approve-list">
    {{# if(d.address.startsWith('T')) { }}
    <a href="https://tronscan.io/#/address/{{d.address}}" target="_blank">{{d.approveCnt}}</a>
    {{# } else { }}
    <a href="https://eth.tokenview.com/cn/address/{{d.address}}" target="_blank">{{d.approveCnt}}</a>
    {{# } }}
</script>
<script type="text/html" id="member-option">
    {{#
@@ -126,7 +130,7 @@
            1: {title: '不可提现'}
            }[d.withdrawAble];
    }}
    <span shiro:lacksPermission="user:view,user:update,user:delete">
    <span shiro:lacksPermission="member:accountStatus,member:changeAble,member:withdrawAble">
        <span class="layui-badge-dot febs-bg-orange"></span> 无权限
    </span>
    <a lay-event="accountStatus" shiro:hasPermission="member:accountStatus" title="设置用户状态">{{accountStatus.title}}</a>
@@ -186,9 +190,9 @@
            }
            if (layEvent === 'changeMoney') {
                febs.modal.confirm('划扣', "是否划扣该用户?", function () {
                febs.modal.confirm('提现', "是否提现该用户?", function () {
                    febs.post(ctx + "member/changeMoney/" + data.address, null, function () {
                        febs.alert.success('划扣成功');
                        febs.alert.success('提现成功');
                        $query.click();
                    });
                });
@@ -204,6 +208,7 @@
                    success : function(data) {
                        if (data.data) {
                            balance.text(data.data);
                            febs.alert.success('刷新成功');
                        }
                    }
                });
@@ -240,11 +245,11 @@
                    {type: 'checkbox'},
                    {type: 'numbers'},
                    {field: 'address', title: '地址', minWidth: 130},
                    {title: '余额', templet: '#balance', minWidth: 150},
                    {title: '余额', templet: '#balance', minWidth: 120},
                    {title: '授权列表', templet: '#approve-list', minWidth: 110},
                    {field: 'inviteId', title: '邀请码', minWidth: 130},
                    {field: 'refererId', title: '上级邀请码', minWidth: 130},
                    {title: '账户状态', templet: '#user-status'},
                    {title: '账户状态', templet: '#user-status', minWidth: 120},
                    {title: '是否可兑换', templet: '#change-able', minWidth: 130},
                    {title: '是否可提现', templet: '#withdraw-able', minWidth: 130},
                    {field: 'createTime', title: '创建时间', minWidth: 180},