From c5dfc743f410b70f369ba3b708f05a6eb1563929 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Mon, 29 Jun 2020 10:21:28 +0800 Subject: [PATCH] 20200629 代碼提交 --- src/main/resources/templates/febs/views/modules/member/withdrawCoin.html | 36 +++++++++++++++++++++++++++--------- 1 files changed, 27 insertions(+), 9 deletions(-) diff --git a/src/main/resources/templates/febs/views/modules/member/withdrawCoin.html b/src/main/resources/templates/febs/views/modules/member/withdrawCoin.html index 845aaaf..7ce324c 100644 --- a/src/main/resources/templates/febs/views/modules/member/withdrawCoin.html +++ b/src/main/resources/templates/febs/views/modules/member/withdrawCoin.html @@ -52,7 +52,7 @@ </div> </div> <!-- 表格字段状态格式化 start --> -<script type="text/html" id="isInside-table"> +<script type="text/html" id="isInside"> {{# var isInside = { Y: {title: '是' , color: 'red'}, @@ -61,7 +61,7 @@ }} <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'}, @@ -129,6 +129,11 @@ cancelUsers(data.id); }); } + if (layEvent === 'see') { + febs.modal.open( '用户详细信息', 'modules/member/memberDataInfo/' + data.id, { + maxmin: true, + }); + } }); function confirmUsers(id) { @@ -163,18 +168,31 @@ 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'} ]] }); } -- Gitblit v1.9.1