| | |
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | | <script type="text/html" id="isType">
|
| | | {{#
|
| | | var type = {
|
| | | "1": {title: '币币资产' , color: 'red'},
|
| | | "2": {title: '合约资产' , color: 'green'},
|
| | | "3": {title: '代理资产' , color: 'blue' }
|
| | | }[d.type];
|
| | | }}
|
| | | <span class="layui-badge febs-tag-{{type.color}}">{{ type.title }}</span>
|
| | | </script>
|
| | | <script type="text/html" id="status">
|
| | | {{#
|
| | | var status = {
|
| | | "2": {title: '失败' , color: 'red'},
|
| | | "1": {title: '成功' , color: 'green'},
|
| | | "0": {title: '待审核' , color: 'blue' }
|
| | | }[d.status];
|
| | | }}
|
| | | <span class="layui-badge febs-tag-{{status.color}}">{{ status.title }}</span>
|
| | | </script>
|
| | | <!-- 表格操作栏 end -->
|
| | | <script data-th-inline="none" type="text/javascript">
|
| | | // 引入组件并初始化
|
| | |
| | | elem: $view.find('table'),
|
| | | id: 'userTable',
|
| | | url: ctx + 'tradeManage/memberAgentReturnInfo',
|
| | | totalRow: true,
|
| | | cols: [[
|
| | | {field: 'phone', title: '手机号', minWidth: 100,align:'left'},
|
| | | {field: 'phone', title: '手机号', minWidth: 100,align:'left',totalRowText: '合计'},
|
| | | {field: 'email', title: '邮箱', minWidth: 200,align:'left'},
|
| | | {field: 'inviteId', title: '邀请码UID', minWidth: 80,align:'center'},
|
| | | {field: 'symbol', title: '币种', minWidth: 80,align:'center'},
|
| | | {field: 'amount', title: '金额', minWidth: 80,align:'center'},
|
| | | {field: 'amount', title: '金额', minWidth: 80,align:'center',totalRow: true},
|
| | | {field: 'content', title: '记录内容', minWidth: 80,align:'center'},
|
| | | {field: 'createTime', title: '时间', minWidth: 80,align:'center'},
|
| | | {title: '状态', templet: '#status', minWidth: 100,align:'center'},
|
| | | {title: '类型', templet: '#isType', minWidth: 100,align:'center'},
|
| | | {field: 'status', title: '状态',
|
| | | templet: function (d) {
|
| | | if (d.status === 0) {
|
| | | return '<span style="color:blue;">待审核</span>'
|
| | | } else if (d.status === 1) {
|
| | | return '<span style="color:green;">成功</span>'
|
| | | }else if (d.status === 2) {
|
| | | return '<span style="color:red;">失败</span>'
|
| | | }else{
|
| | | return ''
|
| | | }
|
| | | }, minWidth: 80,align:'center'},
|
| | | {field: 'type', title: '类型',
|
| | | templet: function (d) {
|
| | | if (d.type === 1) {
|
| | | return '<span>币币资产</span>'
|
| | | } else if (d.type === 2) {
|
| | | return '<span>合约资产</span>'
|
| | | }else if (d.type === 3) {
|
| | | return '<span>代理资产</span>'
|
| | | }else{
|
| | | return ''
|
| | | }
|
| | | }, minWidth: 80,align:'center'}
|
| | | ]]
|
| | | });
|
| | | }
|