RanKing.vue
1.26 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
<template>
<div class="ranking-container">
<div class="title">品牌排名</div>
<div class="ranking">
<div class="brand flex" v-for="(item, index) in 5" :key="index">
<span class="brand-num">{{ index + 1 }}</span>
<marquee class="marquee" :direction="directionTimer" :delay="delayTimer" :text="text" />
</div>
</div>
</div>
</template>
<script>
export default {
name: 'RanKing',
data() {
return {
delayTimer: 3000,
directionTimer: 3000,
text: '丰田丰田丰田丰田丰田'
}
}
}
</script>
<style lang="scss" scoped>
.ranking-container {
margin-left: 0.6vw;
box-sizing: border-box;
height: 12.7vh;
background: #262525;
.title {
width: 6.7vw;
background: rgba(53, 53, 53, 0.6);
font-size: 10px;
color: #eb6001;
font-weight: 400;
text-align: center;
line-height: 2.4vh;
}
.ranking {
font-size: 10px;
color: #ffffff;
letter-spacing: 0;
font-weight: 400;
padding-left: 0.6vw;
padding-top: 0.1vh;
padding-bottom: 0.4vh;
.brand {
line-height: 1.9vh;
.brand-num {
color: #606266;
margin-right: 0.6vw;
}
.marquee {
width: calc(100% - 2.2vw);
height: 1.9vh;
}
}
}
}
</style>