| | |
| | | <div class="layui-fluid layui-anim febs-anim" id="febs-user" lay-title="OTC商户"> |
| | | <div class="layui-fluid layui-anim febs-anim" id="febs-user-shop" lay-title="OTC商户"> |
| | | <div class="layui-row febs-container"> |
| | | <div class="layui-col-md12"> |
| | | <div class="layui-card"> |
| | |
| | | febs = layui.febs, |
| | | form = layui.form, |
| | | table = layui.table, |
| | | $view = $('#febs-user'), |
| | | $view = $('#febs-user-shop'), |
| | | $query = $view.find('#query'), |
| | | $reset = $view.find('#reset'), |
| | | $searchForm = $view.find('form'), |
| | |
| | | if (layEvent === 'disagreeShop') { |
| | | febs.modal.confirm('拒绝', '确认拒绝该商户的审核?', function () { |
| | | disagreeShop(data.id); |
| | | }); |
| | | } |
| | | if (layEvent === 'huikuan') { |
| | | febs.modal.open('回款', 'modules/otc/huikuan/' + data.id, { |
| | | btn: ['提交', '取消'], |
| | | yes: function (index, layero) { |
| | | $('#user-update').find('#submit').trigger('click'); |
| | | }, |
| | | btn2: function () { |
| | | layer.closeAll(); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | |
| | | {field: 'realName', title: '姓名', minWidth: 100,align:'left'}, |
| | | {field: 'inviteId', title: '邀请码', minWidth: 80,align:'center'}, |
| | | {field: 'nikename', title: '昵称', minWidth: 80,align:'center'}, |
| | | {field: 'status', title: '审核状态', |
| | | templet: function (d) { |
| | | if (d.status === 1) { |
| | | return '<span style="color:blue;">待审核</span>' |
| | | } else if (d.status === 2) { |
| | | return '<span style="color:green;">审核通过</span>' |
| | | } else if (d.status === 3) { |
| | | return '<span>拒绝</span>' |
| | | }else{ |
| | | return '' |
| | | } |
| | | }, minWidth: 80,align:'center'}, |
| | | // {field: 'status', title: '审核状态', |
| | | // templet: function (d) { |
| | | // if (d.status === 1) { |
| | | // return '<span style="color:blue;">待审核</span>' |
| | | // } else if (d.status === 2) { |
| | | // return '<span style="color:green;">审核通过</span>' |
| | | // } else if (d.status === 3) { |
| | | // return '<span>拒绝</span>' |
| | | // }else{ |
| | | // return '' |
| | | // } |
| | | // }, minWidth: 80,align:'center'}, |
| | | // {field: 'waitBackMoney', title: '待回款',minWidth: 100,align:'center'}, |
| | | // {field: 'hasBackMoney', title: '已回款',minWidth: 100,align:'center'}, |
| | | {field: 'buyCnt', title: '服务人数',minWidth: 100,align:'center'}, |
| | | {field: 'totalOrderCnt', title: '总单数',minWidth: 100,align:'center'}, |
| | | {field: 'finishRatio', title: '完成率',minWidth: 100,align:'center'}, |
| | | {field: 'avgPayTime', title: '平均付款时间',minWidth: 100,align:'center'}, |
| | | {field: 'avgCoinTime', title: '平均放币时间',minWidth: 100,align:'center'}, |
| | | {field: 'createTime', title: '注册时间', minWidth: 180,align:'center'}, |
| | | {title: '操作',templet: function (d) { |
| | | if(d.status === 1){ |
| | | return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="agreeShop" shiro:hasPermission="user:update">同意</button>' |
| | | +'<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="disagreeShop" shiro:hasPermission="user:update">拒绝</button>' |
| | | }else{ |
| | | return '' |
| | | } |
| | | },minWidth: 200,align:'center'} |
| | | // {title: '操作',templet: function (d) { |
| | | // return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="huikuan" shiro:hasPermission="user:update">回款</button>' |
| | | // // if(d.status === 1){ |
| | | // // return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="agreeShop" shiro:hasPermission="user:update">同意</button>' |
| | | // // +'<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="disagreeShop" shiro:hasPermission="user:update">拒绝</button>' |
| | | // // }else{ |
| | | // // return '' |
| | | // // } |
| | | // },minWidth: 200,align:'center'} |
| | | ]] |
| | | }); |
| | | } |