mapsection.vue
2.07 KB
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
<template>
<div>
<ul class="title-wrap">
<li>
<img src="../assets/img/parkingtotal.svg">
<div>
<p>{{parkingtotal|formatNum}}</p>
<p>停车场总数</p>
</div>
</li>
<li>
<img src="../assets/img/membertotal.svg">
<div>
<p>{{membertotal|formatNum}}</p>
<p>会员总数</p>
</div>
</li>
<li>
<img src="../assets/img/incometotal.svg">
<div>
<p>{{incometotal|formatNum}}</p>
<p>今日收入总数</p>
</div>
</li>
<li>
<img src="../assets/img/ordertotal.svg">
<div>
<p>{{ordertotal|formatNum}}</p>
<p>今日订单数</p>
</div>
</li>
</ul>
<div class="flexfm" style="background: #f00"></div>
</div>
</template>
<script>
export default {
name: 'mapsection',
data() {
return {
parkingtotal: '7338',
membertotal: '738',
incometotal: '1156738',
ordertotal: '6738'
}
}
}
</script>
<style lang="scss" scoped>
.title-wrap{
display: flex;
padding-top: 17px;
padding-bottom: 18px;
li{
flex: 1;
height: 45px;
text-align: center;
overflow: hidden;
font-size: 0;
img{
display: inline-block;
width: 45px;
height: 45px;
margin-right: 14px;
}
div{
display: inline-block;
vertical-align: top;
text-align: left;
max-width: 100px;
overflow: hidden;
p{
&:nth-of-type(1){
font-size:24px;
font-weight:500;
color:rgba(255,255,255,1);
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
&:nth-of-type(2){
font-size:14px;
font-weight:bold;
color:rgba(0,207,254,.7);
margin-top: 7px;
}
}
}
}
}
</style>