From 62caaece670b9ca7b61fd8bc8e2aaef2b1707417 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Mon, 29 Jun 2020 18:54:07 +0800 Subject: [PATCH] 20200629 代码提交 --- src/main/resources/templates/febs/views/modules/member/withdrawCoin.html | 56 ++++++++++++++++++++++---------------------------------- 1 files changed, 22 insertions(+), 34 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 7ce324c..e0fdc2f 100644 --- a/src/main/resources/templates/febs/views/modules/member/withdrawCoin.html +++ b/src/main/resources/templates/febs/views/modules/member/withdrawCoin.html @@ -28,8 +28,8 @@ <div class="layui-input-inline"> <select name="isInsideOption"> <option value=""></option> - <option value="1">是</option> - <option value="0">否</option> + <option value="Y">是</option> + <option value="N">否</option> </select> </div> </div> @@ -51,29 +51,6 @@ </div> </div> </div> -<!-- 表格字段状态格式化 start --> -<script type="text/html" id="isInside"> - {{# - var isInside = { - Y: {title: '是' , color: 'red'}, - N: {title: '否' , color: 'green'}, - }[d.isInside]; - }} - <span class="layui-badge febs-tag-{{isInside.color}}">{{ isInside.title }}</span> -</script> -<script type="text/html" id="status"> - {{# - var status = { - 1: {title: '等待审核' , color: 'blue'}, - 2: {title: '同意', color: 'green'}, - 3: {title: '拒绝' , color: 'red'} - }[d.status]; - }} - <span class="layui-badge febs-tag-{{status.color}}">{{ status.title }}</span> -</script> - -<!-- 表格字段状态格式化 start --> - <!-- 表格操作栏 start --> <script type="text/html" id="user-option"> <span shiro:lacksPermission="user:view,user:update,user:delete"> @@ -129,11 +106,6 @@ cancelUsers(data.id); }); } - if (layEvent === 'see') { - febs.modal.open( '用户详细信息', 'modules/member/memberDataInfo/' + data.id, { - maxmin: true, - }); - } }); function confirmUsers(id) { @@ -174,18 +146,34 @@ {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>' + return '<a lay-event="see">'+d.inviteId+'</a>' }, minWidth: 80,align:'center'}, {field: 'symbol', title: '币种', minWidth: 100,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', totalRow: true}, {field: 'createTime', title: '提币时间', minWidth: 180,align:'center'}, - {title: '内部转账', templet: '#isInside', minWidth: 100,align:'center'}, - {title: '状态', templet: '#status', minWidth: 100,align:'center'}, + {field: 'isInside', title: '内部转账', + templet: function (d) { + if (d.isInside === 'Y') { + return '<span style="color:red;">是</span>' + } else { + return '<span style="color:green;">否</span>' + } + },minWidth: 100,align:'center'}, + {field: 'status', title: '状态', + templet: function (d) { + if (d.status === 1) { + return '<span style="color:blue;"> 等待审核 </span>' + } else if (d.status === 2) { + return '<span style="color:green;">同意 </span>' + } else { + return '<span style="color:red;">拒绝</span>' + } + },minWidth: 100,align:'center'}, {title: '操作', templet: function (d) { - if (d.orderStatus === 1) { + if (d.status === 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>' -- Gitblit v1.9.1