stars.vue
5.7 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<template>
<div class="bck">
<div class="box">
<div class="box_L">
<div class="L_top">
<div class="pic">
<img src="@/assets/rank/tx.png" />
</div>
<div class="font_box">
<div class="font_name">熊初墨</div>
<div class="font_sch">柯桥实验小学元培学院</div>
</div>
</div>
<div class="L_mid">
<div class="mid_item">
<div>
<span class="strong_font">23</span>
<span>分</span>
</div>
<div class="grey_font">已完成题数</div>
</div>
<div class="mid_item">
<div>
<span class="strong_font">50</span>
<span>%</span>
</div>
<div class="grey_font">正确率</div>
</div>
</div>
<div class="yellowFont">*积分可用于兑换各种福利</div>
</div>
<div class="box_R">
<div class="box_R_item">
<div class="title">
<div>排行榜</div>
<span>RANKS</span>
</div>
<div class="imgBox">
<img src="@/assets/rank/jb.png" />
</div>
</div>
<div class="box_R_item">
<div class="title">
<div>刷题记录</div>
<span>RECORD</span>
</div>
<div class="imgBox">
<img src="@/assets/rank/qz.png" />
</div>
</div>
</div>
</div>
<div class="card">
</div>
</div>
</template>
<script>
export default {
data() {
return {};
},
};
</script>
<style lang="scss" scoped>
.bck {
position: absolute;
width: 100vw;
min-height: 100vh;
background-image: url("../../assets/rank/red_rank.png");
-moz-background-size: 100% 100%;
background-size: 100% 100%;
.box {
display: flex;
justify-content: space-between;
margin: 5vw 3vw;
.box_L {
width: 45vw;
height: 350px;
background-color: #fff;
border-radius: 30px;
padding: 3vw 2vw;
box-sizing: border-box;
display: flex;
flex-wrap: wrap;
align-content: space-between;
.L_top {
width: 100%;
display: flex;
justify-content: space-between;
.pic {
display: flex;
align-items: center;
img {
width: 13vw;
height: 13vw;
}
}
.font_box {
width: 25vw;
display: flex;
align-content: space-between;
flex-wrap: wrap;
.font_name {
font-size: 30px;
color: #333333;
}
.font_sch {
font-size: 27px;
color: #999;
white-space: nowrap; //文本强制不换行;
text-overflow: ellipsis; //文本溢出显示省略号;
overflow: hidden; //溢出的部分隐藏;
}
}
}
.L_mid {
width: 100%;
display: flex;
justify-content: space-between;
.mid_item {
width: 100%;
text-align: center;
font-size: 25px;
.grey_font {
color:#999;
font-size: 25px;
margin-top: 5px;
}
.strong_font {
font-size: 50px;
font-weight: bold;
}
}
}
.yellowFont {
width: 100%;
font-size: 24px;
color: #ff7a1c;
text-align: center;
}
}
.box_R {
width: 45vw;
height: 350px;
display: flex;
flex-wrap: wrap;
align-content: space-between;
.box_R_item {
width: 100%;
height: 170px;
border-radius: 30px;
display: flex;
justify-content: space-between;
padding: 20px 30px;
box-sizing: border-box;
.title {
font-size: 30px;
color: #000000;
span {
color: #999999;
font-size: 22px;
}
}
.imgBox {
display: flex;
align-items: center;
img {
width: 110px;
height: 110px;
}
}
}
}
}
.card {
width: 100%;
min-height: 800px;
background-color: #fff;
border-radius: 30px;
padding: 2vw;
box-sizing: border-box;
}
}
</style>