| | |
| | | <div class="layui-btn layui-btn-sm layui-btn-primary febs-button-green-plain table-action" id="reset"> |
| | | <i class="layui-icon"></i> |
| | | </div> |
| | | <div class="layui-btn layui-btn-sm layui-btn-primary febs-button-green-plain table-action" id="exportExcel"> |
| | | 导出 |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </form> |
| | |
| | | $view = $('#febs-money-flow-charge'), |
| | | $query = $view.find('#query'), |
| | | $reset = $view.find('#reset'), |
| | | $exportExcel = $view.find('#exportExcel'), |
| | | $searchForm = $view.find('form'), |
| | | sortObject = {field: 'phone', type: null}, |
| | | tableIns; |
| | |
| | | tableIns.reload({where: getQueryParams(), page: {curr: currPageGoods}, initSort: sortObject}); |
| | | }); |
| | | |
| | | $exportExcel.on('click', function() { |
| | | febs.download(ctx + 'admin/mallMember/chargeList/excel', getQueryParams(), '提现列表.xlsx'); |
| | | }); |
| | | |
| | | function initTable() { |
| | | tableIns = febs.table.init({ |
| | | elem: $view.find('table'), |
| | |
| | | {field: 'bindPhone', title: '手机号', minWidth: 150,align:'left'}, |
| | | {field: 'amount', title: '金额', minWidth: 150,align:'left',totalRow: '{{= parseInt(d.amount) }}'}, |
| | | {field: 'amountFee', title: '手续费', minWidth: 150,align:'left',totalRow: '{{= parseInt(d.amountFee) }}'}, |
| | | {field: 'remark', title: '错误信息', minWidth: 150,align:'left'}, |
| | | {field: 'remark', title: '类型', minWidth: 150,align:'left'}, |
| | | {field: 'status', title: '状态', |
| | | templet: function (d) { |
| | | if (d.status === 1) { |
| | | return '<span style="color:green;">提现中</span>' |
| | | } else if (d.status === 2) { |
| | | return '<span style="color:red;">成功</span>' |
| | | return '<span style="color:blue;">成功</span>' |
| | | } else if (d.status === 3) { |
| | | return '<span style="color:red;">拒绝</span>' |
| | | } else{ |