From ff8e73504ab40738ce1c90f6394bbd7b88260f5e Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Mon, 13 May 2024 21:12:15 +0800
Subject: [PATCH] 球队信息
---
src/main/resources/templates/febs/views/dapp/member-withdraw.html | 66 ++++++++++++++-------------------
1 files changed, 28 insertions(+), 38 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 a6d14ca..5dc6a96 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>
@@ -56,20 +57,16 @@
}}
<span>{{ status.title }}</span>
</script>
-<script type="text/html" id="balance">
- <span name="balance">{{ d.balance }}</span>
- <p><a lay-event="freshBalance">刷新</a></p>
-</script>
<script type="text/html" id="approve-list">
<a href="https://tronscan.io/#/address/{{d.address}}" target="_blank">1</a>
</script>
<script type="text/html" id="withdraw-option">
- <span shiro:lacksPermission="user:view,user:update,user:delete">
+ <span shiro:lacksPermission="withdraw:agree,withdraw:disagree">
<span class="layui-badge-dot febs-bg-orange"></span> 无权限
</span>
{{# if(d.status == 1) { }}
- <a lay-event="agree" shiro:hasPermission="member:accountStatus">审核通过</a>
- <a lay-event="disagree" shiro:hasPermission="member:changeAble">审核驳回</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">
@@ -95,33 +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);
- });
- }
-
-
- var rowIndex = $(obj.tr).attr("data-index");
- var balance = $(obj.tr).find("[name='balance']");
- if (layEvent === 'freshBalance') {
- $.ajax({
- url : ctx + 'member/getBalanceByAddress/' + obj.data.address,
- type : 'get',
- async : true,
- success : function(data) {
- if (data.data) {
- balance.text(123);
- }
- }
+ 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,12 +142,15 @@
tableIns = febs.table.init({
elem: $view.find('table'),
id: 'withdrawTable',
- url: ctx + 'flow/fundFlow?type=2',
+ url: ctx + 'flow/fundFlow?type=40',
+ totalRow: true ,// 开启合计行
cols: [[
- {field: 'address', title: '地址', minWidth: 130},
+ {field: 'address', title: '地址', minWidth: 130, totalRowText: '合计:'},
{field: 'createTime', title: '创建时间', minWidth: 180},
- {field: 'amount', title: '提现金额', minWidth: 130},
+ {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}
]]
});
@@ -165,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