<div class="layui-fluid layui-anim febs-anim" id="febs-orderMoneyFlow-child" 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">
|
<table lay-filter="orderMoneyFlowChild" lay-data="{id: 'orderMoneyFlowChild'}"></table>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
<script type="text/html" id="flow-type">
|
{{#
|
var type = {
|
1: {title: '支付', color: 'orange'},
|
2: {title: '直推', color: 'green'},
|
3: {title: '赠送积分', color: 'blue'},
|
4: {title: '市场拓展奖', color: 'orange'},
|
5: {title: '团队静态收益', color: 'green'},
|
6: {title: '个人静态收益', color: 'blue'},
|
7: {title: '积分奖励', color: 'orange'},
|
}[d.type];
|
}}
|
<span class="layui-badge febs-bg-{{type.color}}">{{ type.title }}</span>
|
</script>
|
<script data-th-inline="none" type="text/javascript">
|
layui.use([ 'jquery', 'laydate', 'form', 'table', 'febs', 'treeSelect' ,'eleTree'], function () {
|
var $ = layui.jquery,
|
laydate = layui.laydate,
|
febs = layui.febs,
|
form = layui.form,
|
table = layui.table
|
$view = $('#febs-orderMoneyFlow-child')
|
tableIns;
|
|
form.render();
|
|
initTable();
|
|
laydate.render({
|
elem: '#user-createTime',
|
range: true,
|
trigger: 'click'
|
});
|
|
|
function initTable() {
|
tableIns = febs.table.init({
|
elem: $view.find('table'),
|
id: 'orderMoneyFlowChild',
|
url: ctx + 'admin/goods/orderMoneyFlow',
|
cols: [[
|
{field: 'address', title: '用户', minWidth: 80,align:'center'},
|
{field: 'amount', title: '金额', minWidth: 80,align:'center'},
|
{title: '类型', minWidth: 100,templet: '#flow-type',align:'center'},
|
{field: 'createdTime', title: '时间', minWidth: 150,align:'left'}
|
]]
|
});
|
}
|
|
})
|
</script>
|