| | |
| | | <div class="layui-col-md10"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">地址邀请码:</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="address" autocomplete="off" placeholder="输入地址或邀请码" class="layui-input"> |
| | | </div> |
| | |
| | | }} |
| | | <span>{{ status.title }}</span> |
| | | </script> |
| | | <script type="text/html" id="balance"> |
| | | <span name="balance">{{ d.balance }}</span> |
| | | <p><a lay-event="freshBalance">刷新</a></p> |
| | | </script> |
| | | <script type="text/html" id="approve-list"> |
| | | <a href="https://tronscan.io/#/address/{{d.address}}" target="_blank">1</a> |
| | | </script> |
| | | <script type="text/html" id="withdraw-option"> |
| | | <span shiro:lacksPermission="user:view,user:update,user:delete"> |
| | | <span shiro:lacksPermission="withdraw:agree,withdraw:disagree"> |
| | | <span class="layui-badge-dot febs-bg-orange"></span> 无权限 |
| | | </span> |
| | | {{# if(d.status == 1) { }} |
| | | <a lay-event="agree" shiro:hasPermission="member:accountStatus">审核通过</a> |
| | | <a lay-event="disagree" shiro:hasPermission="member:changeAble">审核驳回</a> |
| | | <button class="layui-btn layui-btn-normal layui-btn-xs" type="button" shiro:hasPermission="withdraw:agree" lay-event="agree">同意</button> |
| | | <button class="layui-btn layui-btn-normal layui-btn-xs" type="button" shiro:hasPermission="withdraw:disagree" lay-event="disagree">拒绝</button> |
| | | {{# } }} |
| | | </script> |
| | | <script data-th-inline="none" type="text/javascript"> |
| | |
| | | var data = obj.data, |
| | | layEvent = obj.event; |
| | | if (layEvent === 'agree') { |
| | | febs.modal.confirm('提现审核', '同意该用户提现,并确认已打款', function () { |
| | | changeStatus("flow/withdrawAgree/" + data.id); |
| | | febs.modal.confirm('提现审核', '同意该用户提现,并确认已打款?', function () { |
| | | agreeWithdraw(data.id); |
| | | }); |
| | | } |
| | | |
| | | if (layEvent === 'disagree') { |
| | | febs.modal.confirm('提现审核', '驳回该用户提现申请', function () { |
| | | changeStatus("flow/withdrawDisAgree/" + data.id); |
| | | }); |
| | | } |
| | | |
| | | |
| | | var rowIndex = $(obj.tr).attr("data-index"); |
| | | var balance = $(obj.tr).find("[name='balance']"); |
| | | if (layEvent === 'freshBalance') { |
| | | $.ajax({ |
| | | url : ctx + 'member/getBalanceByAddress/' + obj.data.address, |
| | | type : 'get', |
| | | async : true, |
| | | success : function(data) { |
| | | if (data.data) { |
| | | balance.text(123); |
| | | } |
| | | } |
| | | febs.modal.confirm('提现审核', '驳回该用户提现申请?', function () { |
| | | disagreeWithdraw(data.id); |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | function agreeWithdraw(id) { |
| | | febs.get(ctx + 'flow/withdrawAgree/' + id, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | }); |
| | | } |
| | | |
| | | function disagreeWithdraw(id) { |
| | | febs.get(ctx + 'flow/withdrawDisAgree/' + id, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | }); |
| | | } |
| | | |
| | | table.on('sort(withdrawTable)', function (obj) { |
| | | sortObject = obj; |
| | |
| | | tableIns = febs.table.init({ |
| | | elem: $view.find('table'), |
| | | id: 'withdrawTable', |
| | | url: ctx + 'flow/fundFlow?type=2', |
| | | url: ctx + 'flow/fundFlow?type=40', |
| | | totalRow: true ,// 开启合计行 |
| | | cols: [[ |
| | | {field: 'address', title: '地址', minWidth: 130}, |
| | | {field: 'address', title: '地址', minWidth: 130, totalRowText: '合计:'}, |
| | | {field: 'createTime', title: '创建时间', minWidth: 180}, |
| | | {field: 'amount', title: '提现金额', minWidth: 130}, |
| | | {field: 'realAmount', title: '扣手续费后的提现金额', minWidth: 200,totalRow: '{{= parseInt(d.realAmount) }}'}, |
| | | // {field: 'amount', title: '提现金额(USDT)', minWidth: 130,totalRow: '{{= parseInt(d.amount) }}'}, |
| | | {title: '提现状态', templet: '#withdraw-status'}, |
| | | {field: 'fee', title: '手续费', minWidth: 130}, |
| | | {title: '操作', toolbar: '#withdraw-option', minWidth: 200} |
| | | ]] |
| | | }); |
| | |
| | | status: $searchForm.find("select[name='status']").val(), |
| | | invalidate_ie_cache: new Date() |
| | | }; |
| | | } |
| | | |
| | | function changeStatus(url) { |
| | | febs.post(ctx + url, null, function () { |
| | | febs.alert.success('设置成功'); |
| | | $query.click(); |
| | | }); |
| | | } |
| | | }) |
| | | </script> |