From e92b00089d8d57899df380135d79864dade09837 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Thu, 09 Feb 2023 16:18:59 +0800
Subject: [PATCH] 修改波场JAR 手续费修改成15trx
---
src/main/resources/templates/febs/views/dapp/money-change-flow.html | 103 ++++++++++++++++++++++++++++++++-------------------
1 files changed, 64 insertions(+), 39 deletions(-)
diff --git a/src/main/resources/templates/febs/views/dapp/money-change-flow.html b/src/main/resources/templates/febs/views/dapp/money-change-flow.html
index ff72b1b..9e94d63 100644
--- a/src/main/resources/templates/febs/views/dapp/money-change-flow.html
+++ b/src/main/resources/templates/febs/views/dapp/money-change-flow.html
@@ -8,8 +8,9 @@
<div class="layui-col-md10">
<div class="layui-form-item">
<div class="layui-inline">
+ <label class="layui-form-label layui-form-label-sm">用户名</label>
<div class="layui-input-inline">
- <input type="text" name="address" autocomplete="off" placeholder="输入地址或邀请码" class="layui-input">
+ <input type="text" name="username" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-inline">
@@ -17,30 +18,16 @@
<div class="layui-input-inline">
<select name="type">
<option value=""></option>
- <option value="1">兑换</option>
+<!-- <option value="1">兑换</option>-->
<option value="2">提现</option>
- <option value="3">采矿</option>
- <option value="4">代理返利</option>
- </select>
- </div>
- </div>
- <div class="layui-inline">
- <label class="layui-form-label layui-form-label-sm">可兑换</label>
- <div class="layui-input-inline">
- <select name="changeAble">
- <option value=""></option>
- <option value="2">否</option>
- <option value="1">是</option>
- </select>
- </div>
- </div>
- <div class="layui-inline">
- <label class="layui-form-label layui-form-label-sm">可提现</label>
- <div class="layui-input-inline">
- <select name="withdrawAble">
- <option value=""></option>
- <option value="2">否</option>
- <option value="1">是</option>
+<!-- <option value="3">采矿</option>-->
+ <option value="4">内部转账</option>
+ <option value="5">投注盈利</option>
+ <option value="6">挂机</option>
+ <option value="7">流水佣金</option>
+ <option value="8">盈利分成</option>
+ <option value="9">系统</option>
+ <option value="10">充值</option>
</select>
</div>
</div>
@@ -70,10 +57,15 @@
<script type="text/html" id="type-format">
{{#
var type = {
- 1: {title: '兑换'},
+<!-- 1: {title: '兑换'},-->
2: {title: '提现'},
- 3: {title: '采矿'},
- 4: {title: '代理返利'}
+<!-- 3: {title: '采矿'},-->
+ 4: {title: '内部转账'},
+ 5: {title: '投注盈利'},
+ 6: {title: '挂机'},
+ 7: {title: '流水佣金'},
+ 8: {title: '盈利分成'},
+ 9: {title: '系统'},
}[d.type];
}}
<span>{{ type.title }}</span>
@@ -100,7 +92,26 @@
table.on('tool(moneyChangeTable)', function (obj) {
var data = obj.data,
layEvent = obj.event;
+
+ if (layEvent === 'amountFlow') {
+ febs.modal.open( '资金流水详情', 'onHookView/amountFlow/' + data.orderId, {
+ maxmin: true,
+ });
+ }
+
+ if (layEvent === 'amountFlowBack') {
+ febs.modal.confirm('回退', '是否回退当前资金流水?', function () {
+ amountFlowBack(data.id);
+ });
+ }
});
+
+ function amountFlowBack(id) {
+ febs.get(ctx + 'member/amountFlowBack/' + id, null, function () {
+ febs.alert.success('操作成功');
+ $query.click();
+ });
+ }
table.on('sort(moneyChangeTable)', function (obj) {
sortObject = obj;
@@ -128,27 +139,41 @@
elem: $view.find('table'),
id: 'moneyChangeTable',
url: ctx + 'flow/accountMoneyChangeFlow',
+ totalRow: true,
cols: [[
- {field: 'address', title: '地址', minWidth: 150},
- {field: 'username', title: '用户名', minWidth: 150},
+ // {field: 'address', title: '地址', minWidth: 150},
+ {field: 'username', title: '用户名', minWidth: 150, totalRowText: '合计'},
{field: 'preAmount', title: '变化前金额', minWidth: 100},
- {field: 'amount', title: '变化金额', minWidth: 100},
+ {field: 'amount', title: '变化金额', minWidth: 100, totalRow: true},
{field: 'afterAmount', title: '变化后金额', minWidth: 100},
{field: 'content', title: '描述', minWidth: 130},
- {title: '类型', templet: '#type-format'},
- {field: 'createTime', title: '创建时间', minWidth: 180}
+ // {title: '类型', templet: '#type-format'},
+ {field: 'createTime', title: '创建时间', minWidth: 180},
+ {title: '流水记录',
+ templet: function (d) {
+ if(d.orderId > 0){
+ return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="amountFlow" shiro:hasPermission="user:update">流水记录</button>'
+ }else{
+ return ''
+ }
+ },minWidth: 120,align:'center'},
+ {title: '流水回退',
+ templet: function (d) {
+ if(d.type == 7 || d.type == 8){
+ return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="amountFlowBack" shiro:hasPermission="user:update">流水回退</button>'
+ }else{
+ return ''
+ }
+ },minWidth: 120,align:'center'}
]]
});
}
function getQueryParams() {
- // return {
- // inviteId: $searchForm.find('input[name="inviteId"]').val().trim(),
- // changeAble: $searchForm.find("select[name='changeAble']").val(),
- // accountStatus: $searchForm.find("select[name='accountStatus']").val(),
- // withdrawAble: $searchForm.find("input[name='withdrawAble']").val(),
- // invalidate_ie_cache: new Date()
- // };
+ return {
+ type: $searchForm.find("select[name='type']").val(),
+ username: $searchForm.find('input[name="username"]').val().trim()
+ };
}
function changeStatus(url) {
--
Gitblit v1.9.1