Helius
2020-07-06 154b9de7c856f36a1236fa8b7ef68d065fbcdac2
src/main/resources/templates/febs/views/modules/member/member.html
@@ -30,38 +30,6 @@
        </div>
    </div>
</div>
<!-- 表格字段状态格式化 start -->
<script type="text/html" id="certify-status">
    {{#
    var certifyStatus = {
    0: {title: '未通过', color: 'red'},
    1: {title: '待审核', color: 'blue'},
    2: {title: '审核通过', color: 'green'},
    3: {title: '未实名'}
    }[d.certifyStatus];
    }}
    <span class="layui-badge febs-tag-{{certifyStatus.color}}">{{ certifyStatus.title }}</span>
</script>
<script type="text/html" id="account-type">
    {{#
    var accountType = {
    2: {title: '正常账号' , color: 'green'},
    1: {title: '测试账号' , color: 'red'}
    }[d.accountType];
    }}
    <span class="layui-badge febs-tag-{{accountType.color}}">{{ accountType.title }}</span>
</script>
<script type="text/html" id="account-status">
    {{#
    var accountStatus = {
    1: {title: '正常', color : 'blue'},
    0: {title: '禁用', color : 'red'}
    }[d.accountStatus];
    }}
    <span class="layui-badge febs-bg-{{accountStatus.color}}">{{ accountStatus.title }}</span>
</script>
<!-- 表格字段状态格式化 start -->
<!-- 表格操作栏 start -->
<script type="text/html" id="user-option">
    <span shiro:lacksPermission="user:view,user:update,user:delete">
@@ -99,7 +67,6 @@
            
            if (layEvent === 'edit') {
                febs.modal.open('身份认证', 'modules/member/memberDetail/' + data.id, {
                    area: $(window).width() <= 1000 ? '100%' : '50%',
                    btn: ['提交', '取消'],
                    yes: function (index, layero) {
                        $('#user-update').find('#submit').trigger('click');
@@ -110,8 +77,8 @@
                });
            }
            if (layEvent === 'see') {
                febs.modal.open('身份认证', 'modules/member/memberDetail/' + data.id, {
                    area: $(window).width() <= 1000 ? '100%' : '50%',
            febs.modal.open( '身份认证', 'modules/member/memberDetail/' + data.id, {
                maxmin: true,
                });
            }
        });
@@ -140,9 +107,40 @@
                    {field: 'email', title: '邮箱', minWidth: 200,align:'left'},
                    {field: 'inviteId', title: '邀请码UID', minWidth: 80,align:'center'},
                    {field: 'refererId', title: '上级邀请码UID', minWidth: 80,align:'center'},
                    {title: '账号类型', templet: '#account-type', minWidth: 80,align:'center'},
                    {title: '账号状态', templet: '#account-status', minWidth: 50,align:'center'},
                    {title: '审核状态', templet: '#certify-status', minWidth: 80,align:'center'},
                    {field: 'accountType', title: '账号类型',
                       templet: function (d) {
                            if (d.accountType === 2) {
                                return '<span style="color:green;">正常账号</span>'
                            } else if (d.accountType === 1) {
                                return '<span style="color:red;">测试账号</span>'
                            }else{
                                return ''
                            }
                        }, minWidth: 80,align:'center'},
                    {field: 'refererId', title: '账号状态',
                           templet: function (d) {
                                if (d.accountStatus === 1) {
                                    return '<span style="color:green;">正常</span>'
                                } else if (d.accountStatus === 0) {
                                    return '<span style="color:red;">禁用</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: 180,align:'center'},
                    {title: '操作', 
                       templet: function (d) {