wangzhibo
6 天以前 da0230346106bc810664488a2b152bc24f853a44
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
105
106
<template>
    <el-scrollbar>
        <div class="demo-home">
            <el-row :gutter="10">
                <el-col :lg="6" :md="12" :xs="24">
                    <count-user />
                </el-col>
                <el-col :lg="6" :md="12" :xs="24">
                    <count-views />
                </el-col>
                <el-col :lg="6" :md="12" :xs="24">
                    <count-paid />
                </el-col>
                <el-col :lg="6" :md="12" :xs="24">
                    <count-effect />
                </el-col>
            </el-row>
 
            <el-row :gutter="10">
                <el-col :lg="24" :xs="24">
                    <tab-chart />
                </el-col>
            </el-row>
 
            <el-row :gutter="10">
                <el-col :lg="14" :sm="24">
                    <hot-goods />
                </el-col>
                <el-col :lg="10" :sm="24">
                    <category-ratio />
                </el-col>
            </el-row>
        </div>
    </el-scrollbar>
</template>
 
<script lang="ts" setup>
defineOptions({
    name: 'home'
});
 
import CategoryRatio from './components/category-ratio.vue';
import CountUser from './components/count-user.vue';
import CountViews from './components/count-views.vue';
import CountPaid from './components/count-paid.vue';
import CountEffect from './components/count-effect.vue';
import TabChart from './components/tab-chart.vue';
import HotGoods from './components/hot-goods.vue';
</script>
 
<style lang="scss">
.demo-home {
    overflow-x: hidden;
 
    .card {
        border-radius: 10px;
        margin-bottom: 10px;
        border: 1px solid var(--el-border-color-extra-light);
        background-color: var(--el-bg-color);
        color: var(--el-text-color-primary);
        user-select: none;
 
        &__header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 20px;
            min-height: 50px;
 
            .label {
                font-size: 15px;
            }
 
            .icon {
                font-size: 30px;
                background-color: var(--el-fill-color-light);
                padding: 5px;
                border-radius: 6px;
            }
        }
 
        &__container {
            padding: 0 20px;
            min-height: 50px;
 
            .num {
                font-size: 32px;
            }
        }
 
        &__footer {
            display: flex;
            align-items: center;
            height: 50px;
            margin: 0 5px;
            padding: 0 15px;
            box-sizing: border-box;
            font-size: 12px;
 
            .label {
                margin-right: 10px;
            }
        }
    }
}
</style>