| | |
| | | </div>
|
| | | </div>
|
| | | <!-- 表格字段状态格式化 start -->
|
| | | <script type="text/html" id="isInside-table">
|
| | | <script type="text/html" id="isInside">
|
| | | {{#
|
| | | var isInside = {
|
| | | Y: {title: '是' , color: 'red'},
|
| | |
| | | }}
|
| | | <span class="layui-badge febs-tag-{{isInside.color}}">{{ isInside.title }}</span>
|
| | | </script>
|
| | | <script type="text/html" id="status-table">
|
| | | <script type="text/html" id="status">
|
| | | {{#
|
| | | var status = {
|
| | | 1: {title: '等待审核' , color: 'blue'},
|
| | |
| | | cancelUsers(data.id);
|
| | | });
|
| | | }
|
| | | if (layEvent === 'see') {
|
| | | febs.modal.open( '用户详细信息', 'modules/member/memberDataInfo/' + data.id, {
|
| | | maxmin: true,
|
| | | });
|
| | | }
|
| | | });
|
| | |
|
| | | function confirmUsers(id) {
|
| | |
| | | elem: $view.find('table'),
|
| | | id: 'userTable',
|
| | | url: ctx + 'member/memberWithdrawCoin',
|
| | | totalRow: true,
|
| | | cols: [[
|
| | | {field: 'phone', title: '手机号码', minWidth: 120,align:'left'},
|
| | | {field: 'phone', title: '手机号码', minWidth: 120,align:'left',totalRowText: '合计'},
|
| | | {field: 'email', title: '邮箱', minWidth: 200,align:'left'},
|
| | | {field: 'inviteId', title: '邀请码UID', minWidth: 80,align:'center'},
|
| | | {field: 'inviteId', title: '邀请码UID',
|
| | | templet: function (d) {
|
| | | return '<a lay-event="see" shiro:hasPermission="user:delete">'+d.inviteId+'</a>'
|
| | | }, minWidth: 80,align:'center'},
|
| | | {field: 'symbol', title: '币种', minWidth: 100,align:'center'},
|
| | | {field: 'amount', title: '提币数量', minWidth: 120,align:'center'},
|
| | | {field: 'amount', title: '提币数量', minWidth: 120,align:'center' ,totalRow: true},
|
| | | {field: 'address', title: '提币地址', minWidth: 300,align:'center'},
|
| | | {field: 'feeAmount', title: '提币手续费', minWidth: 100,align:'center'},
|
| | | {field: 'feeAmount', title: '提币手续费', minWidth: 100,align:'center', totalRow: true},
|
| | | {field: 'createTime', title: '提币时间', minWidth: 180,align:'center'},
|
| | | {title: '内部转账', templet: '#isInside-table', minWidth: 100,align:'center'},
|
| | | {title: '状态', templet: '#status-table', minWidth: 100,align:'center'},
|
| | | {title: '操作', toolbar: '#user-option', minWidth: 150, fixed : 'right'}
|
| | | {title: '内部转账', templet: '#isInside', minWidth: 100,align:'center'},
|
| | | {title: '状态', templet: '#status', minWidth: 100,align:'center'},
|
| | | {title: '操作', |
| | | templet: function (d) {
|
| | | if (d.orderStatus === 1) {
|
| | | return '<a lay-event="confirm" shiro:hasPermission="user:delete">确认</a>'
|
| | | +'<i class="layui-icon febs-edit-area febs-blue"></i>'
|
| | | +'<a lay-event="cancel" shiro:hasPermission="user:delete">拒绝</a>'
|
| | | }else {
|
| | | return ''
|
| | | }
|
| | | },minWidth: 200,align:'center'}
|
| | | ]]
|
| | | });
|
| | | }
|