|  |  | 
 |  |  |                                         <div class="layui-input-inline">
 | 
 |  |  |                                             <select name="orderStatus">
 | 
 |  |  |                                                 <option value="0"></option>
 | 
 |  |  |                                                 <option value="1">待审核</option>
 | 
 |  |  |                                                 <option value="1">待付款</option>
 | 
 |  |  |                                                 <option value="2">已付款</option>
 | 
 |  |  |                                                 <option value="3">已审核</option>
 | 
 |  |  |                                                 <option value="4">撤单</option>
 | 
 |  |  | 
 |  |  |         </div>
 | 
 |  |  |     </div>
 | 
 |  |  | </div>
 | 
 |  |  | <!-- 表格字段状态格式化 start -->
 | 
 |  |  | <script type="text/html" id="order-Status">
 | 
 |  |  |     {{#
 | 
 |  |  |     var orderStatus = {
 | 
 |  |  |     1: {title: '待审核' , color: 'gray'},
 | 
 |  |  |     2: {title: '已付款' , color: 'red'},
 | 
 |  |  |     3: {title: '已审核' , color: 'green'},
 | 
 |  |  |     4: {title: '撤单' , color: 'gray'},
 | 
 |  |  |     5: {title: '系统取消' , color: 'blue'}
 | 
 |  |  |     }[d.orderStatus];
 | 
 |  |  |     }}
 | 
 |  |  |     <span class="layui-badge febs-tag-{{orderStatus.color}}">{{ orderStatus.title }}</span>
 | 
 |  |  | </script>
 | 
 |  |  | <script type="text/html" id="payment-Type">
 | 
 |  |  |     {{#
 | 
 |  |  |     var paymentType = {
 | 
 |  |  |    null: {title: '无' },
 | 
 |  |  |     1: {title: '支付宝' },
 | 
 |  |  |     2: {title: '微信'},
 | 
 |  |  |     3: {title: '银行卡' }
 | 
 |  |  |     }[d.paymentType];
 | 
 |  |  |     }}
 | 
 |  |  |     <span >{{ paymentType.title }}</span>
 | 
 |  |  | </script>
 | 
 |  |  | 
 | 
 |  |  | <!-- 表格字段状态格式化 start -->
 | 
 |  |  | 
 | 
 |  |  | <!-- 表格操作栏 start -->
 | 
 |  |  | <script type="text/html" id="user-option">
 | 
 |  |  |     <span shiro:lacksPermission="user:view,user:update,user:delete">
 | 
 |  |  | 
 |  |  |                 elem: $view.find('table'),
 | 
 |  |  |                 id: 'userTable',
 | 
 |  |  |                 url: ctx + 'member/memberExtractUsdt',
 | 
 |  |  |                 totalRow: true,
 | 
 |  |  |                 cols: [[
 | 
 |  |  |                    {field: 'phone', title: '手机号码', minWidth: 120,align:'left'},
 | 
 |  |  |                    {field: 'phone', title: '手机号码', minWidth: 120,align:'left',totalRowText: '合计'},
 | 
 |  |  |                     {field: 'email', title: '邮箱', minWidth: 200,align:'left'},
 | 
 |  |  |                     {field: 'inviteId', title: '邀请码UID', minWidth: 80,align:'center'},
 | 
 |  |  |                     {field: 'amountCny', title: '人民币金额', minWidth: 120,align:'center'},
 | 
 |  |  |                     {field: 'amountUsdt', title: 'USDT金额', minWidth: 120,align:'center'},
 | 
 |  |  |                     {field: 'amountCny', title: '人民币金额', minWidth: 120,align:'center',totalRow: true},
 | 
 |  |  |                     {field: 'amountUsdt', title: 'USDT金额', minWidth: 120,align:'center',totalRow: true},
 | 
 |  |  |                     {field: 'unitPrice', title: '单价', minWidth: 80,align:'center'},
 | 
 |  |  |                     {field: 'createTime', title: '提现时间', minWidth: 180,align:'center'},
 | 
 |  |  |                     {title: '提现状态', templet: '#order-Status', minWidth: 100,align:'center'},
 | 
 |  |  |                     {title: '收款方式', templet: '#payment-Type', minWidth: 100,align:'center'},
 | 
 |  |  |                     {field: 'orderStatus', title: '提现状态',
 | 
 |  |  |                        templet: function (d) {
 | 
 |  |  |                             if (d.orderStatus === 1) {
 | 
 |  |  |                                 return '<span style="color:gray;">待付款</span>'
 | 
 |  |  |                             } else if(d.orderStatus === 2){
 | 
 |  |  |                                 return '<span style="color:red;">已付款</span>'
 | 
 |  |  |                             } else if(d.orderStatus === 3){
 | 
 |  |  |                                 return '<span style="color:green;">已审核</span>'
 | 
 |  |  |                            } else if(d.orderStatus === 4){
 | 
 |  |  |                                return '<span style="color:gray;">撤单</span>'
 | 
 |  |  |                             } else if(d.orderStatus === 5){
 | 
 |  |  |                                 return '<span style="color:blue;">系统取消</span>'
 | 
 |  |  |                             }else{
 | 
 |  |  |                                 return ''
 | 
 |  |  |                             }
 | 
 |  |  |                         }, minWidth: 180,align:'center'},
 | 
 |  |  |                     {field: 'paymentType', title: '收款方式',
 | 
 |  |  |                            templet: function (d) {
 | 
 |  |  |                                 if (d.paymentType === 1) {
 | 
 |  |  |                                     return '<span>支付宝</span>'
 | 
 |  |  |                                 } else if(d.paymentType === 2){
 | 
 |  |  |                                     return '<span>微信</span>'
 | 
 |  |  |                                 } else if(d.paymentType === 3){
 | 
 |  |  |                                     return '<span>银行卡</span>'
 | 
 |  |  |                                 }else{
 | 
 |  |  |                                     return '<span style="color:red;">无</span>'
 | 
 |  |  |                                 }
 | 
 |  |  |                             }, minWidth: 180,align:'center'},
 | 
 |  |  |                     {field: 'paymentQrcode', title: '支付码', minWidth: 120,align:'center'},
 | 
 |  |  |                     {field: 'orderNo', title: '订单编号', minWidth: 150,align:'center'},
 | 
 |  |  |                     {field: 'name', title: '收款人', minWidth: 150,align:'center'},
 | 
 |  |  |                     {field: 'account', title: '收款账号', minWidth: 150,align:'center'},
 | 
 |  |  |                     {field: 'paymentAccount', title: '二维码', minWidth: 150,align:'center'},
 | 
 |  |  |                     {field: 'bank', title: '所属银行', minWidth: 150,align:'center'},
 | 
 |  |  |                     {title: '操作', toolbar: '#user-option', minWidth: 150, fixed : 'right'}
 | 
 |  |  |                     {title: '操作',  | 
 |  |  |                        templet: function (d) {
 | 
 |  |  |                             if (d.orderStatus === 1) {
 | 
 |  |  |                                return '<a lay-event="confirm" shiro:hasPermission="user:delete">付款</a>'
 | 
 |  |  |                                +'<i class="layui-icon febs-edit-area febs-blue"></i>'
 | 
 |  |  |                                +'<a lay-event="cancel" shiro:hasPermission="user:delete">拒绝</a>'
 | 
 |  |  |                             }else {
 | 
 |  |  |                                 return ''
 | 
 |  |  |                             }
 | 
 |  |  |                         },minWidth: 200,align:'center'}
 | 
 |  |  |                 ]]
 | 
 |  |  |             });
 | 
 |  |  |         }
 |