From 159c4ae136e14f9bbfb28eef799b42fe59d9fd9e Mon Sep 17 00:00:00 2001 From: KKSU <15274802129@163.com> Date: Mon, 24 Jun 2024 10:39:55 +0800 Subject: [PATCH] 后台矩阵列表 --- src/main/resources/templates/febs/views/dapp/money-change-flow.html | 101 +++++++++++++++++++++++++++++++++----------------- 1 files changed, 66 insertions(+), 35 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 18d85f8..af7aa70 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 @@ -9,7 +9,7 @@ <div class="layui-form-item"> <div class="layui-inline"> <div class="layui-input-inline"> - <input type="text" name="address" autocomplete="off" placeholder="输入地址或邀请码" class="layui-input"> + <input type="text" name="address" autocomplete="off" placeholder="输入地址" class="layui-input"> </div> </div> <div class="layui-inline"> @@ -17,10 +17,16 @@ <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="13">节点买入</option> + <option value="14">节点返利</option> + <option value="15">见点奖</option> + <option value="16">复投</option> + <option value="17">收益</option> + <option value="18">买入</option> + <option value="19">手续费充值</option> + <option value="20">手续费扣除</option> + <option value="21">提现</option> + <option value="22">提现失败</option> </select> </div> </div> @@ -34,16 +40,16 @@ <!-- </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> - </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>--> +<!-- </select>--> +<!-- </div>--> +<!-- </div>--> </div> </div> <div class="layui-col-md2 layui-col-sm12 layui-col-xs12 table-action-area"> @@ -67,13 +73,29 @@ height: auto !important; } </style> -<script type="text/html" id="type-format"> +<script type="text/html" id="flow-status"> + {{# + var status = { + 2: {title: '成功'}, + 1: {title: '进行中'}, + 3: {title: '取消'} + }[d.status]; + }} + <span>{{ status.title }}</span> +</script> +<script type="text/html" id="flow-type"> {{# var type = { - 1: {title: '兑换'}, - 2: {title: '提现'}, - 3: {title: '采矿'}, - 4: {title: '代理返利'} + 13: {title: '节点买入'}, + 14: {title: '节点返利'}, + 15: {title: '见点奖'}, + 16: {title: '复投'}, + 17: {title: '收益'}, + 18: {title: '买入'}, + 19: {title: '手续费充值'}, + 20: {title: '手续费扣除'}, + 21: {title: '提现'}, + 22: {title: '提现失败'}, }[d.type]; }} <span>{{ type.title }}</span> @@ -127,27 +149,36 @@ tableIns = febs.table.init({ elem: $view.find('table'), id: 'moneyChangeTable', - url: ctx + 'flow/accountMoneyChangeFlow', + url: ctx + 'flow/fundFlow', cols: [[ - {field: 'address', title: '地址', minWidth: 150}, - {field: 'preAmount', title: '变化前金额', minWidth: 100}, - {field: 'amount', title: '变化金额', minWidth: 100}, - {field: 'afterAmount', title: '变化后金额', minWidth: 100}, - {field: 'content', title: '描述', minWidth: 130}, - {title: '类型', templet: '#type-format'}, - {field: 'createTime', title: '创建时间', minWidth: 180} + {field: 'address', title: '地址', minWidth: 380, totalRowText: '合计:'}, + {title: '类型', minWidth: 100,templet: '#flow-type',align:'center'}, + {field: 'amount', title: '金额', + templet: function (d) { + if (d.amount > 0) { + return '<span style="color:green;">'+d.amount+'</span>' + } else if (d.amount < 0) { + return '<span style="color:red;">'+d.amount+'</span>' + }else{ + return d.amount + } + }, minWidth: 80,align:'center',totalRow: '{{= parseInt(d.amount) }}'}, + {field: 'fee', title: '手续费', minWidth: 80}, + {field: 'createTime', title: '创建时间', minWidth: 150}, + {field: 'fromHash', title: 'fromHash', minWidth: 150}, + {field: 'toHash', title: 'toHash', minWidth: 150}, ]] }); } 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 { + address: $searchForm.find('input[name="address"]').val().trim(), + type: $searchForm.find("select[name='type']").val(), + // accountStatus: $searchForm.find("select[name='accountStatus']").val(), + // withdrawAble: $searchForm.find("input[name='withdrawAble']").val(), + // invalidate_ie_cache: new Date() + }; } function changeStatus(url) { -- Gitblit v1.9.1