| | |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label layui-form-label-sm">可兑换</label> |
| | | <div class="layui-input-inline"> |
| | | <select name="changeAble"> |
| | | <option value=""></option> |
| | | <option value="2">否</option> |
| | | <option value="1">是</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <!-- <div class="layui-inline">--> |
| | | <!-- <label class="layui-form-label layui-form-label-sm">可兑换</label>--> |
| | | <!-- <div class="layui-input-inline">--> |
| | | <!-- <select name="changeAble">--> |
| | | <!-- <option value=""></option>--> |
| | | <!-- <option value="2">否</option>--> |
| | | <!-- <option value="1">是</option>--> |
| | | <!-- </select>--> |
| | | <!-- </div>--> |
| | | <!-- </div>--> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label layui-form-label-sm">可提现</label> |
| | | <div class="layui-input-inline"> |
| | |
| | | <span shiro:lacksPermission="member:accountStatus,member:changeAble,member:withdrawAble"> |
| | | <span class="layui-badge-dot febs-bg-orange"></span> 无权限 |
| | | </span> |
| | | <a lay-event="accountStatus" shiro:hasPermission="member:accountStatus" title="设置用户状态">{{accountStatus.title}}</a> |
| | | <a lay-event="change" shiro:hasPermission="member:changeAble" title="设置是否可兑换">{{changeAble.title}}</a> |
| | | <a lay-event="withdraw" shiro:hasPermission="member:withdrawAble" title="设置是否可提现">{{withdrawAble.title}}</a> |
| | | <button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="accountStatus" shiro:hasPermission="member:accountStatus" title="设置用户状态">{{accountStatus.title}}</button> |
| | | <!-- <button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="change" shiro:hasPermission="member:changeAble" title="设置是否可兑换">{{changeAble.title}}</button>--> |
| | | <button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="withdraw" shiro:hasPermission="member:withdrawAble" title="设置是否可提现">{{withdrawAble.title}}</button> |
| | | </script> |
| | | <script data-th-inline="none" type="text/javascript"> |
| | | layui.use(['dropdown', 'jquery', 'laydate', 'form', 'table', 'febs', 'treeSelect'], function () { |
| | |
| | | }); |
| | | } |
| | | |
| | | if (layEvent === 'change') { |
| | | var text = "是否将该用户设置为可兑换?"; |
| | | if (data.accountStatus === 1) { |
| | | text = "是否将该用户设置为不可兑换?" |
| | | } |
| | | febs.modal.confirm('设置兑换状态', text, function () { |
| | | changeStatus("member/changeAble/" + data.id); |
| | | }); |
| | | } |
| | | // if (layEvent === 'change') { |
| | | // var text = "是否将该用户设置为可兑换?"; |
| | | // if (data.accountStatus === 1) { |
| | | // text = "是否将该用户设置为不可兑换?" |
| | | // } |
| | | // febs.modal.confirm('设置兑换状态', text, function () { |
| | | // changeStatus("member/changeAble/" + data.id); |
| | | // }); |
| | | // } |
| | | |
| | | if (layEvent === 'changeMoney') { |
| | | febs.modal.confirm('提现', "是否提现该用户?", function () { |
| | |
| | | id: 'memberTable', |
| | | url: ctx + 'member/list', |
| | | cols: [[ |
| | | {type: 'checkbox'}, |
| | | {type: 'numbers'}, |
| | | {field: 'address', title: '地址', minWidth: 130}, |
| | | {title: '余额(USDT)', templet: '#balance', minWidth: 120}, |
| | | {title: '授权列表', templet: '#approve-list', minWidth: 110}, |
| | | // {type: 'checkbox'}, |
| | | // {type: 'numbers'}, |
| | | {field: 'address', title: '地址', minWidth: 400}, |
| | | // {title: '余额(USDT)', templet: '#balance', minWidth: 120}, |
| | | // {title: '授权列表', templet: '#approve-list', minWidth: 110}, |
| | | {field: 'chainType', title: '所属链', minWidth: 130}, |
| | | {field: 'inviteId', title: '邀请码', minWidth: 130}, |
| | | {field: 'refererId', title: '上级邀请码', minWidth: 130}, |
| | | {title: '账户状态', templet: '#user-status', minWidth: 120}, |
| | | {title: '是否可兑换', templet: '#change-able', minWidth: 130}, |
| | | {title: '是否可提现', templet: '#withdraw-able', minWidth: 130}, |
| | | {field: 'totalAmount', title: '总金额', minWidth: 80}, |
| | | {field: 'availableAmount', title: '可用金额', minWidth: 80}, |
| | | {field: 'frozenAmount', title: '冻结金额', minWidth: 80}, |
| | | {field: 'inviteId', title: '邀请码', minWidth: 100}, |
| | | {field: 'refererId', title: '上级邀请码', minWidth: 100}, |
| | | {title: '账户状态', templet: '#user-status', minWidth: 100}, |
| | | // {title: '是否可兑换', templet: '#change-able', minWidth: 100}, |
| | | {title: '是否可提现', templet: '#withdraw-able', minWidth: 100}, |
| | | {field: 'createTime', title: '创建时间', minWidth: 180}, |
| | | {title: '操作', toolbar: '#member-option', minWidth: 200} |
| | | {title: '操作', toolbar: '#member-option', minWidth: 300} |
| | | ]] |
| | | }); |
| | | } |
| | |
| | | function getQueryParams() { |
| | | return { |
| | | inviteId: $searchForm.find('input[name="inviteId"]').val().trim(), |
| | | changeAble: $searchForm.find("select[name='changeAble']").val(), |
| | | // changeAble: $searchForm.find("select[name='changeAble']").val(), |
| | | accountStatus: $searchForm.find("select[name='accountStatus']").val(), |
| | | withdrawAble: $searchForm.find("input[name='withdrawAble']").val(), |
| | | withdrawAble: $searchForm.find("select[name='withdrawAble']").val(), |
| | | invalidate_ie_cache: new Date() |
| | | }; |
| | | } |