xiaoyong931011
2022-12-02 6feca7b6f433cf4558ad8423d6eb0ff109880c78
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<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},
                    {title: '状态', templet: '#status-able', minWidth: 80},
                    {title: '类型', templet: '#type-able', minWidth: 80},
                    {field: 'createTime', title: '创建时间', minWidth: 150}
                ]]
            });
        }
 
    })
</script>