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.
Files changed (109) hide show
  1. package/miniprogram_dist/CouponList/components/CouponItem/index.scss +235 -75
  2. package/miniprogram_dist/CouponList/components/CouponItem/index.wxml +40 -18
  3. package/miniprogram_dist/CouponList/components/CouponItem/index.wxss +890 -298
  4. package/miniprogram_dist/CouponReceivePopup/index.scss +26 -2
  5. package/miniprogram_dist/CouponReceivePopup/index.wxml +17 -5
  6. package/miniprogram_dist/CouponReceivePopup/index.wxss +24 -0
  7. package/miniprogram_dist/Task/TaskBubble/index.json +3 -3
  8. package/miniprogram_dist/Task/TaskBubble/index.scss +125 -125
  9. package/miniprogram_dist/Task/TaskBubble/index.wxml +22 -22
  10. package/miniprogram_dist/Task/TaskIcon/index.js +29 -29
  11. package/miniprogram_dist/Task/TaskIcon/index.json +4 -4
  12. package/miniprogram_dist/Task/TaskIcon/index.scss +70 -70
  13. package/miniprogram_dist/Task/TaskIcon/index.wxml +5 -5
  14. package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.js +39 -39
  15. package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.json +6 -6
  16. package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.scss +39 -39
  17. package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.wxml +19 -19
  18. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.js +297 -297
  19. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.json +5 -5
  20. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.scss +139 -139
  21. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.wxml +47 -47
  22. package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.wxs +7 -7
  23. package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.js +184 -184
  24. package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.json +7 -7
  25. package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.scss +66 -66
  26. package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.wxml +39 -39
  27. package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.js +78 -78
  28. package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.json +9 -9
  29. package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.scss +62 -62
  30. package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.wxml +42 -42
  31. package/miniprogram_dist/Task/TaskPopup/index.js +126 -126
  32. package/miniprogram_dist/Task/TaskPopup/index.json +8 -8
  33. package/miniprogram_dist/Task/TaskPopup/index.scss +140 -140
  34. package/miniprogram_dist/Task/taskReceivePopup/coupon/index.js +52 -52
  35. package/miniprogram_dist/Task/taskReceivePopup/coupon/index.json +6 -6
  36. package/miniprogram_dist/Task/taskReceivePopup/coupon/index.scss +91 -91
  37. package/miniprogram_dist/Task/taskReceivePopup/coupon/index.wxml +58 -58
  38. package/miniprogram_dist/Task/taskReceivePopup/coupon/index.wxs +48 -48
  39. package/miniprogram_dist/Task/taskReceivePopup/customPrizes/index.js +44 -44
  40. package/miniprogram_dist/Task/taskReceivePopup/customPrizes/index.json +6 -6
  41. package/miniprogram_dist/Task/taskReceivePopup/customPrizes/index.wxs +48 -48
  42. package/miniprogram_dist/Task/taskReceivePopup/index.js +34 -34
  43. package/miniprogram_dist/Task/taskReceivePopup/index.json +13 -13
  44. package/miniprogram_dist/Task/taskReceivePopup/index.wxml +25 -25
  45. package/miniprogram_dist/Task/taskReceivePopup/integral/index.js +61 -61
  46. package/miniprogram_dist/Task/taskReceivePopup/integral/index.json +6 -6
  47. package/miniprogram_dist/Task/taskReceivePopup/integral/index.scss +60 -60
  48. package/miniprogram_dist/Task/taskReceivePopup/integral/index.wxml +12 -12
  49. package/package.json +1 -1
  50. package/src/CouponList/components/CouponItem/index.scss +235 -75
  51. package/src/CouponList/components/CouponItem/index.wxml +40 -18
  52. package/src/CouponList/components/CouponItem/index.wxss +1 -1715
  53. package/src/CouponReceivePopup/index.scss +26 -2
  54. package/src/CouponReceivePopup/index.wxml +17 -5
  55. package/src/CouponReceivePopup/index.wxss +1 -1
  56. package/src/CustomPopup/index.wxss +22 -22
  57. package/src/Task/TaskBubble/index.json +3 -3
  58. package/src/Task/TaskBubble/index.scss +125 -125
  59. package/src/Task/TaskBubble/index.wxml +22 -22
  60. package/src/Task/TaskIcon/index.js +29 -29
  61. package/src/Task/TaskIcon/index.json +4 -4
  62. package/src/Task/TaskIcon/index.scss +70 -70
  63. package/src/Task/TaskIcon/index.wxml +5 -5
  64. package/src/Task/TaskIcon/index.wxss +130 -130
  65. package/src/Task/TaskPopup/component/RewardList/index.js +39 -39
  66. package/src/Task/TaskPopup/component/RewardList/index.json +6 -6
  67. package/src/Task/TaskPopup/component/RewardList/index.scss +39 -39
  68. package/src/Task/TaskPopup/component/RewardList/index.wxml +19 -19
  69. package/src/Task/TaskPopup/component/RewardList/index.wxss +18 -18
  70. package/src/Task/TaskPopup/component/TaskItem/index.js +297 -297
  71. package/src/Task/TaskPopup/component/TaskItem/index.json +5 -5
  72. package/src/Task/TaskPopup/component/TaskItem/index.scss +139 -139
  73. package/src/Task/TaskPopup/component/TaskItem/index.wxml +47 -47
  74. package/src/Task/TaskPopup/component/TaskItem/index.wxs +7 -7
  75. package/src/Task/TaskPopup/component/TaskList/index.js +184 -184
  76. package/src/Task/TaskPopup/component/TaskList/index.json +7 -7
  77. package/src/Task/TaskPopup/component/TaskList/index.scss +66 -66
  78. package/src/Task/TaskPopup/component/TaskList/index.wxml +39 -39
  79. package/src/Task/TaskPopup/component/TaskList/index.wxss +118 -118
  80. package/src/Task/TaskPopup/component/TaskType/index.js +78 -78
  81. package/src/Task/TaskPopup/component/TaskType/index.json +9 -9
  82. package/src/Task/TaskPopup/component/TaskType/index.scss +62 -62
  83. package/src/Task/TaskPopup/component/TaskType/index.wxml +42 -42
  84. package/src/Task/TaskPopup/index.js +126 -126
  85. package/src/Task/TaskPopup/index.json +8 -8
  86. package/src/Task/TaskPopup/index.scss +140 -140
  87. package/src/Task/TaskPopup/index.wxss +1 -1
  88. package/src/Task/taskReceivePopup/coupon/index.js +52 -52
  89. package/src/Task/taskReceivePopup/coupon/index.json +6 -6
  90. package/src/Task/taskReceivePopup/coupon/index.scss +91 -91
  91. package/src/Task/taskReceivePopup/coupon/index.wxml +58 -58
  92. package/src/Task/taskReceivePopup/coupon/index.wxs +48 -48
  93. package/src/Task/taskReceivePopup/coupon/index.wxss +187 -187
  94. package/src/Task/taskReceivePopup/customPrizes/index.js +44 -44
  95. package/src/Task/taskReceivePopup/customPrizes/index.json +6 -6
  96. package/src/Task/taskReceivePopup/customPrizes/index.wxs +48 -48
  97. package/src/Task/taskReceivePopup/index.js +34 -34
  98. package/src/Task/taskReceivePopup/index.json +13 -13
  99. package/src/Task/taskReceivePopup/index.wxml +25 -25
  100. package/src/Task/taskReceivePopup/index.wxss +1 -1
  101. package/src/Task/taskReceivePopup/integral/index.js +61 -61
  102. package/src/Task/taskReceivePopup/integral/index.json +6 -6
  103. package/src/Task/taskReceivePopup/integral/index.scss +60 -60
  104. package/src/Task/taskReceivePopup/integral/index.wxml +12 -12
  105. package/src/Task/taskReceivePopup/integral/index.wxss +94 -94
  106. package/miniprogram_dist/CouponList/components/CouponItem/index.css +0 -1715
  107. package/miniprogram_dist/CouponList/components/CouponItem/index.min.css +0 -1
  108. package/src/CouponList/components/CouponItem/index.css +0 -1715
  109. 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(484);
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(184);
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
- padding: vmin(16);
44
- min-width: vmin(186);
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
- box-sizing: border-box;
54
- border-radius: vmin(16) 0 0 vmin(16);
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: 700;
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: rgba(255, 255, 255, 1);
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: flex-start;
93
- width: vmin(510);
190
+ justify-content: space-around;
191
+ // max-width: vmin(340);
94
192
  height: 100%;
