Activity.wxss
2.27 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
.item {
border-radius: 8rpx;
width: 314rpx;
/* min-height: 520rpx; */
margin-bottom: 32rpx;
position: relative;
overflow: hidden;
transition: all .5s;
}
.text-center {
display: flex;
align-items: center;
justify-content: center;
}
.item .img {
width: 100%;
height: 324rpx;
}
.item .info {
padding: 20rpx 22rpx 24rpx 24rpx;
background: #F7F8FA;
}
.item .title {
width: 100%;
box-sizing: border-box;
font-size: 28rpx;
color: #282829;
line-height: 40rpx;
max-height: 80rpx;
word-break: break-all;
}
.text-two-line {
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
}
.item .price-box {
margin-top: 20rpx;
width: 100%;
height: 64rpx;
position: relative;
border-radius: 8rpx;
overflow: hidden;
background: #FCECD1;
font-weight: 500;
}
.item .price-box .price {
position: absolute;
width: calc(100% - 76rpx);
height: 100%;
left: 0;
top: 0;
clip-path: polygon(0% 0%, 100% 0, 90% 50%, 100% 100%, 0% 100%);
background-image: linear-gradient(270deg, #F8532F 10%, #F13A37 100%);
border-radius: 8rpx 2rpx 2rpx 2rpx 8rpx;
display: flex;
align-items: center;
}
.item .price-box .price .num {
color: #fff;
font-size: 32rpx;
box-sizing: border-box;
padding-left: 20rpx;
display: flex;
align-items: baseline;
}
.item .price-box .price .num .unit {
font-size: 20rpx;
margin-right: 4rpx;
}
.item .price-box .price .num .up {
transform: translateY(-2rpx);
}
.item .price-box .text {
width: 76rpx;
height: 100%;
font-size: 28rpx;
color: #F23D36;
margin-left: auto;
}
.time-box {
border-radius: 20rpx;
background-image: linear-gradient(180deg, #F13A37 50%, #F8532F 100%);
padding: 2rpx;
overflow: hidden;
margin-top: 16rpx;
animation: show-activity-time .5s forwards;
}
.activity-time {
display: flex;
align-items: center;
font-size: 20rpx;
color: #F44335;
padding: 4rpx 11rpx;
background-color: #F7F8FA;
border-radius: 19rpx;
overflow: hidden;
}
.activity-time .icon{
width: 26rpx;
height: 24rpx;
margin-right: 7rpx;
flex-shrink: 0;
}
@keyframes show-activity-time {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.activity-time .time {
display: flex;
align-items: center;
flex-shrink: 0;
}