xiaoyong931011
2020-06-30 2d57b956efa9227c602ab6598bfa8958fcea3e34
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
71
72
73
74
75
<div class="layui-fluid layui-anim febs-anim" id="febs-user" 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 id="memberWithdrawCoin"></table>
                </div>
                <div class="layui-card-body febs-table-full">
                    <table id="memberApplyCoin"></table>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- 表格操作栏 end -->
<script data-th-inline="none" type="text/javascript">
    // 引入组件并初始化
    layui.use([ 'jquery', 'form', 'table', 'febs'], function () {
        var $ = layui.$,
            febs = layui.febs,
            form = layui.form,
            table = layui.table,
            $view = $('#febs-user'),
            memberWithdrawCoin,
            memberApplyCoin;
        
        form.render();
        
        initTable();
        
        function initTable() {
            memberWithdrawCoin = febs.table.init({
                elem: $('#memberWithdrawCoin'),
                url: ctx + 'member/memberWithdrawCoin?account='+2,
                cols: [[
                    {field: 'inviteId', title: '邀请码UID', minWidth: 80,align:'center'},
                    {field: 'symbol', title: '币种', minWidth: 100,align:'center'},
                    {field: 'amount', title: '提币数量', minWidth: 120,align:'center' ,totalRow: true},
                    {field: 'address', title: '提币地址', minWidth: 300,align:'center'},
                    {field: 'createTime', title: '提币时间', minWidth: 180,align:'center'},
                    {field: 'isInside', title: '内部转账',
                        templet: function (d) {
                            if (d.isInside === 'Y') {
                                return '<span style="color:red;">是</span>'
                            } else {
                                return '<span style="color:green;">否</span>'
                            }
                        },minWidth: 100,align:'center'},
                    {field: 'status', title: '状态',
                        templet: function (d) {
                            if (d.status === 1) {
                                return '<span style="color:blue;"> 等待审核 </span>'
                            } else if (d.status === 2) {
                                return '<span style="color:green;">同意 </span>'
                            } else {
                                return '<span style="color:red;">拒绝</span>'
                            }
                        },minWidth: 100,align:'center'},
                ]]
            });
            memberApplyCoin = febs.table.init({
                elem: $('#memberApplyCoin'),
                url: ctx + 'member/memberApplyCoin?account='+2,
                cols: [[
                    {field: 'inviteId', title: '邀请码UID', minWidth: 80,align:'center'},
                    {field: 'symbol', title: '币种', minWidth: 60,align:'center'},
                    {field: 'tag', title: 'USDT类型', minWidth: 60,align:'center'},
                    {field: 'amount', title: '充币数量', minWidth: 100,align:'center',totalRow: true},
                    {field: 'createTime', title: '创建时间', minWidth: 200,align:'center'},
                    {title: '状态', templet: '#status', minWidth: 100,align:'center'}
                ]]
            });
        }
    })
</script>