| | |
| | | <div class="layui-fluid layui-anim febs-anim" id="febs-withdraw" lay-title="提现记录"> |
| | | <div class="layui-fluid layui-anim febs-anim" id="febs-withdraw" lay-title="USDT提现"> |
| | | <div class="layui-row febs-container"> |
| | | <div class="layui-col-md12"> |
| | | <div class="layui-card"> |
| | |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="address" autocomplete="off" placeholder="输入地址或邀请码" class="layui-input"> |
| | | <input type="text" name="address" autocomplete="off" placeholder="输入地址" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | </div> |
| | | </form> |
| | | <table lay-filter="withdrawTable" lay-data="{id: 'withdrawTable'}"></table> |
| | | |
| | | <style type="text/css"> |
| | | /*.layui-table-cell{*/ |
| | | /* text-align:center;*/ |
| | | /* height: auto;*/ |
| | | /* white-space: nowrap; !*文本不会换行,在同一行显示*!*/ |
| | | /* overflow: hidden; !*超出隐藏*!*/ |
| | | /* text-overflow: ellipsis; !*省略号显示*!*/ |
| | | /*}*/ |
| | | /*.layui-table img{*/ |
| | | /* max-width:100px*/ |
| | | /*}*/ |
| | | ::-webkit-scrollbar { |
| | | height: 20px !important; |
| | | background-color: #f4f4f4; |
| | | } |
| | | </style> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <style> |
| | | .layui-table-cell { |
| | | height: auto !important; |
| | | } |
| | | </style> |
| | | <!--<style>--> |
| | | <!-- .layui-table-cell {--> |
| | | <!-- height: auto !important;--> |
| | | <!-- }--> |
| | | <!--</style>--> |
| | | <script type="text/html" id="withdraw-status"> |
| | | {{# |
| | | var status = { |
| | |
| | | }} |
| | | <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> |
| | | <a lay-event="agree" shiro:hasPermission="withdraw:agree">审核通过</a> |
| | | <a lay-event="disagree" shiro:hasPermission="withdraw:disagree">审核驳回</a> |
| | | {{# } }} |
| | | </script> |
| | | |
| | | <script type="text/html" id="tableToolBarOrder"> |
| | | <div class="layui-btn-container"> |
| | | <button class="layui-btn layui-btn-sm layui-btn-primary febs-button-blue-plain" lay-event="confirmOrder">提现确认</button> |
| | | <button class="layui-btn layui-btn-sm layui-btn-primary febs-button-blue-plain" lay-event="confirmCancel">提现取消</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 () { |
| | |
| | | |
| | | initTable(); |
| | | |
| | | table.on('toolbar(withdrawTable)', function(obj){ |
| | | var event = obj.event; |
| | | var id = obj.config.id; |
| | | var checkStatus = table.checkStatus(id); |
| | | if(event === 'confirmOrder'){ |
| | | 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('USDT提现', '总额为:'+totalAmount, function () { |
| | | confirmOrder(ids); |
| | | }); |
| | | } |
| | | if(event === 'confirmCancel'){ |
| | | 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 () { |
| | | confirmCancel(ids); |
| | | }); |
| | | } |
| | | }); |
| | | function confirmOrder(ids) { |
| | | febs.get(ctx + 'flow/confirmOrder?&orderIds='+ids, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | |
| | | }); |
| | | } |
| | | function confirmCancel(ids) { |
| | | febs.get(ctx + 'flow/confirmCancel?&orderIds='+ids, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | |
| | | }); |
| | | } |
| | | |
| | | table.on('tool(withdrawTable)', function (obj) { |
| | | var data = obj.data, |
| | | layEvent = obj.event; |
| | |
| | | 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); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | |
| | | tableIns = febs.table.init({ |
| | | elem: $view.find('table'), |
| | | id: 'withdrawTable', |
| | | url: ctx + 'flow/fundFlow?type=2', |
| | | url: ctx + 'flow/fundFlow?type=7', |
| | | toolbar: '#tableToolBarOrder', |
| | | cols: [[ |
| | | {field: 'address', title: '地址', minWidth: 130}, |
| | | {field: 'createTime', title: '创建时间', minWidth: 180}, |
| | | {field: 'amount', title: '提现金额', minWidth: 130}, |
| | | {title: '提现状态', templet: '#withdraw-status'}, |
| | | {field: 'fee', title: '手续费', minWidth: 130}, |
| | | {title: '操作', toolbar: '#withdraw-option', minWidth: 200} |
| | | {type: 'checkbox', fixed: 'left'}, |
| | | {title: '地址', templet: '#approve-list', minWidth: 400}, |
| | | {field: 'createTime', title: '创建时间', minWidth: 200}, |
| | | {field: 'amount', title: '金额(USDT)', minWidth: 130}, |
| | | {title: '提现状态', templet: '#withdraw-status', minWidth: 130}, |
| | | // {field: 'fee', title: '手续费', minWidth: 130}, |
| | | // {title: '操作', toolbar: '#withdraw-option', minWidth: 200} |
| | | ]] |
| | | }); |
| | | } |