goodsItem_7.less
5.04 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
@charset "UTF-8";
.goods-item-7-box {
background-color: transparent;
width: 100%;
height: auto;
.item {
background-color: #ffffff;
width: 100%;
height: auto;
border-radius: 16px;
overflow: hidden;
.img-box {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 330px;
// height: 100%;
overflow: hidden;
// 因为积分需要层叠到图片上方需要设置父级相对定位
position: relative;
.img {
display: block;
width: 100%;
height: auto;
}
// 积分商城需要商品是否有货显示补货中
.goods_active{
width: 100%;
height: 58px;
// border-radius: 26px;
background: rgba(0, 0, 0, 0.4);
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-size: 30px;
text-align: center;
position: absolute;
left: 0;
bottom: 0;
}
// 积分 + 现金标示
.goods_tip{
position: absolute;
left: 14px;
top: 14px;
padding: 3px 8px;
background: linear-gradient(90deg, #F9EE7A 0%, #FAD844 100%);
border-radius: 7px;
height: 30px;
font-size: 22px;
font-weight: 400;
color: #945A08;
line-height: 30px;
}
}
.content-box {
margin: 0 auto;
width: 290px;
.title {
display: -webkit-box;
margin-top: 20px;
color: #333333;
font-size: 28px;
font-weight: 400;
width: 100%;
height: auto;
min-height: 76px;
line-height: 40px;
-webkit-line-clamp: 2;
/*! autoprefixer: off */
-webkit-box-orient: vertical;
/*! autoprefixer: on */
text-overflow: ellipsis;
overflow: hidden;
}
.tags-box {
// display: flex;
// justify-content: flex-start;
// align-items: center;
.tag {
margin-top: 10px;
margin-right: 10px;
float: left;
&.week {
background-color: #FA972F;
padding: 0 8px 4px 8px;
color: #fff;
font-size: 22px;
font-weight: 500;
border-radius: 6px;
}
&.good {
background-color: #FC1541;
padding: 0 8px 4px 8px;
color: #fff;
font-size: 22px;
font-weight: 500;
border-radius: 6px;
}
}
}
.grey-title{
clear: both;
font-size: 36px;
height: 76px;
}
.coupon-box {
clear: both;
display: inline;
margin-top: 8px;
padding: 1px 6px;
color: #FC1541;
font-size: 18px;
border: 1px solid #FC1541;
border-radius: 4px;
}
.price-box {
clear: both;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-top: 10px;
.left {
display: flex;
justify-content: flex-start;
align-items: baseline;
color: #FC1541;
.y {
font-size: 20px;
}
.integer {
font-size: 30px;
}
.decimal {
font-size: 30px;
}
}
.right {
display: flex;
justify-content: flex-end;
align-items: baseline;
.icon-add {
display: block;
width: 48px;
height: 48px;
}
}
}
/**积分显示*/
.grade-box {
clear: both;
height: 50px;
font-size: 36px;
font-weight: 500;
color: #FC1541;
line-height: 50px;
display: flex;
align-items: center;
/**红色字*/
.num{
font-size: 36px;
font-weight: 500;
color: #FC1541;
}
/**健康商城商品颜色*/
.grey-box{
color: #3EB781;
font-size: 36px;
}
span {
font-size: 24px;
font-weight: 400;
color: #999999;
margin-left: 10px;
}
}
/**积分加现金*/
.price-title-box{
clear: both;
height: 42px;
font-size: 30px;
font-weight: 400;
color: #FC1541;
line-height: 42px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
/*兼容积分商城样式*/
.integral-content-box{
width: 100%;
}
&.g-2 {
.content-box {
.title {
display: block;
font-weight: 500;
min-height: unset;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.price-box {
margin-top: 15px;
margin-bottom: 15px;
.left {
.y {
font-size: 36px;
}
.integer {
font-size: 36px;
}
.decimal {
font-size: 36px;
}
}
.right {
display: none;
}
}
}
}
}
}