From 49f84e6ea4973a7db64be3258b503dfdb8030f85 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Mon, 21 Aug 2023 18:05:32 +0800
Subject: [PATCH] 后台修改

---
 src/main/resources/templates/febs/views/dapp/member-withdraw.html |   35 +++++++++++++++++++++--------------
 1 files changed, 21 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 781579d..d5aec91 100644
--- a/src/main/resources/templates/febs/views/dapp/member-withdraw.html
+++ b/src/main/resources/templates/febs/views/dapp/member-withdraw.html
@@ -8,6 +8,7 @@
                             <div class="layui-col-md10">
                                 <div class="layui-form-item">
                                     <div class="layui-inline">
+                                        <label class="layui-form-label">地址邀请码:</label>
                                         <div class="layui-input-inline">
                                             <input type="text" name="address" autocomplete="off" placeholder="输入地址或邀请码" class="layui-input">
                                         </div>
@@ -64,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">
@@ -91,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;
@@ -147,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