<div class="layui-fluid layui-anim febs-anim" id="febs-money-flow" lay-title="资金流水">
|
<div class="layui-row febs-container">
|
<div class="layui-col-md12">
|
<div class="layui-card">
|
<div class="layui-card-body febs-table-full">
|
<form class="layui-form layui-table-form" lay-filter="user-table-form">
|
<div class="layui-row">
|
<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="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">
|
<select name="flowType">
|
<option value="">请选择</option>
|
<option value="3">卡牌</option>
|
<option value="2">宝石</option>
|
<option value="1">GFA代币</option>
|
</select>
|
</div>
|
</div>
|
</div>
|
</div>
|
<div class="layui-col-md2 layui-col-sm12 layui-col-xs12 table-action-area">
|
<div class="layui-btn layui-btn-sm layui-btn-primary febs-button-blue-plain table-action" id="query">
|
<i class="layui-icon"></i>
|
</div>
|
<div class="layui-btn layui-btn-sm layui-btn-primary febs-button-green-plain table-action" id="reset">
|
<i class="layui-icon"></i>
|
</div>
|
</div>
|
</div>
|
</form>
|
<table lay-filter="moneyFlowTable" lay-data="{id: 'moneyFlowTable'}"></table>
|
</div>
|
</div>
|
</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">卡牌</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">代币转出</span>
|
{{# } else if(d.type === 3) { }}
|
<span class="layui-badge febs-bg-orange">代币转入</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 { }}
|
{{# } }}
|
</script>
|
<!-- 表格操作栏 end -->
|
<script data-th-inline="none" type="text/javascript">
|
// 引入组件并初始化
|
layui.use([ 'jquery', 'form', 'table', 'febs'], function () {
|
var $ = layui.jquery,
|
febs = layui.febs,
|
form = layui.form,
|
table = layui.table,
|
$view = $('#febs-money-flow'),
|
$query = $view.find('#query'),
|
$reset = $view.find('#reset'),
|
$searchForm = $view.find('form'),
|
sortObject = {field: 'phone', type: null},
|
tableIns;
|
|
form.render();
|
|
// 表格初始化
|
initTable();
|
|
// 初始化表格操作栏各个按钮功能
|
table.on('tool(moneyFlowTable)', function (obj) {
|
var data = obj.data,
|
layEvent = obj.event;
|
});
|
|
// 查询按钮
|
$query.on('click', function () {
|
var params = $.extend(getQueryParams(), {field: sortObject.field, order: sortObject.type});
|
tableIns.reload({where: params, page: {curr: 1}});
|
});
|
|
// 刷新按钮
|
$reset.on('click', function () {
|
$searchForm[0].reset();
|
sortObject.type = 'null';
|
tableIns.reload({where: getQueryParams(), page: {curr: 1}, initSort: sortObject});
|
});
|
|
function initTable() {
|
tableIns = febs.table.init({
|
elem: $view.find('table'),
|
id: 'moneyFlowTable',
|
url: ctx + 'admin/mallMember/getMoneyFlowList',
|
cols: [[
|
{field: 'accountLogin', title: '登录账户', minWidth: 100,align:'left'},
|
{field: 'amount', 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'}
|
]]
|
});
|
}
|
|
// 获取查询参数
|
function getQueryParams() {
|
return {
|
accountLogin: $searchForm.find('input[name="accountLogin"]').val().trim(),
|
type: $searchForm.find("select[name='type']").val(),
|
flowType: $searchForm.find("select[name='flowType']").val(),
|
};
|
}
|
|
})
|
</script>
|