95
193
  box-sizing: border-box;
96
- background: rgba(255, 255, 255, 1);
97
- padding: vmin(16) 0 vmin(16) vmin(16);
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
- color: rgba(51, 51, 51, 1);
107
- font-size: vmin(24);
108
- line-height: vmin(32);
109
- height: vmin(32);
110
- width: vmin(246);
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
- border-radius: vmin(8);
147
- border: 0;
148
- background: rgba(255, 120, 31, 1);
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(112);
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: 700;
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(264);
345
- height: vmin(364);
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(172);
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: block;
368
- position: static;
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
- height: vmin(172);
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
- box-sizing: border-box;
384
- border-radius: vmin(16) vmin(16) 0 0;
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: center;
391
- font-weight: 700;
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: rgba(153, 153, 153, 1);
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
- color: #333;
452
- font-size: vmin(24);
453
- line-height: vmin(32);
454
- height: vmin(32);
455
- width: vmin(232);
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
- border-radius: vmin(8);
479
- border: 0;
480
- background: rgba(255, 120, 31, 1);
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(232);
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
- <text class="couponUseHint"
42
- wx:if="{{item.type == 0}}">部分商品可用</text>
43
- <text class="couponUseHint"
44
- wx:if="{{item.type == 2}}">部分商品不可用</text>
45
- <text class="couponUseHint"
46
- wx:if="{{item.type == 1}}">全部商品可用</text>
47
- <text class="couponUseTime"
48
- wx:if="{{item.valid_day}}">{{ item.valid_after == 1 ? '领取次日' : '自领取起' }}{{ item.valid_day }}天内有效</text>
49
- <text class="couponUseTime"
50
- wx:if="{{!item.valid_day && item.valid_at && item.invalid_at}}">{{ time.formatDate(item.valid_at) }}-{{ time.formatDate(item.invalid_at) }}</text>
51
-
52
- <view wx:if="{{item.instructions != '' && !isFullScreenPopCard}}"
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="couponInfo">
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.formatDate(item.valid_at) }}-{{ time.formatDate(item.invalid_at) }}</view>
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
- module.exports.formatDate = formatDate;
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>