| | |
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | | <!-- 表格字段状态格式化 start -->
|
| | | <script type="text/html" id="status">
|
| | | {{#
|
| | | var status = {
|
| | | 1: {title: '已到账' , color: 'green'},
|
| | | 0: {title: '已到账' },
|
| | | 2: {title: '已到账' },
|
| | | 3: {title: '已到账' },
|
| | | 4: {title: '已到账' }
|
| | | }[d.status];
|
| | | }}
|
| | | <span class="layui-badge febs-tag-{{status.color}}">{{ status.title }}</span>
|
| | | </script>
|
| | |
|
| | | <!-- 表格字段状态格式化 start -->
|
| | |
|
| | | <!-- 表格操作栏 end -->
|
| | | <script data-th-inline="none" type="text/javascript">
|
| | | // 引入组件并初始化
|
| | |
| | | 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" shiro:hasPermission="user:delete">'+d.inviteId+'</a>'
|
| | | }, minWidth: 80,align:'center'},
|
| | | {field: 'inviteId', title: '邀请码UID', minWidth: 80,align:'center'},
|
| | | {field: 'symbol', title: '币种', minWidth: 60,align:'center'},
|
| | | {field: 'tag', title: 'USDT类型', minWidth: 60,align:'center'},
|
| | | {field: 'amount', title: '充币数量', minWidth: 100,align:'center',totalRow: true},
|
| | | {field: 'lastAmount', title: '本次余额', minWidth: 100,align:'center'},
|
| | | {field: 'address', title: '平台钱包地址', minWidth: 280,align:'center'},
|
| | | {field: 'createTime', title: '创建时间', minWidth: 200,align:'center'},
|
| | | {title: '状态', templet: '#status', minWidth: 100,align:'center'}
|
| | | {field: 'status', title: '状态',
|
| | | templet: function (d) {
|
| | | if (d.status === 2) {
|
| | | return '<span style="color:green;">已到账</span>'
|
| | | } else {
|
| | | return ''
|
| | | }
|
| | | }, minWidth: 200,align:'center'},
|
| | | ]]
|
| | | });
|
| | | }
|