| | |
| | | <script type="text/html" id="account-type"> |
| | | {{# |
| | | var accountType = { |
| | | 2: {title: '正常账号'}, |
| | | 1: {title: '测试账号'} |
| | | 2: {title: '正常账号' , color: 'green'}, |
| | | 1: {title: '测试账号' , color: 'red'} |
| | | }[d.accountType]; |
| | | }} |
| | | <span>{{ accountType.title }}</span> |
| | | <span class="layui-badge febs-tag-{{accountType.color}}">{{ accountType.title }}</span> |
| | | </script> |
| | | <script type="text/html" id="account-status"> |
| | | {{# |
| | |
| | | }); |
| | | |
| | | // 新增下拉组件 |
| | | /** |
| | | |
| | | dropdown.render({ |
| | | elem: $view.find('.action-more'), |
| | | click: function (name, elem, event) { |
| | |
| | | perms: 'user:export' |
| | | }] |
| | | }); |
| | | */ |
| | | |
| | | // 下拉框选择器 |
| | | treeSelect.render({ |
| | |
| | | {type: 'checkbox'}, |
| | | {field: 'phone', title: '手机号', minWidth: 165}, |
| | | {field: 'email', title: '邮箱', minWidth: 200}, |
| | | {field: 'inviteId', title: '邀请码'}, |
| | | {field: 'refererId', title: '上级邀请码'}, |
| | | {field: 'inviteId', title: '邀请码UID'}, |
| | | {field: 'refererId', title: '上级邀请码UID'}, |
| | | {title: '账号类型', templet: '#account-type'}, |
| | | {title: '账号状态', templet: '#account-status'}, |
| | | {title: '审核状态', templet: '#certify-status'}, |