myList.wxss
7.88 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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
/* pages/limit/queue.wxss */
page {
background-color: #222;
}
.container {
display: flex;
height: 100%;
flex-direction: column;
align-items: center;
justify-content: flex-start;
box-sizing: border-box;
padding: 0;
}
scroll-view {
height: 1206rpx;
}
.queue-title {
display: flex;
flex-direction: column;
justify-content: flex-end;
width: 100%;
height: 352rpx;
background-size: 100% 100%;
}
image {
width: 100%;
height: 100%;
}
.queue-buttons {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
width: 100%;
height: 80rpx;
line-height: 80rpx;
}
.queue-desc-link {
color: #fff;
font-size: 24rpx;
margin-left: 30rpx;
}
.queue-prize-link {
height: 44rpx;
margin-right: 30rpx;
color: #fff;
font-size: 24rpx;
background-color: #a0a0a0;
border-radius: 30rpx;
line-height: 44rpx;
}
.queue-prize-link.active {
background-color: #c30016;
}
.user-container,
.button-container {
display: flex;
position: fixed;
height: 100rpx;
bottom: 42rpx;
right: 32rpx;
flex-direction: row;
align-items: flex-end;
justify-content: space-between;
z-index: 19;
}
/* 用户头像及排名 */
.userrank {
position: relative;
color: #fff;
margin-right: 10rpx;
border-radius: 14rpx 20rpx 0 14rpx;
background-color: #000;
}
.user-container.success .userrank {
background-color: #fed832;
}
.user-container.fail .userrank {
background-color: #b0b0b0;
}
.user-container.success image,
.user-container.fail image {
border: none;
}
/* 头像旁边的特殊形状,使用:after :before实现 */
.userrank .rank-text {
display: flex;
width: 100%;
height: 100%;
left: 0;
top: 0;
padding: 2px 6px;
align-items: center;
justify-content: center;
border: 2px solid #fff;
border-radius: 6px 6px 0rpx 6px;
box-sizing: border-box;
overflow: hidden;
font-size: 28rpx;
line-height: 1.2;
z-index: -1;
}
/* 先做一个圆角矩形,显示左边与下方边框,则左下角为圆角,并设置与父级的右边框对齐 */
.rank-text:after {
content: '';
width: 8px;
height: 50%;
border: none;
border-left: 2px solid #fff;
border-bottom: 2px solid #fff;
border-radius: 0 0 0 20rpx;
position: absolute;
bottom: 0rpx;
right: -5.8px;
box-sizing: border-box;
}
/* 在下面画一个矩形,显示下边框,背景从黑色渐变到透明 */
.rank-text:before {
content: '';
width: 10px;
height: 6px;
border: none;
border-bottom: 2px solid #fff;
border-radius: 2px;
position: absolute;
bottom: 0rpx;
right: -5px;
background: linear-gradient(45deg, #000 40%, transparent 60%);
box-sizing: border-box;
}
.user-container.success .rank-text:before {
background: linear-gradient(45deg, #fed832 40%, transparent 60%);
}
.user-container.fail .rank-text:before {
background: linear-gradient(45deg, #b0b0b0 40%, transparent 60%);
}
.userhead {
width: 108rpx;
height: 108rpx;
}
.userhead image {
border: 4rpx solid #fff;
border-radius: 50%;
box-sizing: border-box;
}
.join-button {
display: flex;
width: 108rpx;
height: 108rpx;
border: 4rpx solid #fff;
border-radius: 50%;
box-sizing: border-box;
background-color: #000;
align-items: center;
justify-content: center;
}
.end-button {
display: flex;
width: 108rpx;
height: 108rpx;
border: 4rpx solid #fff;
border-radius: 50%;
box-sizing: border-box;
background-color: #a0a0a0;
align-items: center;
justify-content: center;
}
.join-button text,
.end-button text {
display: flex;
width: 60rpx;
height: 72rpx;
text-align: center;
align-items: center;
color: #fff;
font-size: 28rpx;
line-height: 1.2;
}
.queue-list { /* 排队列表 */
display: flex;
width: 100%;
flex-direction: column;
}
.queue-item { /* 列表中的item */
display: flex;
position: relative;
width: 100%;
height: 162rpx;
align-items: center;
color: white;
background-color: #444;
box-sizing: border-box;
overflow: hidden;
}
.queue-item.active { /* 用户自身白底渐变 */
background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 5%, rgba(255, 255, 255, 0.1) 55%, rgba(255, 255, 255, 0.1));
color: #000;
}
.queue-item:after { /* item下方细线 */
content: '';
position: absolute;
width: 100%;
height: 100%;
bottom: 0;
left: 0;
border-bottom: 1rpx solid rgba(34, 34, 34, 0.5);
transform: scaleX(0.6) scaleY(0.3);
transform-origin: 0% 100%;
z-index: 0;
}
.queue-item .item-head-container { /* item头像 */
display: flex;
position: relative;
width: 150rpx;
height: 150rpx;
align-items: center;
justify-content: center;
box-sizing: border-box;
}
.item-head-container .item-head {/* item头像图 */
width: 96rpx;
height: 96rpx;
border-radius: 50%;
}
.item-head-container .gift-icon {
position: absolute;
width: 30rpx;
height: 30rpx;
right: 24rpx;
bottom: 34rpx;
z-index: 5;
}
.item-helpinfo-container {
width: 410rpx;
}
.item-info-container { /* item用户相关信息 */
display: flex;
flex-flow: column;
width: 260rpx;
height: 150rpx;
align-items: flex-start;
justify-content: center;
box-sizing: border-box;
}
.item-helpinfo {
display: flex;
flex-direction: row;
align-items: center;
height: 60rpx;
margin: 0 30rpx;
background-color: rgba(0, 0, 0, 0.3);
font-size: 20rpx;
font-weight: lighter;
color: #fff;
border-radius: 30rpx;
overflow: hidden;
}
.item-helpinfo image {
width: 42rpx;
height: 42rpx;
margin: 0 8rpx;
border-radius: 42rpx;
}
.item-user-rank { /* item 用户排名 */
display: flex;
flex-direction: row;
align-items: center;
font-size: 36rpx;
font-weight: bold;
line-height: 40rpx;
overflow: hidden;
}
.item-user-assist {
display: flex;
flex-direction: row;
align-items: center;
width: 138rpx;
height: 32rpx;
background-color: #d0021b;
border-radius: 20rpx;
margin-left: 10rpx;
font-size: 24rpx;
font-weight: lighter;
color: #fff;
}
.item-user-assist image {
width: 28rpx;
height: 28rpx;
margin: 0 4rpx 0 4rpx;
border-radius: 28rpx;
}
.item-user-name { /* item 用户名称 */
width: 100%;
font-size: 24rpx;
line-height: 36rpx;
overflow: hidden;
white-space: nowrap;
}
.item-user-time { /* item 用户排队时间 */
display: flex;
justify-content: center;
height: 32rpx;
line-height: 32rpx;
align-items: center;
font-size: 24rpx;
color: rgba(255, 255, 255, 0.7);
}
.item-user-vip-level { /* vip等级 */
width: 52rpx;
height: 32rpx;
}
.item-user-time-icon { /* 时间小图标 */
width: 16rpx;
height: 16rpx;
background-image: url('http://imgboys1.yohobuy.com/staticimg/2018/03/05/10/019d6b2073bc15c96a5ae74b8b73f0d2fc.png');
background-size: 100% 100%;
margin-right: 8rpx;
}
.queue-item.active .item-user-time-icon { /* 用户自身白底时的时间小图标 */
background-image: url('http://imgboys1.yohobuy.com/staticimg/2018/03/05/10/01c72176785481a14216a7eda3786aee01.png');
}
.item-user-time-text { /* 时间文字 */
margin-right: 8rpx;
}
.queue-item.active .item-user-time { /* 用户自身白底时的时间文字 */
color: rgba(0, 0, 0, 0.7);
}
.item-bg { /* 右边的排队图片 */
width: 340rpx;
height: 100%;
box-sizing: border-box;
z-index: 1;
}
.item-bg image {
width: 100%;
height: 100%;
}
.invite-button {
position: fixed;
width: 280rpx;
height: 50rpx;
line-height: 50rpx;
color: white;
text-align: center;
font-size: 26rpx;
left: 66rpx;
bottom: 30rpx;
border-radius: 30rpx;
background-color: #d0021b;
}