From 2c7890dc25f0cf08b30663eb6c91f83ff29ac24b Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Fri, 22 Mar 2024 11:20:44 +0800
Subject: [PATCH] 抽奖
---
src/main/resources/templates/febs/views/modules/mallMember/moneyFlowList.html | 172 ++++++++++++++++++++++++++++++++++++++++-----------------
1 files changed, 120 insertions(+), 52 deletions(-)
diff --git a/src/main/resources/templates/febs/views/modules/mallMember/moneyFlowList.html b/src/main/resources/templates/febs/views/modules/mallMember/moneyFlowList.html
index ace7df4..3d0b5f3 100644
--- a/src/main/resources/templates/febs/views/modules/mallMember/moneyFlowList.html
+++ b/src/main/resources/templates/febs/views/modules/mallMember/moneyFlowList.html
@@ -8,27 +8,43 @@
<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" placeholder="用户名" name="name" autocomplete="off" class="layui-input">
+ <input type="text" placeholder="登录账户" name="accountLogin" autocomplete="off" class="layui-input">
</div>
</div>
+<!-- <div class="layui-inline">-->
+<!-- <label class="layui-form-label">流水类型:</label>-->
+<!-- <div class="layui-input-inline">-->
+<!-- <select name="type">-->
+<!-- <option value="">请选择</option>-->
+<!-- <option value="1">解除冻结</option>-->
+<!-- <option value="2">代币转出</option>-->
+<!-- <option value="3">代币转入</option>-->
+<!-- <option value="4">宝石转出</option>-->
+<!-- <option value="5">宝石转入</option>-->
+<!-- <option value="6">消耗宝石</option>-->
+<!-- <option value="7">GFA动态兑换</option>-->
+<!-- <option value="8">动态兑换手续费</option>-->
+<!-- <option value="9">GFA动态兑换</option>-->
+<!-- <option value="10">卡牌提现</option>-->
+<!-- <option value="11">卡牌提现手续费</option>-->
+<!-- <option value="12">支付</option>-->
+<!-- <option value="13">预约宝石</option>-->
+<!-- <option value="14">卡牌提现GFA手续费</option>-->
+<!-- <option value="15">系统拨付</option>-->
+<!-- </select>-->
+<!-- </div>-->
+<!-- </div>-->
<div class="layui-inline">
+ <label class="layui-form-label">资金类型:</label>
<div class="layui-input-inline">
- <input type="text" placeholder="手机号" name="phone" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-inline">
- <label class="layui-form-label layui-form-label-sm">账户状态</label>
- <div class="layui-input-inline">
- <select name="type">
+ <select name="flowType">
<option value="">请选择</option>
- <option value="1">直推奖励</option>
- <option value="2">团队奖励</option>
- <option value="3">订单支付</option>
- <option value="4">退款</option>
- <option value="5">转账</option>
- <option value="6">提现</option>
- <option value="7">排名奖励</option>
+ <option value="4">GFD</option>
+ <option value="3">NFT</option>
+ <option value="2">门票</option>
+ <option value="1">GFA代币</option>
</select>
</div>
</div>
@@ -50,6 +66,89 @@
</div>
</div>
</div>
+
+<script type="text/html" id="isFlowType">
+ {{# if(d.flowType === 1) { }}
+ <span class="layui-badge febs-bg-red">GFA代币</span>
+ {{# } else if(d.flowType === 2) { }}
+ <span class="layui-badge febs-bg-blue">门票</span>
+ {{# } else if(d.flowType === 3) { }}
+ <span class="layui-badge febs-bg-orange">NFT</span>
+ {{# } else if(d.flowType === 4) { }}
+ <span class="layui-badge febs-bg-orange">GFD</span>
+ {{# } else { }}
+ {{# } }}
+</script>
+
+
+
+
+<script type="text/html" id="isType">
+ {{# if(d.type === 1) { }}
+ <span class="layui-badge febs-bg-red">解除冻结</span>
+ {{# } else if(d.type === 2) { }}
+ <span class="layui-badge febs-bg-blue">GFA代币转出</span>
+ {{# } else if(d.type === 3) { }}
+ <span class="layui-badge febs-bg-orange">GFA代币转入</span>
+ {{# } else if(d.type === 4) { }}
+ <span class="layui-badge febs-bg-orange">宝石转出</span>
+ {{# } else if(d.type === 5) { }}
+ <span class="layui-badge febs-bg-orange">宝石转入</span>
+ {{# } else if(d.type === 6) { }}
+ <span class="layui-badge febs-bg-orange">预约宝石</span>
+ {{# } else if(d.type === 7) { }}
+ <span class="layui-badge febs-bg-orange">GFA动态兑换</span>
+ {{# } else if(d.type === 8) { }}
+ <span class="layui-badge febs-bg-orange">动态兑换手续费</span>
+ {{# } else if(d.type === 9) { }}
+ <span class="layui-badge febs-bg-orange">GFA动态兑换</span>
+ {{# } else if(d.type === 10) { }}
+ <span class="layui-badge febs-bg-orange">卖出</span>
+ {{# } else if(d.type === 11) { }}
+ <span class="layui-badge febs-bg-orange">卡牌提现手续费</span>
+ {{# } else if(d.type === 12) { }}
+ <span class="layui-badge febs-bg-orange">支付</span>
+ {{# } else if(d.type === 13) { }}
+ <span class="layui-badge febs-bg-orange">消耗宝石</span>
+ {{# } else if(d.type === 14) { }}
+ <span class="layui-badge febs-bg-orange">消耗GFA</span>
+ {{# } else if(d.type === 15) { }}
+ <span class="layui-badge febs-bg-orange">系统拨付</span>
+ {{# } else if(d.type === 16) { }}
+ <span class="layui-badge febs-bg-orange">即将获得直推奖励</span>
+ {{# } else if(d.type === 17) { }}
+ <span class="layui-badge febs-bg-orange">账户冻结,遗憾错失奖励</span>
+ {{# } else if(d.type === 18) { }}
+ <span class="layui-badge febs-bg-orange">直推奖励</span>
+ {{# } else if(d.type === 19) { }}
+ <span class="layui-badge febs-bg-orange">团队贡献值</span>
+ {{# } else if(d.type === 20) { }}
+ <span class="layui-badge febs-bg-orange">即将获得平级奖励</span>
+ {{# } else if(d.type === 21) { }}
+ <span class="layui-badge febs-bg-orange">团队奖励</span>
+ {{# } else if(d.type === 22) { }}
+ <span class="layui-badge febs-bg-orange">平级奖励</span>
+ {{# } else if(d.type === 23) { }}
+ <span class="layui-badge febs-bg-orange">卡牌兑换GFD</span>
+ {{# } else if(d.type === 24) { }}
+ <span class="layui-badge febs-bg-orange">GFA兑换GFD</span>
+ {{# } else if(d.type === 25) { }}
+ <span class="layui-badge febs-bg-orange">GFD兑换卡牌</span>
+ {{# } else if(d.type === 26) { }}
+ <span class="layui-badge febs-bg-orange">GFD兑换GFA</span>
+ {{# } else if(d.type === 27) { }}
+ <span class="layui-badge febs-bg-orange">收益</span>
+ {{# } else if(d.type === 28) { }}
+ <span class="layui-badge febs-bg-orange">节点收益</span>
+ {{# } else if(d.type === 29) { }}
+ <span class="layui-badge febs-bg-orange">卡牌转出</span>
+ {{# } else if(d.type === 30) { }}
+ <span class="layui-badge febs-bg-orange">卡牌转入</span>
+ {{# } else if(d.type === 31) { }}
+ <span class="layui-badge febs-bg-orange">卡牌转出手续费</span>
+ {{# } else { }}
+ {{# } }}
+</script>
<!-- 表格操作栏 end -->
<script data-th-inline="none" type="text/javascript">
// 引入组件并初始化
@@ -95,42 +194,11 @@
id: 'moneyFlowTable',
url: ctx + 'admin/mallMember/getMoneyFlowList',
cols: [[
- {field: 'name', title: '名称', minWidth: 100,align:'left'},
- {field: 'phone', title: '手机号', minWidth: 150,align:'left'},
+ {field: 'accountLogin', title: '登录账户', minWidth: 100,align:'left'},
{field: 'amount', title: '金额', minWidth: 150,align:'left'},
- {field: 'type', title: '流水类型',
- templet: function (d) {
- if (d.type === 1) {
- return '<span>直推奖励</span>'
- } else if (d.type === 2) {
- return '<span>团队奖励</span>'
- } else if (d.type === 3) {
- return '<span>订单支付</span>'
- } else if (d.type === 4) {
- return '<span>退款</span>'
- }else if (d.type === 5) {
- return '<span>转账</span>'
- }else if (d.type === 6) {
- return '<span>提现</span>'
- }else if (d.type === 7) {
- return '<span>排名奖励</span>'
- }else{
- return ''
- }
- }, minWidth: 80,align:'center'},
- {field: 'type', title: '支付方式',
- templet: function (d) {
- if (d.type === 3) {
- if(d.payMethod === null || d.payMethod ===''){
- return ''
- }else{
- return '<span>'+d.payMethod+'</span>'
- }
- } else{
- return ''
- }
- }, minWidth: 80,align:'center'},
- {field: 'orderNo', title: '订单编号', minWidth: 150,align:'left'},
+ {templet: '#isType', title: '流水类型', minWidth: 100,align:'center'},
+ {templet: '#isFlowType', title: '资金类型', minWidth: 100,align:'center'},
+ {field: 'description', title: '备注', minWidth: 150,align:'left'},
{field: 'createdTime', title: '创建时间', minWidth: 180,align:'center'}
]]
});
@@ -139,9 +207,9 @@
// 获取查询参数
function getQueryParams() {
return {
- name: $searchForm.find('input[name="name"]').val().trim(),
- phone: $searchForm.find('input[name="phone"]').val().trim(),
+ accountLogin: $searchForm.find('input[name="accountLogin"]').val().trim(),
type: $searchForm.find("select[name='type']").val(),
+ flowType: $searchForm.find("select[name='flowType']").val(),
};
}
--
Gitblit v1.9.1