|  |  |  | 
|---|
|  |  |  | <label class="layui-form-label layui-form-label-sm">状态</label> | 
|---|
|  |  |  | <div class="layui-input-inline"> | 
|---|
|  |  |  | <select name="statusOption"> | 
|---|
|  |  |  | <option value="0"></option> | 
|---|
|  |  |  | <option value=""></option> | 
|---|
|  |  |  | <option value="1">等待审核</option> | 
|---|
|  |  |  | <option value="2">同意</option> | 
|---|
|  |  |  | <option value="3">拒绝</option> | 
|---|
|  |  |  | 
|---|
|  |  |  | <!-- 表格操作栏 end --> | 
|---|
|  |  |  | <script data-th-inline="none" type="text/javascript"> | 
|---|
|  |  |  | // 引入组件并初始化 | 
|---|
|  |  |  | layui.use(['dropdown', 'jquery', 'laydate', 'form', 'table', 'febs', 'treeSelect'], function () { | 
|---|
|  |  |  | layui.use(['jquery', 'laydate', 'form', 'table', 'febs'], function () { | 
|---|
|  |  |  | var $ = layui.jquery, | 
|---|
|  |  |  | laydate = layui.laydate, | 
|---|
|  |  |  | febs = layui.febs, | 
|---|
|  |  |  | form = layui.form, | 
|---|
|  |  |  | table = layui.table, | 
|---|
|  |  |  | treeSelect = layui.treeSelect, | 
|---|
|  |  |  | dropdown = layui.dropdown, | 
|---|
|  |  |  | $view = $('#febs-user'), | 
|---|
|  |  |  | $query = $view.find('#query'), | 
|---|
|  |  |  | $reset = $view.find('#reset'), | 
|---|
|  |  |  | 
|---|
|  |  |  | // 表格初始化 | 
|---|
|  |  |  | initTable(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 下拉框选择器 | 
|---|
|  |  |  | treeSelect.render({ | 
|---|
|  |  |  | elem: $view.find('#dept'), | 
|---|
|  |  |  | type: 'get', | 
|---|
|  |  |  | data: ctx + 'dept/select/tree', | 
|---|
|  |  |  | placeholder: '请选择', | 
|---|
|  |  |  | search: false | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 初始化表格操作栏各个按钮功能 | 
|---|
|  |  |  | table.on('tool(userTable)', function (obj) { | 
|---|
|  |  |  | $query.click(); | 
|---|
|  |  |  | var data = obj.data, | 
|---|
|  |  |  | layEvent = obj.event; | 
|---|
|  |  |  | if (layEvent === 'confirm') { | 
|---|
|  |  |  | 
|---|
|  |  |  | cancelUsers(data.id); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (layEvent === 'see') { | 
|---|
|  |  |  | console.log(obj) | 
|---|
|  |  |  | febs.view.tab.change(ctx + "modules/member/memberDataInfoLists/" + data.id); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | function confirmUsers(id) { | 
|---|
|  |  |  | febs.get(ctx + 'member/memberWithdrawCoinConfirm/' + id, null, function () { | 
|---|
|  |  |  | 
|---|
|  |  |  | $query.click(); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 查询按钮 | 
|---|
|  |  |  | $query.on('click', function () { | 
|---|
|  |  |  | var params = $.extend(getQueryParams(), {field: sortObject.field, order: sortObject.type}); | 
|---|
|  |  |  | 
|---|
|  |  |  | cols: [[ | 
|---|
|  |  |  | {field: 'phone', title: '手机号码', minWidth: 120,align:'left',totalRowText: '合计'}, | 
|---|
|  |  |  | {field: 'email', title: '邮箱', minWidth: 200,align:'left'}, | 
|---|
|  |  |  | {field: 'inviteId', title: '邀请码UID', | 
|---|
|  |  |  | templet: function (d) { | 
|---|
|  |  |  | return '<a lay-event="see">'+d.inviteId+'</a>' | 
|---|
|  |  |  | }, minWidth: 80,align:'center'}, | 
|---|
|  |  |  | {field: 'inviteId', title: '邀请码UID', minWidth: 80,align:'center'}, | 
|---|
|  |  |  | {field: 'symbol', title: '币种', minWidth: 100,align:'center'}, | 
|---|
|  |  |  | {field: 'amount', title: '提币数量', minWidth: 120,align:'center' ,totalRow: true}, | 
|---|
|  |  |  | {field: 'address', title: '提币地址', minWidth: 300,align:'center'}, | 
|---|