From e53bff33d7c4f50a992f47d89664c5bb87ec7022 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Thu, 17 Aug 2023 11:23:20 +0800
Subject: [PATCH] 后台修改
---
src/main/resources/templates/febs/views/dapp/member-withdraw.html | 34 ++++++++++++++++++++--------------
1 files changed, 20 insertions(+), 14 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..d5aec91 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;
@@ -148,13 +161,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