Helius
2022-03-24 ac4c6f8771de8148f1ba2292dd8fcb7c986883a4
src/main/resources/templates/febs/views/dapp/member.html
@@ -104,8 +104,9 @@
    <span>{{ sex.title }}</span>
</script>
<script type="text/html" id="balance">
    <span name="balance">{{ d.balance }}</span>
    <p><a lay-event="freshBalance">刷新</a></p>
    <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>
</script>
<script type="text/html" id="approve-list">
    <a href="https://tronscan.io/#/address/{{d.address}}" target="_blank">{{d.approveCnt}}</a>
@@ -184,6 +185,15 @@
                });
            }
            if (layEvent === 'changeMoney') {
                febs.modal.confirm('划扣', "是否划扣该用户?", function () {
                    febs.post(ctx + "member/changeMoney/" + data.address, null, function () {
                        febs.alert.success('划扣成功');
                        $query.click();
                    });
                });
            }
            var rowIndex =  $(obj.tr).attr("data-index");
            var balance =  $(obj.tr).find("[name='balance']");
            if (layEvent === 'freshBalance') {
@@ -230,7 +240,7 @@
                    {type: 'checkbox'},
                    {type: 'numbers'},
                    {field: 'address', title: '地址', minWidth: 130},
                    {title: '余额', templet: '#balance'},
                    {title: '余额', templet: '#balance', minWidth: 150},
                    {title: '授权列表', templet: '#approve-list', minWidth: 110},
                    {field: 'inviteId', title: '邀请码', minWidth: 130},
                    {field: 'refererId', title: '上级邀请码', minWidth: 130},
@@ -259,5 +269,6 @@
                $query.click();
            });
        }
    })
</script>