Administrator
2024-07-29 a053811c774ac07340e46561f5d2ab4d892282a0
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
$(function() {
    var app = new Vue({
        el: '#container',
        data: {
            mode: 0,
            temp_screen_time_index: 0,
            current_page: 1,
            screen_time_index: 0,
            orders: [],
            hasMore: true,
            withdraw_records: [1, 1, 1, 1, 1],
            order_statistic: {
                user_count: 0,
                order_count: 0,
                total_money: 0.00
            }
        },
        mounted: function() {
 
            this.$nextTick(function() {
 
                app.search();
            });
        },
        methods: {
            change_mode: function(mode) {
                app.mode = mode;
            },
            open_screen: function() {
                app.temp_screen_time_index = app.screen_time_index;
                let index = layer.open({
                    id: 'screen-layer',
                    type: 1,
                    title: false,
                    offset: 'b',
                    content: $("#screen"),
                    shadeClose: true,
                    anim: 2,
                    isOutAnim: false,
                    area: ['7.5rem', '4.6rem'],
                    closeBtn: 0
                });
                layer.style(index, {
                    background: 'transparent'
                });
            },
            closeScreen: function() {
                layer.closeAll();
            },
            selectScreenTime: function(index) {
                app.temp_screen_time_index = index;
            },
            resetScreen: function() {
                app.temp_screen_time_index = 0;
            },
            sureScreen: function() {
                app.screen_time_index = app.temp_screen_time_index;
                layer.closeAll();
                app.search();
            },
            setAlipayAccount: function() {
                window.location.href = "alipay_account_setting.html";
            },
            search: function() {
                app.current_page = 1;
                app.orders = [];
                app.order_statistic = {
                    user_count: 0,
                    order_count: 0,
                    total_money: 0.00
                };
                http_util.post("/agentapi/admin/orderList", {
                    key: $("#search_key").val(),
                    timeIndex: app.screen_time_index,
                    page: app.current_page
                }, function(res) {
                    if (res.code == 0) {
                        app.orders = app.orders.concat(res.data.list);
                        app.order_statistic.order_count = res.data.count;
                        app.order_statistic.user_count = res.data.statistic.count;
                        app.order_statistic.total_money = res.data.statistic.money;
                        if (app.orders.length < app.order_statistic.order_count) {
                            app.hasMore = true;
                        } else {
                            app.hasMore = false;
                        }
                    }
 
                }, function(res) {
 
                });
            },
            loadOrder: function() {
 
            },
            loadWidthdraw: function() {
 
            }
 
        }
 
    });
 
});