| | |
| | | <div class="layui-form-item">
|
| | | <div class="layui-inline">
|
| | | <div class="layui-input-inline">
|
| | | <input type="text" placeholder="手机号/邮箱/邀请码" name="account" autocomplete="off" class="layui-input">
|
| | | <input type="text" placeholder="邀请码" name="account" autocomplete="off" class="layui-input">
|
| | | </div>
|
| | | </div>
|
| | | <div class="layui-inline">
|
| | |
| | | <div class="layui-btn layui-btn-sm layui-btn-primary febs-button-green-plain table-action" id="reset">
|
| | | <i class="layui-icon"></i>
|
| | | </div>
|
| | | <div shiro:hasPermission="member:update" class="layui-btn layui-btn-sm layui-btn-primary febs-button-green-plain table-action" id="limit">
|
| | | <!--<div shiro:hasPermission="member:update" class="layui-btn layui-btn-sm layui-btn-primary febs-button-green-plain table-action" id="limit">
|
| | | <i class="layui-icon">限制</i>
|
| | | </div>
|
| | | </div>-->
|
| | | </div>
|
| | | </div>
|
| | | </form>
|
| | |
| | | id: 'userTable',
|
| | | url: ctx + 'member/getList',
|
| | | cols: [[
|
| | | {field: 'phone', title: '手机号', minWidth: 120,align:'left'},
|
| | | {field: 'email', title: '邮箱', minWidth: 50,align:'left'},
|
| | | {field: 'realName', title: '姓名', minWidth: 50,align:'left'},
|
| | | //{field: 'phone', title: '手机号', minWidth: 120,align:'left'},
|
| | | //{field: 'email', title: '邮箱', minWidth: 50,align:'left'},
|
| | | //{field: 'realName', title: '姓名', minWidth: 50,align:'left'},
|
| | | {field: 'inviteId', title: '邀请码UID',
|
| | | templet: function (d) {
|
| | | return '<a lay-event="examine" shiro:hasPermission="user:update">'+d.inviteId+'</a>'
|
| | | }, minWidth: 80,align:'center'},
|
| | | {field: 'usdtBalance', title: 'USDT余额', minWidth: 80,align:'center'},
|
| | | {field: 'rocBalance', title: 'ROC余额', minWidth: 80,align:'center'},
|
| | | {field: 'rocBalance', title: 'SER余额', minWidth: 80,align:'center'},
|
| | | // {field: 'accountType', title: '账号类型',
|
| | | // templet: function (d) {
|
| | | // if (d.accountType === 2) {
|
| | |
| | | return '<span style="color:gray;">否</span>'
|
| | | }
|
| | | }, minWidth: 80,align:'center'},
|
| | | {field: 'refererId', title: '审核状态',
|
| | | templet: function (d) {
|
| | | if (d.certifyStatus === 0) {
|
| | | return '<span style="color:red;">未通过</span>'
|
| | | } else if (d.certifyStatus === 1) {
|
| | | return '<span style="color:blue;">待审核</span>'
|
| | | } else if (d.certifyStatus === 2) {
|
| | | return '<span style="color:green;">审核通过</span>'
|
| | | } else if (d.certifyStatus === 3) {
|
| | | return '<span>未实名</span>'
|
| | | }else{
|
| | | return ''
|
| | | }
|
| | | }, minWidth: 80,align:'center'},
|
| | | {field: 'refererId', title: '审核状态',
|
| | | templet: function (d) {
|
| | | if (d.certifyStatus === 0) {
|
| | | return '<span style="color:red;">未通过</span>'
|
| | | } else if (d.certifyStatus === 1) {
|
| | | return '<span style="color:blue;">待审核</span>'
|
| | | } else if (d.certifyStatus === 2) {
|
| | | return '<span style="color:green;">审核通过</span>'
|
| | | } else if (d.certifyStatus === 3) {
|
| | | return '<span>未实名</span>'
|
| | | }else{
|
| | | return ''
|
| | | }
|
| | | }, minWidth: 80,align:'center'},
|
| | | {field: 'createTime', title: '注册时间', minWidth: 150,align:'center'},
|
| | | {title: '操作', toolbar: '#user-option'
|
| | | // templet: function (d) {
|
| | | // if (d.certifyStatus === 1) {
|
| | | // return ''
|
| | | // +'<i class="layui-icon febs-edit-area febs-blue"></i>'
|
| | | // }else {
|
| | | // return '<a lay-event="see" shiro:hasPermission="user:update">'
|
| | | // +'<i class="layui-icon febs-edit-area febs-blue"></i></a>'
|
| | | // }
|
| | | // },
|
| | | ,minWidth: 200,align:'center'}
|
| | | {title: '操作',
|
| | | templet: function (d) {
|
| | | if (d.certifyStatus === 1) {
|
| | | return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit">审核认证</button>'
|
| | | }else if (d.certifyStatus === 0 || d.certifyStatus === 2) {
|
| | | return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="see">认证查看</button>'
|
| | | }else{
|
| | | return ''
|
| | | }
|
| | | },minWidth: 200,align:'center'}
|
| | | ]]
|
| | | });
|
| | | }
|