xiaoe_mp_npm 1.0.11 → 1.0.12-alpha2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/miniprogram_dist/CouponList/components/CouponItem/index.scss +235 -75
- package/miniprogram_dist/CouponList/components/CouponItem/index.wxml +40 -18
- package/miniprogram_dist/CouponList/components/CouponItem/index.wxss +890 -298
- package/miniprogram_dist/CouponReceivePopup/index.scss +26 -2
- package/miniprogram_dist/CouponReceivePopup/index.wxml +17 -5
- package/miniprogram_dist/CouponReceivePopup/index.wxss +24 -0
- package/miniprogram_dist/Task/TaskBubble/index.json +3 -3
- package/miniprogram_dist/Task/TaskBubble/index.scss +125 -125
- package/miniprogram_dist/Task/TaskBubble/index.wxml +22 -22
- package/miniprogram_dist/Task/TaskIcon/index.js +29 -29
- package/miniprogram_dist/Task/TaskIcon/index.json +4 -4
- package/miniprogram_dist/Task/TaskIcon/index.scss +70 -70
- package/miniprogram_dist/Task/TaskIcon/index.wxml +5 -5
- package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.js +39 -39
- package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.json +6 -6
- package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.scss +39 -39
- package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.wxml +19 -19
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.js +297 -297
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.json +5 -5
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.scss +139 -139
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.wxml +47 -47
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.wxs +7 -7
- package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.js +184 -184
- package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.json +7 -7
- package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.scss +66 -66
- package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.wxml +39 -39
- package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.js +78 -78
- package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.json +9 -9
- package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.scss +62 -62
- package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.wxml +42 -42
- package/miniprogram_dist/Task/TaskPopup/index.js +126 -126
- package/miniprogram_dist/Task/TaskPopup/index.json +8 -8
- package/miniprogram_dist/Task/TaskPopup/index.scss +140 -140
- package/miniprogram_dist/Task/taskReceivePopup/coupon/index.js +52 -52
- package/miniprogram_dist/Task/taskReceivePopup/coupon/index.json +6 -6
- package/miniprogram_dist/Task/taskReceivePopup/coupon/index.scss +91 -91
- package/miniprogram_dist/Task/taskReceivePopup/coupon/index.wxml +58 -58
- package/miniprogram_dist/Task/taskReceivePopup/coupon/index.wxs +48 -48
- package/miniprogram_dist/Task/taskReceivePopup/customPrizes/index.js +44 -44
- package/miniprogram_dist/Task/taskReceivePopup/customPrizes/index.json +6 -6
- package/miniprogram_dist/Task/taskReceivePopup/customPrizes/index.wxs +48 -48
- package/miniprogram_dist/Task/taskReceivePopup/index.js +34 -34
- package/miniprogram_dist/Task/taskReceivePopup/index.json +13 -13
- package/miniprogram_dist/Task/taskReceivePopup/index.wxml +25 -25
- package/miniprogram_dist/Task/taskReceivePopup/integral/index.js +61 -61
- package/miniprogram_dist/Task/taskReceivePopup/integral/index.json +6 -6
- package/miniprogram_dist/Task/taskReceivePopup/integral/index.scss +60 -60
- package/miniprogram_dist/Task/taskReceivePopup/integral/index.wxml +12 -12
- package/package.json +1 -1
- package/src/CouponList/components/CouponItem/index.scss +235 -75
- package/src/CouponList/components/CouponItem/index.wxml +40 -18
- package/src/CouponList/components/CouponItem/index.wxss +1 -1715
- package/src/CouponReceivePopup/index.scss +26 -2
- package/src/CouponReceivePopup/index.wxml +17 -5
- package/src/CouponReceivePopup/index.wxss +1 -1
- package/src/CustomPopup/index.wxss +22 -22
- package/src/Task/TaskBubble/index.json +3 -3
- package/src/Task/TaskBubble/index.scss +125 -125
- package/src/Task/TaskBubble/index.wxml +22 -22
- package/src/Task/TaskIcon/index.js +29 -29
- package/src/Task/TaskIcon/index.json +4 -4
- package/src/Task/TaskIcon/index.scss +70 -70
- package/src/Task/TaskIcon/index.wxml +5 -5
- package/src/Task/TaskIcon/index.wxss +130 -130
- package/src/Task/TaskPopup/component/RewardList/index.js +39 -39
- package/src/Task/TaskPopup/component/RewardList/index.json +6 -6
- package/src/Task/TaskPopup/component/RewardList/index.scss +39 -39
- package/src/Task/TaskPopup/component/RewardList/index.wxml +19 -19
- package/src/Task/TaskPopup/component/RewardList/index.wxss +18 -18
- package/src/Task/TaskPopup/component/TaskItem/index.js +297 -297
- package/src/Task/TaskPopup/component/TaskItem/index.json +5 -5
- package/src/Task/TaskPopup/component/TaskItem/index.scss +139 -139
- package/src/Task/TaskPopup/component/TaskItem/index.wxml +47 -47
- package/src/Task/TaskPopup/component/TaskItem/index.wxs +7 -7
- package/src/Task/TaskPopup/component/TaskList/index.js +184 -184
- package/src/Task/TaskPopup/component/TaskList/index.json +7 -7
- package/src/Task/TaskPopup/component/TaskList/index.scss +66 -66
- package/src/Task/TaskPopup/component/TaskList/index.wxml +39 -39
- package/src/Task/TaskPopup/component/TaskList/index.wxss +118 -118
- package/src/Task/TaskPopup/component/TaskType/index.js +78 -78
- package/src/Task/TaskPopup/component/TaskType/index.json +9 -9
- package/src/Task/TaskPopup/component/TaskType/index.scss +62 -62
- package/src/Task/TaskPopup/component/TaskType/index.wxml +42 -42
- package/src/Task/TaskPopup/index.js +126 -126
- package/src/Task/TaskPopup/index.json +8 -8
- package/src/Task/TaskPopup/index.scss +140 -140
- package/src/Task/TaskPopup/index.wxss +1 -1
- package/src/Task/taskReceivePopup/coupon/index.js +52 -52
- package/src/Task/taskReceivePopup/coupon/index.json +6 -6
- package/src/Task/taskReceivePopup/coupon/index.scss +91 -91
- package/src/Task/taskReceivePopup/coupon/index.wxml +58 -58
- package/src/Task/taskReceivePopup/coupon/index.wxs +48 -48
- package/src/Task/taskReceivePopup/coupon/index.wxss +187 -187
- package/src/Task/taskReceivePopup/customPrizes/index.js +44 -44
- package/src/Task/taskReceivePopup/customPrizes/index.json +6 -6
- package/src/Task/taskReceivePopup/customPrizes/index.wxs +48 -48
- package/src/Task/taskReceivePopup/index.js +34 -34
- package/src/Task/taskReceivePopup/index.json +13 -13
- package/src/Task/taskReceivePopup/index.wxml +25 -25
- package/src/Task/taskReceivePopup/index.wxss +1 -1
- package/src/Task/taskReceivePopup/integral/index.js +61 -61
- package/src/Task/taskReceivePopup/integral/index.json +6 -6
- package/src/Task/taskReceivePopup/integral/index.scss +60 -60
- package/src/Task/taskReceivePopup/integral/index.wxml +12 -12
- package/src/Task/taskReceivePopup/integral/index.wxss +94 -94
- package/miniprogram_dist/CouponList/components/CouponItem/index.css +0 -1715
- package/miniprogram_dist/CouponList/components/CouponItem/index.min.css +0 -1
- package/src/CouponList/components/CouponItem/index.css +0 -1715
- package/src/CouponList/components/CouponItem/index.min.css +0 -1
|
@@ -7,8 +7,68 @@ $deviceWidth: 750;
|
|
|
7
7
|
// 互动页优惠券卡片样式
|
|
8
8
|
@mixin styleType1_wrapper {
|
|
9
9
|
&.pop-card {
|
|
10
|
-
width: vmin(
|
|
10
|
+
width: vmin(280);
|
|
11
11
|
margin-bottom: 0;
|
|
12
|
+
position: relative;
|
|
13
|
+
height: 100%;
|
|
14
|
+
&.vertical-screen {
|
|
15
|
+
width: vmin(280);
|
|
16
|
+
height: 100%;
|
|
17
|
+
.coupon_style1 {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
position: relative;
|
|
21
|
+
width: 100%;
|
|
22
|
+
min-height: vmin(400);
|
|
23
|
+
background-image: none;
|
|
24
|
+
.couponValue {
|
|
25
|
+
padding: vmin(40) vmin(16) vmin(16) vmin(16);
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: vmin(200);
|
|
28
|
+
background: rgba(255, 120, 31, 1);
|
|
29
|
+
color: #fff;
|
|
30
|
+
border-radius: vmin(16) vmin(16) 0 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.couponInfo {
|
|
34
|
+
flex: 1;
|
|
35
|
+
background: rgba(255, 255, 255, 1);
|
|
36
|
+
padding: vmin(16) vmin(16) vmin(30) vmin(16);
|
|
37
|
+
border-radius: 0 0 vmin(16) vmin(16);
|
|
38
|
+
|
|
39
|
+
.couponName {
|
|
40
|
+
height: vmin(32);
|
|
41
|
+
line-height: vmin(32);
|
|
42
|
+
font-size: vmin(28);
|
|
43
|
+
width: vmin(244);
|
|
44
|
+
font-weight: 500;
|
|
45
|
+
margin-bottom: vmin(8);
|
|
46
|
+
-webkit-line-clamp: 1;
|
|
47
|
+
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.couponState {
|
|
52
|
+
position: absolute;
|
|
53
|
+
left: vmin(16);
|
|
54
|
+
top: 95%;
|
|
55
|
+
transform: translateY(-95%);
|
|
56
|
+
height: vmin(48);
|
|
57
|
+
line-height: vmin(48);
|
|
58
|
+
border-radius: vmin(8);
|
|
59
|
+
|
|
60
|
+
&.fullscreen-btn {
|
|
61
|
+
width: 90%;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.vertical-btn {
|
|
65
|
+
width: 88%;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
12
72
|
}
|
|
13
73
|
|
|
14
74
|
&.vertical-screen {
|
|
@@ -20,7 +80,37 @@ $deviceWidth: 750;
|
|
|
20
80
|
}
|
|
21
81
|
|
|
22
82
|
.coupon_style1 {
|
|
23
|
-
height: vmin(
|
|
83
|
+
height: vmin(176);
|
|
84
|
+
background: url('https://commonresource-1252524126.cdn.xiaoeknow.com/image/lwho4h4o0bls.png') center no-repeat !important;
|
|
85
|
+
.couponValue {
|
|
86
|
+
width: vmin(190);
|
|
87
|
+
}
|
|
88
|
+
.couponName {
|
|
89
|
+
font-size: vmin(24) !important;
|
|
90
|
+
}
|
|
91
|
+
.couponInfo {
|
|
92
|
+
justify-content: flex-start;
|
|
93
|
+
padding: vmin(16) vmin(22) vmin(16) vmin(26);
|
|
94
|
+
}
|
|
95
|
+
.couponState {
|
|
96
|
+
position: absolute;
|
|
97
|
+
right: vmin(12);
|
|
98
|
+
top: 90%;
|
|
99
|
+
transform: translateY(-90%);
|
|
100
|
+
height: vmin(38);
|
|
101
|
+
line-height: vmin(38);
|
|
102
|
+
background: #FF5429;
|
|
103
|
+
border-radius: vmin(38);
|
|
104
|
+
text-align: center;
|
|
105
|
+
color: #fff;
|
|
106
|
+
border: none;
|
|
107
|
+
cursor: pointer;
|
|
108
|
+
font-size: vmin(24);
|
|
109
|
+
font-weight: 500;
|
|
110
|
+
&.vertical-btn {
|
|
111
|
+
width: vmin(88);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
24
114
|
}
|
|
25
115
|
}
|
|
26
116
|
|
|
@@ -35,39 +125,44 @@ $deviceWidth: 750;
|
|
|
35
125
|
|
|
36
126
|
.coupon_style1 {
|
|
37
127
|
display: flex;
|
|
128
|
+
align-items: center;
|
|
38
129
|
position: relative;
|
|
39
130
|
width: 100%;
|
|
40
|
-
|
|
131
|
+
background: url('https://commonresource-1252524126.cdn.xiaoeknow.com/image/lw67cw3y0qse.png') center no-repeat;
|
|
132
|
+
background-size: 100% 100%;
|
|
41
133
|
// height: vmin(184);
|
|
42
134
|
.couponValue {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
height: 100%;
|
|
46
|
-
background: rgba(255, 120, 31, 1);
|
|
47
|
-
color: #fff;
|
|
135
|
+
width: vmin(192);
|
|
136
|
+
color: #FF5429;
|
|
48
137
|
// padding: vmin(16);
|
|
138
|
+
box-sizing: border-box;
|
|
49
139
|
display: flex;
|
|
50
140
|
flex-direction: column;
|
|
51
|
-
justify-content: space-around;
|
|
52
141
|
align-items: center;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
142
|
+
justify-content: center;
|
|
143
|
+
position: relative;
|
|
144
|
+
.giftCouponName{
|
|
145
|
+
font-size: vmin(36);
|
|
146
|
+
font-weight: 500;
|
|
147
|
+
}
|
|
56
148
|
.couponPriceWrap {
|
|
57
149
|
position: relative;
|
|
58
150
|
display: flex;
|
|
59
151
|
flex-direction: row;
|
|
60
152
|
align-items: baseline;
|
|
61
|
-
font-weight:
|
|
153
|
+
font-weight: 600;
|
|
62
154
|
|
|
63
155
|
.coupon-symbol {
|
|
64
|
-
margin-right: vmin(4);
|
|
156
|
+
// margin-right: vmin(4);
|
|
65
157
|
font-size: vmin(32);
|
|
66
158
|
}
|
|
67
159
|
|
|
68
160
|
.coupon-price {
|
|
69
161
|
display: flex;
|
|
70
162
|
font-size: vmin(80);
|
|
163
|
+
&.discount-percent {
|
|
164
|
+
margin-top: -1.8vmin;
|
|
165
|
+
}
|
|
71
166
|
}
|
|
72
167
|
|
|
73
168
|
.discountFont {
|
|
@@ -77,42 +172,48 @@ $deviceWidth: 750;
|
|
|
77
172
|
}
|
|
78
173
|
|
|
79
174
|
.couponUseCondition {
|
|
80
|
-
color:
|
|
175
|
+
color: #FF5429;
|
|
81
176
|
font-size: vmin(24);
|
|
82
177
|
font-weight: 500;
|
|
83
178
|
font-family: "PingFang SC";
|
|
84
179
|
text-align: center;
|
|
85
180
|
line-height: vmin(32);
|
|
181
|
+
padding-top: vmin(16);
|
|
86
182
|
}
|
|
87
183
|
}
|
|
88
184
|
|
|
89
185
|
.couponInfo {
|
|
186
|
+
flex: 1;
|
|
187
|
+
position: relative;
|
|
90
188
|
display: flex;
|
|
91
189
|
flex-direction: column;
|
|
92
|
-
justify-content:
|
|
93
|
-
width: vmin(
|
|
190
|
+
justify-content: space-around;
|
|
191
|
+
// max-width: vmin(340);
|
|
94
192
|
height: 100%;
|
|
95
193
|
box-sizing: border-box;
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
color: rgba(153, 153, 153, 1);
|
|
194
|
+
padding: vmin(16) 0 vmin(16) vmin(20);
|
|
195
|
+
color: #999999;
|
|
99
196
|
font-size: vmin(20);
|
|
100
197
|
line-height: vmin(24);
|
|
101
198
|
font-weight: 400;
|
|
102
199
|
text-align: left;
|
|
103
|
-
border-radius: 0 vmin(16) vmin(16) 0;
|
|
104
200
|
|
|
105
201
|
.couponName {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
font-weight: 700;
|
|
112
|
-
margin-bottom: vmin(8);
|
|
202
|
+
width: 100%;
|
|
203
|
+
line-height: vmin(40);
|
|
204
|
+
color: #333333;
|
|
205
|
+
font-size: vmin(28);
|
|
206
|
+
font-weight: 500;
|
|
113
207
|
overflow: hidden;
|
|
114
|
-
white-space: nowrap;
|
|
115
208
|
text-overflow: ellipsis;
|
|
209
|
+
display: -webkit-box;
|
|
210
|
+
-webkit-line-clamp: 1;
|
|
211
|
+
-webkit-box-orient: vertical;
|
|
212
|
+
}
|
|
213
|
+
.moreCouponInfo{
|
|
214
|
+
display: flex;
|
|
215
|
+
flex-direction: column;
|
|
216
|
+
justify-content: space-between;
|
|
116
217
|
}
|
|
117
218
|
|
|
118
219
|
.couponUseHint {
|
|
@@ -120,7 +221,7 @@ $deviceWidth: 750;
|
|
|
120
221
|
}
|
|
121
222
|
|
|
122
223
|
.couponUseTime {
|
|
123
|
-
margin-bottom: 4.8vmin;
|
|
224
|
+
// margin-bottom: 4.8vmin;
|
|
124
225
|
}
|
|
125
226
|
|
|
126
227
|
.moreInfo {
|
|
@@ -138,27 +239,28 @@ $deviceWidth: 750;
|
|
|
138
239
|
}
|
|
139
240
|
|
|
140
241
|
.couponState {
|
|
141
|
-
position: absolute;
|
|
142
|
-
right: vmin(16);
|
|
143
|
-
bottom: vmin(16);
|
|
144
242
|
height: vmin(48);
|
|
145
243
|
line-height: vmin(48);
|
|
146
|
-
|
|
147
|
-
border:
|
|
148
|
-
|
|
244
|
+
background: #FF5429;
|
|
245
|
+
border-radius: vmin(48);
|
|
246
|
+
text-align: center;
|
|
247
|
+
color: #fff;
|
|
248
|
+
border: none;
|
|
249
|
+
cursor: pointer;
|
|
250
|
+
margin-right: vmin(10);
|
|
149
251
|
|
|
150
252
|
&.fullscreen-btn {
|
|
151
253
|
width: vmin(136);
|
|
152
254
|
}
|
|
153
255
|
|
|
154
256
|
&.vertical-btn {
|
|
155
|
-
width: vmin(
|
|
257
|
+
width: vmin(106);
|
|
156
258
|
}
|
|
157
259
|
|
|
158
260
|
.couponBtn {
|
|
159
261
|
color: rgba(255, 255, 255, 1);
|
|
160
262
|
font-size: vmin(24);
|
|
161
|
-
font-weight:
|
|
263
|
+
font-weight: 500;
|
|
162
264
|
text-align: center;
|
|
163
265
|
font-family: "PingFang SC";
|
|
164
266
|
}
|
|
@@ -225,7 +327,27 @@ $deviceWidth: 750;
|
|
|
225
327
|
width: 100%;
|
|
226
328
|
height: 100%;
|
|
227
329
|
}
|
|
228
|
-
|
|
330
|
+
.giftCouponInfo{
|
|
331
|
+
display: flex;
|
|
332
|
+
flex-direction: column;
|
|
333
|
+
justify-content: center;
|
|
334
|
+
align-items: baseline;
|
|
335
|
+
color: #FF5429;
|
|
336
|
+
position: relative;
|
|
337
|
+
height: 100%;
|
|
338
|
+
width: vmin(272);
|
|
339
|
+
font-size: vmin(20);
|
|
340
|
+
line-height: vmin(24);
|
|
341
|
+
font-weight: 400;
|
|
342
|
+
padding: 0 vmin(16);
|
|
343
|
+
.giftCouponName{
|
|
344
|
+
font-size: vmin(36);
|
|
345
|
+
font-weight: 500;
|
|
346
|
+
height: vmin(32);
|
|
347
|
+
line-height: vmin(32);
|
|
348
|
+
margin-bottom: vmin(40);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
229
351
|
.couponInfo {
|
|
230
352
|
display: inline-flex;
|
|
231
353
|
flex-direction: column;
|
|
@@ -243,7 +365,7 @@ $deviceWidth: 750;
|
|
|
243
365
|
flex-direction: row;
|
|
244
366
|
align-items: flex-end;
|
|
245
367
|
height: vmin(48);
|
|
246
|
-
|
|
368
|
+
|
|
247
369
|
.couponPriceWrap {
|
|
248
370
|
position: relative;
|
|
249
371
|
display: flex;
|
|
@@ -341,16 +463,47 @@ $deviceWidth: 750;
|
|
|
341
463
|
|
|
342
464
|
@mixin styleType1_wrapper-v {
|
|
343
465
|
&.vertical-screen {
|
|
344
|
-
width: vmin(
|
|
345
|
-
height: vmin(
|
|
466
|
+
width: vmin(476);
|
|
467
|
+
height: vmin(176);
|
|
346
468
|
margin: 0 auto;
|
|
347
469
|
|
|
348
470
|
&.not-pop-card {
|
|
471
|
+
width: vmin(476);
|
|
349
472
|
margin-bottom: 0;
|
|
350
473
|
}
|
|
351
474
|
|
|
352
475
|
.coupon_style1 {
|
|
353
|
-
height: vmin(
|
|
476
|
+
height: vmin(176);
|
|
477
|
+
background: url('https://commonresource-1252524126.cdn.xiaoeknow.com/image/lwho4h4o0bls.png') center no-repeat !important;
|
|
478
|
+
.couponValue {
|
|
479
|
+
width: vmin(190);
|
|
480
|
+
}
|
|
481
|
+
.couponName {
|
|
482
|
+
font-size: vmin(24) !important;
|
|
483
|
+
}
|
|
484
|
+
.couponInfo {
|
|
485
|
+
justify-content: flex-start;
|
|
486
|
+
padding: vmin(16) vmin(22) vmin(16) vmin(26);
|
|
487
|
+
}
|
|
488
|
+
.couponState {
|
|
489
|
+
position: absolute;
|
|
490
|
+
right: vmin(12);
|
|
491
|
+
top: 90%;
|
|
492
|
+
transform: translateY(-90%);
|
|
493
|
+
height: vmin(38);
|
|
494
|
+
line-height: vmin(38);
|
|
495
|
+
background: #FF5429;
|
|
496
|
+
border-radius: vmin(38);
|
|
497
|
+
text-align: center;
|
|
498
|
+
color: #fff;
|
|
499
|
+
border: none;
|
|
500
|
+
cursor: pointer;
|
|
501
|
+
font-size: vmin(24);
|
|
502
|
+
font-weight: 500;
|
|
503
|
+
&.vertical-btn {
|
|
504
|
+
width: vmin(88);
|
|
505
|
+
}
|
|
506
|
+
}
|
|
354
507
|
}
|
|
355
508
|
}
|
|
356
509
|
|
|
@@ -364,31 +517,34 @@ $deviceWidth: 750;
|
|
|
364
517
|
}
|
|
365
518
|
|
|
366
519
|
.coupon_style1 {
|
|
367
|
-
display:
|
|
368
|
-
|
|
520
|
+
display: flex;
|
|
521
|
+
align-items: center;
|
|
522
|
+
position: relative;
|
|
369
523
|
width: 100%;
|
|
370
|
-
|
|
524
|
+
background: url('https://commonresource-1252524126.cdn.xiaoeknow.com/image/lw67cw3y0qse.png') center no-repeat;
|
|
525
|
+
background-size: 100% 100%;
|
|
371
526
|
// height: vmin(184);
|
|
372
527
|
.couponValue {
|
|
373
528
|
padding: vmin(25) 0;
|
|
374
529
|
min-width: unset;
|
|
375
|
-
|
|
376
|
-
background: rgba(255, 120, 31, 1);
|
|
377
|
-
color: #fff;
|
|
530
|
+
color: #FF5429;
|
|
378
531
|
// padding: vmin(16);
|
|
379
532
|
display: flex;
|
|
380
533
|
flex-direction: column;
|
|
381
|
-
justify-content: space-around;
|
|
382
534
|
align-items: center;
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
535
|
+
justify-content: center;
|
|
536
|
+
position: relative;
|
|
537
|
+
|
|
538
|
+
.giftCouponName{
|
|
539
|
+
font-size: vmin(36);
|
|
540
|
+
font-weight: 500;
|
|
541
|
+
}
|
|
386
542
|
.couponPriceWrap {
|
|
387
543
|
position: relative;
|
|
388
544
|
display: flex;
|
|
389
545
|
flex-direction: row;
|
|
390
|
-
align-items:
|
|
391
|
-
font-weight:
|
|
546
|
+
align-items: baseline;
|
|
547
|
+
font-weight: 600;
|
|
392
548
|
|
|
393
549
|
.coupon-symbol {
|
|
394
550
|
margin-right: vmin(4);
|
|
@@ -400,6 +556,9 @@ $deviceWidth: 750;
|
|
|
400
556
|
align-items: baseline;
|
|
401
557
|
font-weight: 500;
|
|
402
558
|
font-size: vmin(64) !important;
|
|
559
|
+
&.discount-percent {
|
|
560
|
+
margin-top: -1vmin;
|
|
561
|
+
}
|
|
403
562
|
}
|
|
404
563
|
|
|
405
564
|
.coupon-price-long {
|
|
@@ -432,32 +591,32 @@ $deviceWidth: 750;
|
|
|
432
591
|
}
|
|
433
592
|
|
|
434
593
|
.couponInfo {
|
|
594
|
+
flex: 1;
|
|
435
595
|
display: flex;
|
|
436
596
|
flex-direction: column;
|
|
437
597
|
justify-content: flex-start;
|
|
438
|
-
width: 100%;
|
|
439
|
-
height: vmin(192);
|
|
598
|
+
// width: 100%;
|
|
599
|
+
// height: vmin(192);
|
|
600
|
+
height: 100%;
|
|
440
601
|
box-sizing: border-box;
|
|
441
|
-
background: rgba(255, 255, 255, 1);
|
|
442
602
|
padding: vmin(16);
|
|
443
|
-
color:
|
|
603
|
+
color: #999999;
|
|
444
604
|
font-size: vmin(20);
|
|
445
605
|
line-height: vmin(20);
|
|
446
606
|
font-weight: 400;
|
|
447
607
|
text-align: left;
|
|
448
|
-
border-radius: 0 0 vmin(16) vmin(16);
|
|
449
608
|
|
|
450
609
|
.couponName {
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
font-weight: 700;
|
|
457
|
-
margin-bottom: vmin(8);
|
|
610
|
+
width: 100%;
|
|
611
|
+
line-height: vmin(40);
|
|
612
|
+
color: #333333;
|
|
613
|
+
font-size: vmin(28);
|
|
614
|
+
font-weight: 500;
|
|
458
615
|
overflow: hidden;
|
|
459
|
-
white-space: nowrap;
|
|
460
616
|
text-overflow: ellipsis;
|
|
617
|
+
display: -webkit-box;
|
|
618
|
+
-webkit-line-clamp: 1;
|
|
619
|
+
-webkit-box-orient: vertical;
|
|
461
620
|
}
|
|
462
621
|
|
|
463
622
|
.couponUseHint {
|
|
@@ -470,20 +629,21 @@ $deviceWidth: 750;
|
|
|
470
629
|
}
|
|
471
630
|
|
|
472
631
|
.couponState {
|
|
473
|
-
position: absolute;
|
|
474
|
-
right: vmin(16);
|
|
475
|
-
bottom: vmin(16);
|
|
476
632
|
height: vmin(48);
|
|
477
633
|
line-height: vmin(48);
|
|
478
|
-
|
|
479
|
-
border:
|
|
480
|
-
|
|
634
|
+
background: #FF5429;
|
|
635
|
+
border-radius: vmin(48);
|
|
636
|
+
text-align: center;
|
|
637
|
+
color: #fff;
|
|
638
|
+
border: none;
|
|
639
|
+
cursor: pointer;
|
|
640
|
+
margin-right: vmin(10);
|
|
481
641
|
|
|
482
642
|
// &.fullscreen-btn {
|
|
483
643
|
// width: vmin(136);
|
|
484
644
|
// }
|
|
485
645
|
&.vertical-btn {
|
|
486
|
-
width: vmin(
|
|
646
|
+
width: vmin(106);
|
|
487
647
|
}
|
|
488
648
|
|
|
489
649
|
.couponBtn {
|
|
@@ -6,7 +6,10 @@
|
|
|
6
6
|
catchtap
|
|
7
7
|
>
|
|
8
8
|
<view class="coupon_style1" catchtap="getCouponFunction">
|
|
9
|
-
<view class="couponValue">
|
|
9
|
+
<view wx:if="{{item.coupon_type == 6}}" class="couponValue">
|
|
10
|
+
<view class="giftCouponName">礼品券</view>
|
|
11
|
+
</view>
|
|
12
|
+
<view wx:else class="couponValue">
|
|
10
13
|
<view class="couponPriceWrap {{item.discount_way == 2 && aliveMode?'couponPriceWrap-discount-v':''}}">
|
|
11
14
|
<!-- discount_way优惠方式 1-满减券 2-折扣券 -->
|
|
12
15
|
<block wx:if="{{item.discount_way == 1}}">
|
|
@@ -17,7 +20,7 @@
|
|
|
17
20
|
</view>
|
|
18
21
|
</block>
|
|
19
22
|
<block wx:if="{{item.discount_way == 2}}">
|
|
20
|
-
<view class="coupon-price">
|
|
23
|
+
<view class="coupon-price discount-percent">
|
|
21
24
|
<view>{{price.ToFilter(item.discount_percent, false)}}</view>
|
|
22
25
|
<view wx:if="{{item.discount_percent % 10 != 0 && !aliveMode}}">.{{ price.fixedFont(item.discount_percent, false) }}</view>
|
|
23
26
|
</view>
|
|
@@ -38,24 +41,29 @@
|
|
|
38
41
|
<view class="couponName">
|
|
39
42
|
{{item.title}}
|
|
40
43
|
</view>
|
|
41
|
-
<
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
44
|
+
<view class="moreCouponInfo" wx:if="{{item.coupon_type != 6}}">
|
|
45
|
+
<text class="couponUseHint"
|
|
46
|
+
wx:if="{{item.type == 0}}">部分商品可用</text>
|
|
47
|
+
<text class="couponUseHint"
|
|
48
|
+
wx:if="{{item.type == 2}}">部分商品不可用</text>
|
|
49
|
+
<text class="couponUseHint"
|
|
50
|
+
wx:if="{{item.type == 1}}">全部商品可用</text>
|
|
51
|
+
<text class="couponUseTime"
|
|
52
|
+
wx:if="{{item.valid_day}}">{{ item.valid_after == 1 ? '领取次日' : '自领取起' }}{{ item.valid_day }}天内有效</text>
|
|
53
|
+
<text class="couponUseTime"
|
|
54
|
+
wx:if="{{!item.valid_day && item.valid_at && item.invalid_at}}">{{ time.formatDateToMinte(item.invalid_at) }}到期</text>
|
|
55
|
+
</view>
|
|
56
|
+
<view wx:else>
|
|
57
|
+
<text class="couponUseTime"
|
|
58
|
+
wx:if="{{!item.valid_day && item.valid_at && item.invalid_at}}">{{ time.formatDateToMinte(item.invalid_at) }}到期</text>
|
|
59
|
+
</view>
|
|
60
|
+
<!-- <view wx:if="{{item.instructions != '' && !isFullScreenPopCard}}"
|
|
53
61
|
class="moreInfo"
|
|
54
62
|
catchtap="handleLook">
|
|
55
63
|
<text>使用说明</text>
|
|
56
64
|
<image src='../../../common/assets/images/coupon/{{is_viewUsingInfo?"up":"down"}}.svg'
|
|
57
65
|
class="operateBtn" />
|
|
58
|
-
</view>
|
|
66
|
+
</view> -->
|
|
59
67
|
</view>
|
|
60
68
|
|
|
61
69
|
<!-- 右边优惠券领用状态 -->
|
|
@@ -99,7 +107,13 @@
|
|
|
99
107
|
<image src="../../../common/assets/images/coupon/coupon_bg.png"
|
|
100
108
|
class="coupons-styles2-bg" />
|
|
101
109
|
<!-- 左边优惠券信息,包括价值,门槛和有效日期 -->
|
|
102
|
-
<view class="
|
|
110
|
+
<view wx:if="{{item.coupon_type == 6}}" class="giftCouponInfo">
|
|
111
|
+
<view class="giftCouponName">礼品券</view>
|
|
112
|
+
<view wx:if="{{!item.valid_day && item.valid_at && item.invalid_at}}">
|
|
113
|
+
{{ time.formatDateToMinte(item.invalid_at) }}到期
|
|
114
|
+
</view>
|
|
115
|
+
</view>
|
|
116
|
+
<view wx:else class="couponInfo">
|
|
103
117
|
<view class="couponInfoTop">
|
|
104
118
|
<view class="couponPriceWrap">
|
|
105
119
|
<!-- discount_way优惠方式 1-满减券 2-折扣券 -->
|
|
@@ -130,7 +144,7 @@
|
|
|
130
144
|
<view class="couponUseTime"
|
|
131
145
|
wx:if="{{item.valid_day}}">{{ item.valid_after == 1 ? '领取次日' : '自领取起' }}{{ item.valid_day }}天内有效</view>
|
|
132
146
|
<view class="couponUseTime"
|
|
133
|
-
wx:if="{{!item.valid_day && item.valid_at && item.invalid_at}}">{{ time.
|
|
147
|
+
wx:if="{{!item.valid_day && item.valid_at && item.invalid_at}}">{{ time.formatDateToMinte(item.invalid_at) }}到期</view>
|
|
134
148
|
</view>
|
|
135
149
|
</view>
|
|
136
150
|
<!-- 右边优惠券领用状态 -->
|
|
@@ -196,5 +210,13 @@
|
|
|
196
210
|
return date;
|
|
197
211
|
}
|
|
198
212
|
}
|
|
199
|
-
|
|
213
|
+
// 时间精确到分
|
|
214
|
+
var formatDateToMinte = function(date) {
|
|
215
|
+
var lastIndex = date.lastIndexOf(":");
|
|
216
|
+
return date.substring(0, lastIndex).replace(getRegExp('-','g'), '.');
|
|
217
|
+
};
|
|
218
|
+
module.exports = {
|
|
219
|
+
formatDate: formatDate,
|
|
220
|
+
formatDateToMinte: formatDateToMinte
|
|
221
|
+
};
|
|
200
222
|
</wxs>
|