From 832adfae7b7d3869c833b3c700232155e6600526 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Wed, 06 Sep 2023 17:20:42 +0800
Subject: [PATCH] 后台修改
---
src/main/resources/templates/febs/views/dapp/member-withdraw.html | 37 ++++++++++++++++++++++---------------
1 files changed, 22 insertions(+), 15 deletions(-)
diff --git a/src/main/resources/templates/febs/views/dapp/member-withdraw.html b/src/main/resources/templates/febs/views/dapp/member-withdraw.html
index c83d68a..5dc6a96 100644
--- a/src/main/resources/templates/febs/views/dapp/member-withdraw.html
+++ b/src/main/resources/templates/febs/views/dapp/member-withdraw.html
@@ -65,8 +65,8 @@
<span class="layui-badge-dot febs-bg-orange"></span> 无权限
</span>
{{# if(d.status == 1) { }}
- <a lay-event="agree" shiro:hasPermission="withdraw:agree">审核通过</a>
- <a lay-event="disagree" shiro:hasPermission="withdraw:disagree">审核驳回</a>
+ <button class="layui-btn layui-btn-normal layui-btn-xs" type="button" shiro:hasPermission="withdraw:agree" lay-event="agree">同意</button>
+ <button class="layui-btn layui-btn-normal layui-btn-xs" type="button" shiro:hasPermission="withdraw:disagree" lay-event="disagree">拒绝</button>
{{# } }}
</script>
<script data-th-inline="none" type="text/javascript">
@@ -92,17 +92,30 @@
var data = obj.data,
layEvent = obj.event;
if (layEvent === 'agree') {
- febs.modal.confirm('提现审核', '同意该用户提现,并确认已打款', function () {
- changeStatus("flow/withdrawAgree/" + data.id);
+ febs.modal.confirm('提现审核', '同意该用户提现,并确认已打款?', function () {
+ agreeWithdraw(data.id);
});
}
-
if (layEvent === 'disagree') {
- febs.modal.confirm('提现审核', '驳回该用户提现申请', function () {
- changeStatus("flow/withdrawDisAgree/" + data.id);
+ febs.modal.confirm('提现审核', '驳回该用户提现申请?', function () {
+ disagreeWithdraw(data.id);
});
}
});
+
+ function agreeWithdraw(id) {
+ febs.get(ctx + 'flow/withdrawAgree/' + id, null, function () {
+ febs.alert.success('操作成功');
+ $query.click();
+ });
+ }
+
+ function disagreeWithdraw(id) {
+ febs.get(ctx + 'flow/withdrawDisAgree/' + id, null, function () {
+ febs.alert.success('操作成功');
+ $query.click();
+ });
+ }
table.on('sort(withdrawTable)', function (obj) {
sortObject = obj;
@@ -134,7 +147,8 @@
cols: [[
{field: 'address', title: '地址', minWidth: 130, totalRowText: '合计:'},
{field: 'createTime', title: '创建时间', minWidth: 180},
- {field: 'amount', title: '提现金额(USDT)', minWidth: 130,totalRow: '{{= parseInt(d.amount) }}'},
+ {field: 'realAmount', title: '扣手续费后的提现金额', minWidth: 200,totalRow: '{{= parseInt(d.realAmount) }}'},
+ // {field: 'amount', title: '提现金额(USDT)', minWidth: 130,totalRow: '{{= parseInt(d.amount) }}'},
{title: '提现状态', templet: '#withdraw-status'},
{field: 'fee', title: '手续费', minWidth: 130},
{title: '操作', toolbar: '#withdraw-option', minWidth: 200}
@@ -148,13 +162,6 @@
status: $searchForm.find("select[name='status']").val(),
invalidate_ie_cache: new Date()
};
- }
-
- function changeStatus(url) {
- febs.post(ctx + url, null, function () {
- febs.alert.success('设置成功');
- $query.click();
- });
}
})
</script>
--
Gitblit v1.9.1