xiaoe_mp_npm 1.0.10 → 1.0.12-alpha1
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 +160 -59
- package/miniprogram_dist/CouponList/components/CouponItem/index.wxml +39 -17
- package/miniprogram_dist/CouponList/components/CouponItem/index.wxss +596 -236
- 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/CustomPopup/index.wxml +9 -7
- 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 +160 -59
- package/src/CouponList/components/CouponItem/index.wxml +39 -17
- 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.wxml +9 -7
- 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,12 +7,72 @@ $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 {
|
|
15
|
-
width: vmin(
|
|
75
|
+
width: vmin(686);
|
|
16
76
|
margin: 0 auto;
|
|
17
77
|
|
|
18
78
|
&.not-pop-card {
|
|
@@ -20,7 +80,7 @@ $deviceWidth: 750;
|
|
|
20
80
|
}
|
|
21
81
|
|
|
22
82
|
.coupon_style1 {
|
|
23
|
-
height: vmin(
|
|
83
|
+
height: vmin(190);
|
|
24
84
|
}
|
|
25
85
|
}
|
|
26
86
|
|
|
@@ -37,28 +97,29 @@ $deviceWidth: 750;
|
|
|
37
97
|
display: flex;
|
|
38
98
|
position: relative;
|
|
39
99
|
width: 100%;
|
|
40
|
-
|
|
100
|
+
background: url('https://commonresource-1252524126.cdn.xiaoeknow.com/image/lw67cw3y0qse.png') center no-repeat;
|
|
101
|
+
background-size: 100% 100%;
|
|
41
102
|
// height: vmin(184);
|
|
42
103
|
.couponValue {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
height: 100%;
|
|
46
|
-
background: rgba(255, 120, 31, 1);
|
|
47
|
-
color: #fff;
|
|
104
|
+
width: vmin(192);
|
|
105
|
+
color: #FF5429;
|
|
48
106
|
// padding: vmin(16);
|
|
107
|
+
box-sizing: border-box;
|
|
49
108
|
display: flex;
|
|
50
109
|
flex-direction: column;
|
|
51
|
-
justify-content: space-around;
|
|
52
110
|
align-items: center;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
111
|
+
justify-content: center;
|
|
112
|
+
position: relative;
|
|
113
|
+
.giftCouponName{
|
|
114
|
+
font-size: vmin(36);
|
|
115
|
+
font-weight: 500;
|
|
116
|
+
}
|
|
56
117
|
.couponPriceWrap {
|
|
57
118
|
position: relative;
|
|
58
119
|
display: flex;
|
|
59
120
|
flex-direction: row;
|
|
60
121
|
align-items: baseline;
|
|
61
|
-
font-weight:
|
|
122
|
+
font-weight: 600;
|
|
62
123
|
|
|
63
124
|
.coupon-symbol {
|
|
64
125
|
margin-right: vmin(4);
|
|
@@ -77,42 +138,48 @@ $deviceWidth: 750;
|
|
|
77
138
|
}
|
|
78
139
|
|
|
79
140
|
.couponUseCondition {
|
|
80
|
-
color:
|
|
141
|
+
color: #FF5429;
|
|
81
142
|
font-size: vmin(24);
|
|
82
143
|
font-weight: 500;
|
|
83
144
|
font-family: "PingFang SC";
|
|
84
145
|
text-align: center;
|
|
85
146
|
line-height: vmin(32);
|
|
147
|
+
padding-top: vmin(16);
|
|
86
148
|
}
|
|
87
149
|
}
|
|
88
150
|
|
|
89
151
|
.couponInfo {
|
|
152
|
+
position: relative;
|
|
90
153
|
display: flex;
|
|
91
154
|
flex-direction: column;
|
|
92
|
-
justify-content:
|
|
93
|
-
width: vmin(
|
|
155
|
+
justify-content: space-around;
|
|
156
|
+
max-width: vmin(340);
|
|
94
157
|
height: 100%;
|
|
95
158
|
box-sizing: border-box;
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
color: rgba(153, 153, 153, 1);
|
|
159
|
+
padding: vmin(16) 0 vmin(16) vmin(26);
|
|
160
|
+
color: #999999;
|
|
99
161
|
font-size: vmin(20);
|
|
100
162
|
line-height: vmin(24);
|
|
101
163
|
font-weight: 400;
|
|
102
164
|
text-align: left;
|
|
103
|
-
border-radius: 0 vmin(16) vmin(16) 0;
|
|
104
165
|
|
|
105
166
|
.couponName {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
line-height: vmin(32);
|
|
109
|
-
height: vmin(32);
|
|
110
|
-
width: vmin(246);
|
|
111
|
-
font-weight: 700;
|
|
112
|
-
margin-bottom: vmin(8);
|
|
167
|
+
width: 100%;
|
|
168
|
+
line-height: vmin(40);
|
|
113
169
|
overflow: hidden;
|
|
114
|
-
white-space: nowrap;
|
|
115
170
|
text-overflow: ellipsis;
|
|
171
|
+
margin-bottom: 2.13vmin;
|
|
172
|
+
color: #333333;
|
|
173
|
+
font-size: vmin(28);
|
|
174
|
+
font-weight: 500;
|
|
175
|
+
display: -webkit-box;
|
|
176
|
+
-webkit-line-clamp: 2;
|
|
177
|
+
-webkit-box-orient: vertical;
|
|
178
|
+
}
|
|
179
|
+
.moreCouponInfo{
|
|
180
|
+
display: flex;
|
|
181
|
+
flex-direction: column;
|
|
182
|
+
justify-content: space-between;
|
|
116
183
|
}
|
|
117
184
|
|
|
118
185
|
.couponUseHint {
|
|
@@ -120,7 +187,7 @@ $deviceWidth: 750;
|
|
|
120
187
|
}
|
|
121
188
|
|
|
122
189
|
.couponUseTime {
|
|
123
|
-
margin-bottom: 4.8vmin;
|
|
190
|
+
// margin-bottom: 4.8vmin;
|
|
124
191
|
}
|
|
125
192
|
|
|
126
193
|
.moreInfo {
|
|
@@ -140,12 +207,17 @@ $deviceWidth: 750;
|
|
|
140
207
|
.couponState {
|
|
141
208
|
position: absolute;
|
|
142
209
|
right: vmin(16);
|
|
143
|
-
|
|
210
|
+
top: 50%;
|
|
211
|
+
transform: translateY(-50%);
|
|
212
|
+
// width: vmin(100);
|
|
144
213
|
height: vmin(48);
|
|
145
214
|
line-height: vmin(48);
|
|
146
|
-
|
|
147
|
-
border:
|
|
148
|
-
|
|
215
|
+
background: #FF5429;
|
|
216
|
+
border-radius: vmin(48);
|
|
217
|
+
text-align: center;
|
|
218
|
+
color: #fff;
|
|
219
|
+
border: none;
|
|
220
|
+
cursor: pointer;
|
|
149
221
|
|
|
150
222
|
&.fullscreen-btn {
|
|
151
223
|
width: vmin(136);
|
|
@@ -225,7 +297,27 @@ $deviceWidth: 750;
|
|
|
225
297
|
width: 100%;
|
|
226
298
|
height: 100%;
|
|
227
299
|
}
|
|
228
|
-
|
|
300
|
+
.giftCouponInfo{
|
|
301
|
+
display: flex;
|
|
302
|
+
flex-direction: column;
|
|
303
|
+
justify-content: center;
|
|
304
|
+
align-items: baseline;
|
|
305
|
+
color: #FF5429;
|
|
306
|
+
position: relative;
|
|
307
|
+
height: 100%;
|
|
308
|
+
width: vmin(272);
|
|
309
|
+
font-size: vmin(20);
|
|
310
|
+
line-height: vmin(24);
|
|
311
|
+
font-weight: 400;
|
|
312
|
+
padding: 0 vmin(16);
|
|
313
|
+
.giftCouponName{
|
|
314
|
+
font-size: vmin(36);
|
|
315
|
+
font-weight: 500;
|
|
316
|
+
height: vmin(32);
|
|
317
|
+
line-height: vmin(32);
|
|
318
|
+
margin-bottom: vmin(40);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
229
321
|
.couponInfo {
|
|
230
322
|
display: inline-flex;
|
|
231
323
|
flex-direction: column;
|
|
@@ -243,7 +335,7 @@ $deviceWidth: 750;
|
|
|
243
335
|
flex-direction: row;
|
|
244
336
|
align-items: flex-end;
|
|
245
337
|
height: vmin(48);
|
|
246
|
-
|
|
338
|
+
|
|
247
339
|
.couponPriceWrap {
|
|
248
340
|
position: relative;
|
|
249
341
|
display: flex;
|
|
@@ -341,16 +433,17 @@ $deviceWidth: 750;
|
|
|
341
433
|
|
|
342
434
|
@mixin styleType1_wrapper-v {
|
|
343
435
|
&.vertical-screen {
|
|
344
|
-
width: vmin(
|
|
436
|
+
width: vmin(686);
|
|
345
437
|
height: vmin(364);
|
|
346
438
|
margin: 0 auto;
|
|
347
439
|
|
|
348
440
|
&.not-pop-card {
|
|
441
|
+
width: vmin(686);
|
|
349
442
|
margin-bottom: 0;
|
|
350
443
|
}
|
|
351
444
|
|
|
352
445
|
.coupon_style1 {
|
|
353
|
-
height: vmin(
|
|
446
|
+
height: vmin(190);
|
|
354
447
|
}
|
|
355
448
|
}
|
|
356
449
|
|
|
@@ -364,31 +457,33 @@ $deviceWidth: 750;
|
|
|
364
457
|
}
|
|
365
458
|
|
|
366
459
|
.coupon_style1 {
|
|
367
|
-
display:
|
|
368
|
-
position:
|
|
460
|
+
display: flex;
|
|
461
|
+
position: relative;
|
|
369
462
|
width: 100%;
|
|
370
|
-
|
|
463
|
+
background: url('https://commonresource-1252524126.cdn.xiaoeknow.com/image/lw67cw3y0qse.png') center no-repeat;
|
|
464
|
+
background-size: 100% 100%;
|
|
371
465
|
// height: vmin(184);
|
|
372
466
|
.couponValue {
|
|
373
467
|
padding: vmin(25) 0;
|
|
374
468
|
min-width: unset;
|
|
375
|
-
|
|
376
|
-
background: rgba(255, 120, 31, 1);
|
|
377
|
-
color: #fff;
|
|
469
|
+
color: #FF5429;
|
|
378
470
|
// padding: vmin(16);
|
|
379
471
|
display: flex;
|
|
380
472
|
flex-direction: column;
|
|
381
|
-
justify-content: space-around;
|
|
382
473
|
align-items: center;
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
474
|
+
justify-content: center;
|
|
475
|
+
position: relative;
|
|
476
|
+
|
|
477
|
+
.giftCouponName{
|
|
478
|
+
font-size: vmin(36);
|
|
479
|
+
font-weight: 500;
|
|
480
|
+
}
|
|
386
481
|
.couponPriceWrap {
|
|
387
482
|
position: relative;
|
|
388
483
|
display: flex;
|
|
389
484
|
flex-direction: row;
|
|
390
|
-
align-items:
|
|
391
|
-
font-weight:
|
|
485
|
+
align-items: baseline;
|
|
486
|
+
font-weight: 600;
|
|
392
487
|
|
|
393
488
|
.coupon-symbol {
|
|
394
489
|
margin-right: vmin(4);
|
|
@@ -438,14 +533,12 @@ $deviceWidth: 750;
|
|
|
438
533
|
width: 100%;
|
|
439
534
|
height: vmin(192);
|
|
440
535
|
box-sizing: border-box;
|
|
441
|
-
background: rgba(255, 255, 255, 1);
|
|
442
536
|
padding: vmin(16);
|
|
443
|
-
color:
|
|
537
|
+
color: #999999;
|
|
444
538
|
font-size: vmin(20);
|
|
445
539
|
line-height: vmin(20);
|
|
446
540
|
font-weight: 400;
|
|
447
541
|
text-align: left;
|
|
448
|
-
border-radius: 0 0 vmin(16) vmin(16);
|
|
449
542
|
|
|
450
543
|
.couponName {
|
|
451
544
|
color: #333;
|
|
@@ -453,11 +546,14 @@ $deviceWidth: 750;
|
|
|
453
546
|
line-height: vmin(32);
|
|
454
547
|
height: vmin(32);
|
|
455
548
|
width: vmin(232);
|
|
456
|
-
font-weight:
|
|
549
|
+
font-weight: 500;
|
|
457
550
|
margin-bottom: vmin(8);
|
|
458
551
|
overflow: hidden;
|
|
459
|
-
white-space: nowrap;
|
|
552
|
+
// white-space: nowrap;
|
|
460
553
|
text-overflow: ellipsis;
|
|
554
|
+
display: -webkit-box;
|
|
555
|
+
-webkit-line-clamp: 2;
|
|
556
|
+
-webkit-box-orient: vertical;
|
|
461
557
|
}
|
|
462
558
|
|
|
463
559
|
.couponUseHint {
|
|
@@ -472,12 +568,17 @@ $deviceWidth: 750;
|
|
|
472
568
|
.couponState {
|
|
473
569
|
position: absolute;
|
|
474
570
|
right: vmin(16);
|
|
475
|
-
|
|
571
|
+
top: 50%;
|
|
572
|
+
transform: translateY(-50%);
|
|
573
|
+
// width: vmin(100);
|
|
476
574
|
height: vmin(48);
|
|
477
575
|
line-height: vmin(48);
|
|
478
|
-
|
|
479
|
-
border:
|
|
480
|
-
|
|
576
|
+
background: #FF5429;
|
|
577
|
+
border-radius: vmin(48);
|
|
578
|
+
text-align: center;
|
|
579
|
+
color: #fff;
|
|
580
|
+
border: none;
|
|
581
|
+
cursor: pointer;
|
|
481
582
|
|
|
482
583
|
// &.fullscreen-btn {
|
|
483
584
|
// width: vmin(136);
|
|
@@ -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}}">
|
|
@@ -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>
|