|  |  |  | 
|---|
|  |  |  | <div class="layui-input-inline"> | 
|---|
|  |  |  | <select name="verifyStatus"> | 
|---|
|  |  |  | <option value="">请选择</option> | 
|---|
|  |  |  | <option value="1">待审核</option> | 
|---|
|  |  |  | <option value="2">审核通过</option> | 
|---|
|  |  |  | <option value="1">审核通过</option> | 
|---|
|  |  |  | <option value="2">审核不通过</option> | 
|---|
|  |  |  | <option value="3">待审核</option> | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (layEvent === 'modifyProfitRatio') { | 
|---|
|  |  |  | febs.modal.open('修改', 'modules/documentary/modifyProfitRatio/' + data.id, { | 
|---|
|  |  |  | btn: ['确认', '取消'], | 
|---|
|  |  |  | yes: function (index, layero) { | 
|---|
|  |  |  | $('#user-update').find('#submit').trigger('click'); | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | btn2: function () { | 
|---|
|  |  |  | layer.closeAll(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (layEvent === 'getOut') { | 
|---|
|  |  |  | febs.modal.confirm('确认', '您是否要踢出该交易员?', function () { | 
|---|
|  |  |  | confirmUsers(data.id); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (layEvent === 'getOn') { | 
|---|
|  |  |  | febs.modal.confirm('确认', '您是否推荐当前交易员?', function () { | 
|---|
|  |  |  | confirmUsersGetOn(data.id); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (layEvent === 'getOutFrist') { | 
|---|
|  |  |  | febs.modal.confirm('确认', '您是否取消推荐当前交易员?', function () { | 
|---|
|  |  |  | confirmUsersGetOutFrist(data.id); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (layEvent === 'getFull') { | 
|---|
|  |  |  | 
|---|
|  |  |  | function confirmUsers(id) { | 
|---|
|  |  |  | febs.get(ctx + 'documentary/traderGetOut/' + id, null, function () { | 
|---|
|  |  |  | febs.alert.success('踢出成功'); | 
|---|
|  |  |  | $query.click(); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | function confirmUsersGetOn(id) { | 
|---|
|  |  |  | febs.get(ctx + 'documentary/traderGetOn/' + id, null, function () { | 
|---|
|  |  |  | febs.alert.success('设置成功'); | 
|---|
|  |  |  | $query.click(); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | function confirmUsersGetOutFrist(id) { | 
|---|
|  |  |  | febs.get(ctx + 'documentary/traderGetOutFrist/' + id, null, function () { | 
|---|
|  |  |  | febs.alert.success('设置成功'); | 
|---|
|  |  |  | $query.click(); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | url: ctx + 'documentary/traderList', | 
|---|
|  |  |  | cols: [[ | 
|---|
|  |  |  | {field: 'phone', title: '手机号', minWidth: 100,align:'left'}, | 
|---|
|  |  |  | {field: 'email', title: '邮箱', minWidth: 200,align:'left'}, | 
|---|
|  |  |  | {field: 'realName', title: '姓名', minWidth: 200,align:'left'}, | 
|---|
|  |  |  | {field: 'email', title: '邮箱', minWidth: 100,align:'left'}, | 
|---|
|  |  |  | {field: 'realName', title: '姓名', minWidth: 100,align:'left'}, | 
|---|
|  |  |  | {field: 'nickname', title: '昵称', minWidth: 100,align:'left'}, | 
|---|
|  |  |  | {field: 'inviteId', title: '邀请码UID', minWidth: 80,align:'center'}, | 
|---|
|  |  |  | {field: 'profitRatio', title: '利润率', minWidth: 80,align:'center'}, | 
|---|
|  |  |  | {field: 'followNumNow', title: '当前跟随人数', minWidth: 120,align:'center'}, | 
|---|
|  |  |  | {field: 'followNum', title: '最大跟随人数', minWidth: 120,align:'center'}, | 
|---|
|  |  |  | {field: 'accountType', title: '账号类型', | 
|---|
|  |  |  | templet: function (d) { | 
|---|
|  |  |  | if (d.accountType === 2) { | 
|---|
|  |  |  | 
|---|
|  |  |  | {title: '操作', | 
|---|
|  |  |  | templet: function (d) { | 
|---|
|  |  |  | if (d.verifyStatus === 3) { | 
|---|
|  |  |  | return '<a lay-event="edit" shiro:hasPermission="user:update">审核</a>' | 
|---|
|  |  |  | }else if(d.verifyStatus === 1){ | 
|---|
|  |  |  | return '<a lay-event="getOut" shiro:hasPermission="user:update">踢出</a>' | 
|---|
|  |  |  | return '<a lay-event="getFull" shiro:hasPermission="user:update">满员</a>' | 
|---|
|  |  |  | return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit" shiro:hasPermission="user:update">审核</button>' | 
|---|
|  |  |  | }else if(d.verifyStatus === 1 && d.isSetFrist ===1){ | 
|---|
|  |  |  | return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="modifyProfitRatio" shiro:hasPermission="user:update">修改</button>' | 
|---|
|  |  |  | + '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="getOut" shiro:hasPermission="user:update">踢出</button>' | 
|---|
|  |  |  | + '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="getFull" shiro:hasPermission="user:update">满员</button>' | 
|---|
|  |  |  | + '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="getOutFrist" shiro:hasPermission="user:update">取消推荐</button>' | 
|---|
|  |  |  | }else if(d.verifyStatus === 1 && d.isSetFrist !=1){ | 
|---|
|  |  |  | return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="modifyProfitRatio" shiro:hasPermission="user:update">修改</button>' | 
|---|
|  |  |  | + '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="getOut" shiro:hasPermission="user:update">踢出</button>' | 
|---|
|  |  |  | + '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="getFull" shiro:hasPermission="user:update">满员</button>' | 
|---|
|  |  |  | + '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="getOn" shiro:hasPermission="user:update">推荐首页</button>' | 
|---|
|  |  |  | }else { | 
|---|
|  |  |  | return '' | 
|---|
|  |  |  | } | 
|---|
|  |  |  | },minWidth: 200,align:'center'} | 
|---|
|  |  |  | },minWidth: 300,align:'center'} | 
|---|
|  |  |  | ]] | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|