| | |
| | | <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> |
| | |
| | | }); |
| | | } |
| | | |
| | | 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') { |
| | |
| | | {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}, |
| | |
| | | $query.click(); |
| | | }); |
| | | } |
| | | |
| | | }) |
| | | </script> |