| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label layui-form-label-sm">钱包地址</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="coinAddress" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label layui-form-label-sm">状态</label> |
| | | <div class="layui-input-inline"> |
| | | <select name="accountStatus"> |
| | |
| | | <!-- <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">--> |
| | | <!-- {{# if(d.chainType == 'TRX') { }}--> |
| | | <!-- <a href="https://tronscan.io/#/address/{{d.address}}" target="_blank">{{d.approveCnt}}</a>--> |
| | | <!-- {{# } 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="approve-list"> |
| | | {{# if(d.coinAddress != '') { }} |
| | | <a href="https://tronscan.io/#/address/{{d.coinAddress}}" target="_blank">{{d.coinAddress}}</a> |
| | | {{# } else { }} |
| | | <span>-</span> |
| | | {{# } }} |
| | | </script> |
| | | <!--<script type="text/html" id="member-option">--> |
| | | <!-- {{#--> |
| | | <!-- var accountStatus = {--> |
| | |
| | | table.on('tool(memberTable)', function (obj) { |
| | | var data = obj.data, |
| | | layEvent = obj.event; |
| | | |
| | | if (layEvent === 'teamInfo') { |
| | | febs.modal.open( '团队详情', 'dappView/teamInfo/' + data.id, { |
| | | maxmin: true, |
| | | }); |
| | | } |
| | | if (layEvent === 'resetTransferCode') { |
| | | febs.modal.confirm('资金密码', '是否重置资金密码为:123456?', function () { |
| | | resetTransferCode(data.id); |
| | |
| | | btn: ['提交', '取消'], |
| | | yes: function (index, layero) { |
| | | $('#payUsdt-update').find('#submit').trigger('click'); |
| | | }, |
| | | btn2: function () { |
| | | layer.closeAll(); |
| | | } |
| | | }); |
| | | } |
| | | if (layEvent === 'identitySet') { |
| | | febs.modal.open('设置会员等级', 'dappView/identitySet/' + data.id, { |
| | | btn: ['提交', '取消'], |
| | | yes: function (index, layero) { |
| | | $('#identitySet-update').find('#submit').trigger('click'); |
| | | }, |
| | | btn2: function () { |
| | | layer.closeAll(); |
| | |
| | | id: 'memberTable', |
| | | url: ctx + 'member/list', |
| | | cols: [[ |
| | | {type: 'checkbox'}, |
| | | {type: 'numbers'}, |
| | | {field: 'username', title: '用户名', minWidth: 130}, |
| | | // {type: 'checkbox'}, |
| | | // {type: 'numbers'}, |
| | | // {field: 'username', title: '用户名', minWidth: 120}, |
| | | {title: '用户名', |
| | | templet: function (d) { |
| | | return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="teamInfo" shiro:hasPermission="teamInfo:update"><span>'+d.username+'</span></button>' |
| | | },minWidth: 130,align:'center'}, |
| | | {field: 'identity', title: '会员', |
| | | templet: function (d) { |
| | | if (d.identity === 'LEVEL_TM') { |
| | |
| | | }else{ |
| | | return '' |
| | | } |
| | | }, minWidth: 100, align: 'center'}, |
| | | {field: 'identity', title: '等级', minWidth: 100, align: 'center'}, |
| | | // {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}, |
| | | {field: 'createTime', title: '创建时间', minWidth: 180}, |
| | | }, minWidth: 80, align: 'center'}, |
| | | // {field: 'identity', title: '等级', |
| | | // templet: function (d) { |
| | | // if (d.identity === 'LEVEL_TM') { |
| | | // return '<span></span>' |
| | | // } else if (d.identity != 'LEVEL_TM' && d.identity != '' && d.identity != null) { |
| | | // return '<span>'+d.identity+'</span>' |
| | | // }else{ |
| | | // return '' |
| | | // } |
| | | // }, minWidth: 130, align: 'center'}, |
| | | |
| | | {title: '会员等级', |
| | | templet: function (d) { |
| | | if(d.identity === 'LEVEL_TM'){ |
| | | return '<span>'+d.identity+'</span>' |
| | | }else{ |
| | | return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="identitySet" shiro:hasPermission="user:update"><span>'+d.identity+'</span></button>' |
| | | } |
| | | },minWidth: 130,align:'center'}, |
| | | |
| | | {title: '授权列表', templet: '#approve-list', minWidth: 350}, |
| | | {field: 'totalAmount', title: '总金额', minWidth: 100}, |
| | | {field: 'availableAmount', title: '可用余额', minWidth: 100}, |
| | | {field: 'frozenAmount', title: '冻结金额', minWidth: 100}, |
| | | {field: 'refererName', title: '上级', minWidth: 130}, |
| | | ,{field: 'accountStatus', title: '账户状态',templet: '#isAccountStatus', minWidth: 180}, |
| | | // {title: '账户状态', templet: '#user-status', minWidth: 120}, |
| | | // {title: '是否可兑换', templet: '#change-able', minWidth: 130}, |
| | |
| | | }else{ |
| | | return '' |
| | | } |
| | | },minWidth: 180,align:'center'}, |
| | | },minWidth: 130,align:'center'}, |
| | | {title: '重置资金密码', |
| | | templet: function (d) { |
| | | if(d.identity != 'LEVEL_TM' && d.identity != '' && d.identity != null){ |
| | |
| | | }else{ |
| | | return '' |
| | | } |
| | | },minWidth: 180,align:'center'}, |
| | | },minWidth: 130,align:'center'}, |
| | | {title: '后台拨付', |
| | | templet: function (d) { |
| | | return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="payUsdt" shiro:hasPermission="user:update">拨付</button>' |
| | | },minWidth: 180,align:'center'}, |
| | | },minWidth: 130,align:'center'}, |
| | | {field: 'inviteId', title: '邀请码', minWidth: 100}, |
| | | {field: 'createTime', title: '创建时间', minWidth: 180}, |
| | | ]] |
| | | }); |
| | | } |
| | |
| | | function getQueryParams() { |
| | | return { |
| | | username: $searchForm.find('input[name="username"]').val().trim(), |
| | | coinAddress: $searchForm.find('input[name="coinAddress"]').val().trim(), |
| | | changeAble: $searchForm.find("select[name='changeAble']").val(), |
| | | accountStatus: $searchForm.find("select[name='accountStatus']").val(), |
| | | withdrawAble: $searchForm.find("input[name='withdrawAble']").val(), |