<div className="layui-fluid layui-anim febs-anim" id="febs-systemProfit-child" lay-title="资金流水">
|
<div className="layui-row febs-container">
|
<div className="layui-col-md12">
|
<div className="layui-card">
|
<div className="layui-card-body febs-table-full">
|
<table lay-filter="systemProfitTableChild" lay-data="{id: 'systemProfitTableChild'}"></table>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
<!--<style>-->
|
<!-- .layui-table-cell {-->
|
<!-- height: auto !important;-->
|
<!-- }-->
|
<!--</style>-->
|
<script type="text/html" id="status-able">
|
{{#
|
var status = {
|
1: {title: '进行中', color: 'blue'},
|
2: {title: '成功', color: 'green'},
|
3: {title: '失败', color: 'red'}
|
}[d.status];
|
}}
|
<span class="layui-badge febs-bg-{{status.color}}">{{ status.title }}</span>
|
</script>
|
<script type="text/html" id="type-able">
|
{{#
|
var type = {
|
1: {title: '加入动能'},
|
2: {title: '技术方收益'},
|
3: {title: '直推收益'},
|
4: {title: '层级收益'},
|
5: {title: '剩余层级收益'},
|
6: {title: '复投动能'},
|
7: {title: '动能收益'},
|
}[d.type];
|
}}
|
<span>{{ type.title }}</span>
|
</script>
|
<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-systemProfit-child'),
|
tableIns;
|
|
form.render();
|
|
initTable();
|
|
function initTable() {
|
tableIns = febs.table.init({
|
elem: $view.find('table'),
|
id: 'systemProfitTableChild',
|
url: ctx + 'member/getSystemProfitFlowList?parentId=1',
|
cols: [[
|
{field: 'address', title: '地址', minWidth: 300},
|
{field: 'amount', title: '金额', minWidth: 80},
|
{field: 'fromHash', title: 'hash', minWidth: 150},
|
{title: '状态', templet: '#status-able', minWidth: 80},
|
{title: '类型', templet: '#type-able', minWidth: 80},
|
{field: 'createTime', title: '创建时间', minWidth: 150}
|
]]
|
});
|
}
|
|
})
|
</script>
|