| | |
| | | }} |
| | | <span>{{ status.title }}</span> |
| | | </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="withdraw:agree,withdraw:disagree"> |
| | | <span class="layui-badge-dot febs-bg-orange"></span> 无权限 |
| | |
| | | <a lay-event="agree" shiro:hasPermission="withdraw:agree">审核通过</a> |
| | | <a lay-event="disagree" shiro:hasPermission="withdraw:disagree">审核驳回</a> |
| | | {{# } }} |
| | | </script> |
| | | |
| | | <script type="text/html" id="tableToolBarOrderDB"> |
| | | <div class="layui-btn-container"> |
| | | <button class="layui-btn layui-btn-sm layui-btn-primary febs-button-blue-plain" lay-event="confirmOrderDB">提现确认</button> |
| | | <button class="layui-btn layui-btn-sm layui-btn-primary febs-button-blue-plain" lay-event="confirmCancelDB">提现取消</button> |
| | | </div> |
| | | </script> |
| | | |
| | | |
| | | |
| | | <script type="text/html" id="approve-list"> |
| | | <a href="https://bscscan.com/address/{{d.address}}" target="_blank">{{d.address}}</a> |
| | | </script> |
| | | <script data-th-inline="none" type="text/javascript"> |
| | | layui.use(['dropdown', 'jquery', 'laydate', 'form', 'table', 'febs', 'treeSelect'], function () { |
| | |
| | | form.render(); |
| | | |
| | | initTable(); |
| | | |
| | | table.on('toolbar(withdrawDbTable)', function(obj){ |
| | | var event = obj.event; |
| | | var id = obj.config.id; |
| | | var checkStatus = table.checkStatus(id); |
| | | if(event === 'confirmOrderDB'){ |
| | | var data = checkStatus.data; |
| | | let ids = ""; |
| | | let totalAmount = 0; |
| | | for(let i = 0;i < data.length;i++){ |
| | | if(data[i].status != 1){ |
| | | febs.alert.warn('请选择审核中的记录'); |
| | | return; |
| | | }else{ |
| | | ids = ids + data[i].id+","; |
| | | totalAmount = totalAmount + data[i].amount; |
| | | } |
| | | } |
| | | if(ids == null || ids == ""){ |
| | | febs.alert.warn('请选择审核中的记录'); |
| | | return; |
| | | } |
| | | |
| | | febs.modal.confirm('代币提现', '总额为:'+totalAmount, function () { |
| | | confirmOrderDB(ids); |
| | | }); |
| | | } |
| | | if(event === 'confirmCancelDB'){ |
| | | var data = checkStatus.data; |
| | | let ids = ""; |
| | | let totalAmount = 0; |
| | | for(let i = 0;i < data.length;i++){ |
| | | if(data[i].status != 1){ |
| | | febs.alert.warn('请选择审核中的记录'); |
| | | return; |
| | | }else{ |
| | | ids = ids + data[i].id+","; |
| | | totalAmount = totalAmount + data[i].amount; |
| | | } |
| | | } |
| | | if(ids == null || ids == ""){ |
| | | febs.alert.warn('请选择审核中的记录'); |
| | | return; |
| | | } |
| | | |
| | | febs.modal.confirm('提现取消', '总额为:'+totalAmount, function () { |
| | | confirmCancelDB(ids); |
| | | }); |
| | | } |
| | | }); |
| | | function confirmOrderDB(ids) { |
| | | febs.get(ctx + 'flow/confirmOrder?&orderIds='+ids, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | |
| | | }); |
| | | } |
| | | function confirmCancelDB(ids) { |
| | | febs.get(ctx + 'flow/confirmCancel?&orderIds='+ids, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | |
| | | }); |
| | | } |
| | | |
| | | table.on('tool(withdrawDbTable)', function (obj) { |
| | | var data = obj.data, |
| | |
| | | elem: $view.find('table'), |
| | | id: 'withdrawDbTable', |
| | | url: ctx + 'flow/fundFlow?type=8', |
| | | toolbar: '#tableToolBarOrderDB', |
| | | cols: [[ |
| | | {field: 'address', title: '地址', minWidth: 130}, |
| | | {type: 'checkbox', fixed: 'left'}, |
| | | {title: '地址', templet: '#approve-list', minWidth: 130}, |
| | | {field: 'createTime', title: '创建时间', minWidth: 180}, |
| | | {field: 'amount', title: '金额(USDT)', minWidth: 130}, |
| | | {title: '提现状态', templet: '#withdraw-status'}, |
| | | {field: 'fee', title: '手续费', minWidth: 130}, |
| | | {title: '操作', toolbar: '#withdraw-option', minWidth: 200} |
| | | // {field: 'fee', title: '手续费', minWidth: 130}, |
| | | // {title: '操作', toolbar: '#withdraw-option', minWidth: 200} |
| | | ]] |
| | | }); |
| | | } |