xiaoe_mp_npm 0.5.39 → 0.5.40-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 (81) hide show
  1. package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.scss +37 -0
  2. package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.wxss +25 -1
  3. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.scss +215 -0
  4. package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.wxss +360 -36
  5. package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/index.scss +83 -0
  6. package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/index.wxss +118 -14
  7. package/miniprogram_dist/ConfirmOrder/components/Invoice/index.scss +51 -0
  8. package/miniprogram_dist/ConfirmOrder/components/Invoice/index.wxss +46 -2
  9. package/miniprogram_dist/ConfirmOrder/components/LeaveWord/index.scss +32 -0
  10. package/miniprogram_dist/ConfirmOrder/components/LeaveWord/index.wxss +18 -2
  11. package/miniprogram_dist/ConfirmOrder/components/PayBar/index.scss +54 -0
  12. package/miniprogram_dist/ConfirmOrder/components/PayBar/index.wxss +55 -3
  13. package/miniprogram_dist/ConfirmOrder/components/PayDetail/index.scss +41 -0
  14. package/miniprogram_dist/ConfirmOrder/components/PayDetail/index.wxss +35 -3
  15. package/miniprogram_dist/CouponList/components/CouponItem/index.js +83 -91
  16. package/miniprogram_dist/CouponList/components/CouponItem/index.scss +130 -132
  17. package/miniprogram_dist/CouponList/components/CouponItem/index.wxss +624 -78
  18. package/miniprogram_dist/CouponList/couponColumn/index.scss +106 -0
  19. package/miniprogram_dist/CouponList/couponColumn/index.wxss +159 -33
  20. package/miniprogram_dist/GoodsItem/index.js +21 -3
  21. package/miniprogram_dist/GoodsItem/index.scss +323 -0
  22. package/miniprogram_dist/GoodsItem/index.wxml +1 -1
  23. package/miniprogram_dist/GoodsItem/index.wxss +630 -85
  24. package/miniprogram_dist/GoodsRecommend/index.scss +154 -0
  25. package/miniprogram_dist/GoodsRecommend/index.wxss +289 -33
  26. package/miniprogram_dist/LiveGoodsList/Header/index.scss +71 -0
  27. package/miniprogram_dist/LiveGoodsList/Header/index.wxss +102 -10
  28. package/miniprogram_dist/LiveGoodsList/index.js +8 -1
  29. package/miniprogram_dist/LiveGoodsList/index.scss +80 -0
  30. package/miniprogram_dist/LiveGoodsList/index.wxml +56 -33
  31. package/miniprogram_dist/LiveGoodsList/index.wxss +123 -19
  32. package/miniprogram_dist/PayModule/button/index.scss +37 -0
  33. package/miniprogram_dist/PayModule/button/index.wxss +32 -4
  34. package/miniprogram_dist/common/utils/index.js +9 -0
  35. package/miniprogram_dist/coupon/components/CouponItem/index.less +1 -0
  36. package/miniprogram_dist/coupon/components/CouponItem/index.scss +239 -0
  37. package/miniprogram_dist/coupon/components/CouponSelect/index.scss +319 -0
  38. package/miniprogram_dist/coupon/components/CouponSelect/index.wxss +594 -59
  39. package/miniprogram_dist/coupon/index.scss +75 -0
  40. package/miniprogram_dist/coupon/index.wxss +119 -15
  41. package/package.json +1 -1
  42. package/src/ConfirmOrder/components/ConfirmOrderContent/index.scss +37 -0
  43. package/src/ConfirmOrder/components/ConfirmOrderContent/index.wxss +29 -1
  44. package/src/ConfirmOrder/components/GoodsInfo/index.scss +215 -0
  45. package/src/ConfirmOrder/components/GoodsInfo/index.wxss +390 -39
  46. package/src/ConfirmOrder/components/IntegralSelect/index.scss +83 -0
  47. package/src/ConfirmOrder/components/IntegralSelect/index.wxss +129 -14
  48. package/src/ConfirmOrder/components/Invoice/index.scss +51 -0
  49. package/src/ConfirmOrder/components/Invoice/index.wxss +52 -2
  50. package/src/ConfirmOrder/components/LeaveWord/index.scss +32 -0
  51. package/src/ConfirmOrder/components/LeaveWord/index.wxss +21 -2
  52. package/src/ConfirmOrder/components/PayBar/index.scss +54 -0
  53. package/src/ConfirmOrder/components/PayBar/index.wxss +60 -3
  54. package/src/ConfirmOrder/components/PayDetail/index.scss +41 -0
  55. package/src/ConfirmOrder/components/PayDetail/index.wxss +39 -3
  56. package/src/CouponList/components/CouponItem/index.js +83 -91
  57. package/src/CouponList/components/CouponItem/index.scss +130 -132
  58. package/src/CouponList/components/CouponItem/index.wxss +625 -84
  59. package/src/CouponList/couponColumn/index.scss +106 -0
  60. package/src/CouponList/couponColumn/index.wxss +173 -33
  61. package/src/GoodsItem/index.js +21 -3
  62. package/src/GoodsItem/index.scss +323 -0
  63. package/src/GoodsItem/index.wxml +1 -1
  64. package/src/GoodsItem/index.wxss +673 -85
  65. package/src/GoodsRecommend/index.scss +154 -0
  66. package/src/GoodsRecommend/index.wxss +311 -33
  67. package/src/LiveGoodsList/Header/index.scss +71 -0
  68. package/src/LiveGoodsList/Header/index.wxss +109 -10
  69. package/src/LiveGoodsList/index.js +8 -1
  70. package/src/LiveGoodsList/index.scss +80 -0
  71. package/src/LiveGoodsList/index.wxml +56 -33
  72. package/src/LiveGoodsList/index.wxss +133 -19
  73. package/src/PayModule/button/index.scss +37 -0
  74. package/src/PayModule/button/index.wxss +35 -4
  75. package/src/common/utils/index.js +9 -0
  76. package/src/coupon/components/CouponItem/index.less +1 -0
  77. package/src/coupon/components/CouponItem/index.scss +239 -0
  78. package/src/coupon/components/CouponSelect/index.scss +319 -0
  79. package/src/coupon/components/CouponSelect/index.wxss +642 -59
  80. package/src/coupon/index.scss +75 -0
  81. package/src/coupon/index.wxss +128 -15
@@ -0,0 +1,239 @@
1
+ $deviceWidth: 750;
2
+ @function vmin($rpx) {
3
+ @return #{$rpx * 100 / $deviceWidth}vmin;
4
+ }
5
+
6
+ @mixin couponNewWrap{
7
+ width: 100%;
8
+ margin-bottom: vmin(26.4);
9
+ margin-left: auto;
10
+ margin-right: auto;
11
+
12
+ .couponNewV2 {
13
+ position: relative;
14
+ display: flex;
15
+ width: 100%;
16
+ height: vmin(224.4);
17
+ margin-left: auto;
18
+ margin-right: auto;
19
+ overflow: hidden;
20
+ border-radius: vmin(8);
21
+ background-color: #fff;
22
+
23
+ // 优惠券不可用样式
24
+ .disabledState{
25
+ background-color: #EEEEEE!important;
26
+ .couponValue{
27
+ background: #CDCDCD!important;
28
+ }
29
+ }
30
+
31
+ .couponValue {
32
+ width: vmin(228);
33
+ height: vmin(224.4);
34
+ background: #FF821F !important;
35
+ box-sizing: border-box;
36
+ border-radius: vmin(8) 0 0 vmin(8);
37
+ .couponPrice {
38
+ position: relative;
39
+ width: 100%;
40
+ height: vmin(99);
41
+ margin: vmin(31) auto vmin(8);
42
+ text-align: center;
43
+ line-height: vmin(99);
44
+ font-size: vmin(97);
45
+ font-weight: 500;
46
+ color: #fff;
47
+ .fontSmall {
48
+ font-size: vmin(53) !important;
49
+ }
50
+ .fontLastSmall{
51
+ font-size: vmin(35) !important;
52
+ }
53
+
54
+ .fixedfont{
55
+ font-size: vmin(26.4) !important;
56
+
57
+ }
58
+ .fixedPercent{
59
+ font-size: vmin(35) !important;
60
+ }
61
+ span {
62
+ position: relative;
63
+ display: inline-block;
64
+ }
65
+ .discountFont,.coupon-symbol{
66
+ font-size: vmin(35);
67
+ margin-left: vmin(2);
68
+ margin-left: -vmin(1);
69
+ }
70
+
71
+ }
72
+
73
+ .couponUseCondition {
74
+ width: 100%;
75
+ overflow: hidden;
76
+ max-height: vmin(88);
77
+ line-height: vmin(40);
78
+ color:#fff;
79
+ text-align: center;
80
+ }
81
+
82
+ .couponMaxDiscountNum {
83
+ width: 100%;
84
+ text-align: center;
85
+ color: #fff;
86
+ margin-bottom: vmin(55);
87
+ font-size: vmin(10);
88
+ }
89
+ }
90
+
91
+ .couponInfo {
92
+ position: relative;
93
+ display: flex;
94
+ flex-direction: column;
95
+ justify-content: space-between;
96
+ width: vmin(374);
97
+ height: 100%;
98
+ overflow: hidden;
99
+ box-sizing: border-box;
100
+ padding: vmin(18) 0 vmin(18) vmin(26.4);
101
+ border-bottom-right-radius: vmin(8);
102
+ border-top-right-radius: vmin(8);
103
+ color:#888888;
104
+ font-size: vmin(22);
105
+ text-align: left;
106
+ span{
107
+ display: inline-block;
108
+ }
109
+ .couponName {
110
+ width: 100%;
111
+ line-height: vmin(33);
112
+ white-space: nowrap;
113
+ overflow: hidden;
114
+ text-overflow: ellipsis;
115
+ margin-bottom: vmin(18);
116
+ color:#505050;
117
+ font-size: vmin(26.4);
118
+ font-weight:500;
119
+ }
120
+ .couponUseTime {
121
+ width: 100%;
122
+ height: vmin(31);
123
+ line-height: vmin(31);
124
+ font-size: vmin(22);
125
+ }
126
+ .noSuperposition{
127
+ color: #FF821F;
128
+ }
129
+ .moreInfo{
130
+ display: flex;
131
+ align-items: center;
132
+ padding: vmin(2) 0;
133
+ }
134
+ .operateBtn{
135
+ width: vmin(26.4);
136
+ height: vmin(26.4);
137
+ cursor: pointer;
138
+ margin-left: vmin(6.6);
139
+ background-size: 100% 100%;
140
+ }
141
+ .retract{
142
+ background: url('../../../common/assets/images/coupon/up.svg') center no-repeat;
143
+ }
144
+ }
145
+
146
+ .couponState {
147
+ position: absolute;
148
+ right: 0;
149
+ width: vmin(132);
150
+ height: 100%;
151
+ .superImg{
152
+ width: vmin(88);
153
+ height: vmin(88);
154
+ background-size: 100% 100%;
155
+ position: absolute;
156
+ right: 0;
157
+ }
158
+ .coupon-choose-box {
159
+ display: flex;
160
+ align-items: center;
161
+ justify-content: center;
162
+ width: 100%;
163
+ height: 100%;
164
+ border-radius: 0 vmin(8) vmin(8) 0;
165
+
166
+ .coupon-choose {
167
+ width: vmin(44);
168
+ height: vmin(44);
169
+ background-size: 100% 100%;
170
+ border-radius: 50%;
171
+ box-sizing: border-box;
172
+ // background: url('../../assets/images/couponSelect/coupon_select.png');
173
+ background-size: 100% 100%;
174
+ }
175
+
176
+ .coupon-unchoosed {
177
+ border: vmin(4) solid #CCC;
178
+ background: none;
179
+ }
180
+ }
181
+ }
182
+ }
183
+
184
+ &:last-child {
185
+ margin-bottom: 0;
186
+ }
187
+
188
+ .detailInfo{
189
+ display: flex;
190
+ align-items: center;
191
+ padding: vmin(35);
192
+ background-color: #FFFAF4;
193
+ box-sizing: border-box;
194
+ border-radius: 0 0 0.53vmin 0.53vmin;
195
+ color: #505050;
196
+ font-size: vmin(22);
197
+ background: #FFFAF4;
198
+ text-align: left;
199
+
200
+ // 详细信息不可用优惠券时的字段
201
+ &.whiteBg{
202
+ background-color: #fff!important;
203
+ }
204
+
205
+ .disabledHint{
206
+ width: vmin(30);
207
+ height: vmin(30);
208
+ margin-right: vmin(8);
209
+ transform: translateY(vmin(6));
210
+ }
211
+
212
+ .instructions {
213
+ font-size: vmin(14);
214
+ color: #505050;
215
+ text {
216
+ white-space: pre-wrap;
217
+ }
218
+ }
219
+ }
220
+ }
221
+
222
+
223
+ .couponNewWrap {
224
+ @include couponNewWrap;
225
+ }
226
+ // 竖屏pad
227
+ @media screen and (min-width: 768px) and (orientation: portrait) {
228
+ $deviceWidth: 1536 !global;
229
+ .couponNewWrap {
230
+ @include couponNewWrap;
231
+ }
232
+ }
233
+ // 横屏pad
234
+ @media screen and (min-height: 768px) and (orientation: landscape) {
235
+ $deviceWidth: 1536 !global;
236
+ .couponNewWrap {
237
+ @include couponNewWrap;
238
+ }
239
+ }
@@ -0,0 +1,319 @@
1
+ @import "../../../common/css/theme.wxss";
2
+
3
+ $deviceWidth: 750;
4
+ @function vmin($rpx) {
5
+ @return #{$rpx * 100 / $deviceWidth}vmin;
6
+ }
7
+
8
+
9
+ @mixin popUp {
10
+ height: 80%;
11
+ border-radius: vmin(26) vmin(26) 0 0;
12
+ }
13
+
14
+ @mixin coupon-select-box {
15
+ display: flex;
16
+ flex-direction: column;
17
+ margin: 0 auto;
18
+ max-width: 100vmin;
19
+ background-color: #F5F6F9;
20
+ border-radius: vmin(26) vmin(26) 0 0;
21
+ user-select: none;
22
+ &.vertical-screen {
23
+ height: 100%;
24
+ }
25
+ &.full-screen {
26
+ height: vmin(562);
27
+ overflow: scroll;
28
+ margin: vmin(97.5) 0;
29
+
30
+ .header-content {
31
+ position: absolute;
32
+ width: 90vmin;
33
+ }
34
+ }
35
+ .coupon-header {
36
+ display: flex;
37
+ flex-direction: column;
38
+ .header-content {
39
+ display: flex;
40
+ flex-direction: row;
41
+ justify-content: space-between;
42
+ align-items: center;
43
+ height: vmin(90);
44
+ padding: 0 vmin(36);
45
+ top: 0;
46
+ left: 0;
47
+ font-size: vmin(32);
48
+ font-weight: 500;
49
+ background-color: #ffffff;
50
+ border-radius: vmin(26) vmin(26) 0 0;
51
+ }
52
+ .promo-code-wrap {
53
+ display: flex;
54
+ justify-content: center;
55
+ align-items: center;
56
+ padding: 0 vmin(36);
57
+ height: vmin(115);
58
+ background-color: #fff;
59
+ .promo-code-input {
60
+ width: vmin(470);
61
+ height: vmin(84);
62
+ padding: 0 vmin(22);
63
+ border: vmin(1) solid #DCDCDC;
64
+ border-right: none;
65
+ border-radius: vmin(8) 0 0 vmin(8);
66
+ color: #333;
67
+ font-size: vmin(30);
68
+ user-select: text;
69
+ box-shadow: none;
70
+ }
71
+ .promo-code-input::-webkit-input-placeholder {
72
+ color: #c8c8c8;
73
+ }
74
+ .promo-code-input:disabled {
75
+ color: #999;
76
+ background-color: #eee;
77
+ }
78
+ .promo-code-btn {
79
+ width: vmin(180);
80
+ height: vmin(84);
81
+ line-height: vmin(84);
82
+ margin: 0;
83
+ border: none;
84
+ border-radius: 0 vmin(8) vmin(8) 0;
85
+ text-align: center;
86
+ color: #fff;
87
+ font-size: vmin(27);
88
+ cursor: pointer;
89
+ }
90
+ }
91
+ .coupon-code-tip {
92
+ display: flex;
93
+ align-items: center;
94
+ padding: 0 vmin(36);
95
+ background-color: #fff;
96
+ height: vmin(40);
97
+ .tips-img {
98
+ margin-right: 0.88vmin;
99
+ width: vmin(30);
100
+ height: vmin(28);
101
+ }
102
+ text {
103
+ font-size: vmin(26);
104
+ color: #999;
105
+ }
106
+ }
107
+ .coupon-tab_warp{
108
+ display: flex;
109
+ justify-items: center;
110
+ align-items: center;
111
+ font-size: vmin(35);
112
+ padding: 0 vmin(36);
113
+ font-weight: 700;
114
+ text-align: center;
115
+ background-color:#fff;
116
+ text{
117
+ display: block;
118
+ }
119
+ .tabItem{
120
+ position: relative;
121
+ width:50%;
122
+ height:vmin(106);
123
+ line-height: vmin(106);
124
+ text-align: center;
125
+ cursor: pointer;
126
+ }
127
+ .greyColor{
128
+ color: #999999;
129
+ font-size: vmin(30);
130
+ font-weight: normal;
131
+ }
132
+ .activeBorder{
133
+ position:absolute;
134
+ bottom:0;
135
+ left:50%;
136
+ transform: translateX(-50%);
137
+ width:vmin(44);
138
+ height:vmin(4);
139
+ background:#09BB07;
140
+ border-radius: vmin(4);
141
+ }
142
+ }
143
+ .coupon-tips {
144
+ display: flex;
145
+ background: #fff;
146
+ align-items: center;
147
+ justify-items: center;
148
+ padding: vmin(10) vmin(36);
149
+ justify-content: space-between;
150
+ .coupon-tips-font {
151
+ line-height: vmin(55);
152
+ font-size: vmin(26);
153
+ font-weight: 500;
154
+ color: #000;
155
+ .coupon-money-num {
156
+ color: #FF4747;
157
+ }
158
+ }
159
+ .coupon-best-combination {
160
+ min-width: vmin(211);
161
+ height: vmin(53);
162
+ text-align: center;
163
+ line-height: vmin(55);
164
+ background: #FF821F;
165
+ border: 0;
166
+ margin: 0;
167
+ border-radius: vmin(44);
168
+ font-size: vmin(26);
169
+ font-weight: 500;
170
+ color: #fff;
171
+ }
172
+ }
173
+ }
174
+ &.vertical-screen {
175
+ .coupon-list {
176
+ overflow: scroll;
177
+ -webkit-overflow-scrolling: touch;
178
+ }
179
+ }
180
+ .coupon-list {
181
+ box-sizing: border-box;
182
+ flex: 1; /* 撑满剩余容器高度 */
183
+ // overflow: scroll;
184
+ // -webkit-overflow-scrolling: touch;
185
+ text-align: center;
186
+ padding: vmin(26) vmin(35) 0;
187
+
188
+ .coupon-item {
189
+ position: relative;
190
+ display: flex;
191
+ margin-bottom: vmin(26);
192
+ border-radius: vmin(8);
193
+ background: #fff;
194
+ }
195
+
196
+ .not-use-coupon {
197
+ display: flex;
198
+ justify-content: space-between;
199
+ align-items: center;
200
+ width: 100%;
201
+ height: vmin(114);
202
+ margin-bottom: vmin(26);
203
+ border-radius: vmin(8);
204
+ background: #fff;
205
+ .not-use-text {
206
+ width: vmin(558);
207
+ padding-left: vmin(35);
208
+ font-size: vmin(30);
209
+ color: #333;
210
+ text-align: left;
211
+ }
212
+ .choose-box {
213
+ display: flex;
214
+ align-items: center;
215
+ justify-content: center;
216
+ width: vmin(132);
217
+ height: 100%;
218
+ .choose-inner {
219
+ width: vmin(40);
220
+ height: vmin(40);
221
+ border-radius: 50%;
222
+ border: vmin(4) solid #ccc;
223
+ }
224
+ .coupon-not-used {
225
+ border: none;
226
+ }
227
+ }
228
+ }
229
+
230
+ }
231
+
232
+ .coupon-bottom {
233
+ height: vmin(100);
234
+ display: flex;
235
+ align-items: center;
236
+ justify-content: center;
237
+ background-color: #fff;
238
+ .coupon-confirm-button {
239
+ height: vmin(80);
240
+ border-radius: vmin(48);
241
+ line-height: vmin(80);
242
+ text-align: center;
243
+ font-size: vmin(30);
244
+ font-weight: 500;
245
+ color: #fff;
246
+ }
247
+ }
248
+ &.vertical-screen {
249
+ .coupon-bottom {
250
+ padding: 0 vmin(36);
251
+ .coupon-confirm-button {
252
+ background: #FF821F;
253
+ width: vmin(754);
254
+ }
255
+ }
256
+ .promo-code-btn {
257
+ background-color: #FF821F !important;
258
+ }
259
+ }
260
+ &.full-screen {
261
+ .coupon-bottom {
262
+ width: 100%;
263
+ position: absolute;
264
+ bottom: 0;
265
+ .coupon-confirm-button {
266
+ background: linear-gradient(270deg, rgba(254,101,0,1) 0%, rgba(255,65,2,1) 100%);
267
+ width: vmin(712);
268
+ }
269
+ }
270
+ .promo-code-btn {
271
+ background: linear-gradient(270deg, rgba(254,101,0,1) 0%, rgba(255,65,2,1) 100%);
272
+ }
273
+ }
274
+ .coupon_emptypage{
275
+ text-align: center;
276
+ margin: vmin(15) 0 vmin(75) 0;
277
+ font-size: vmin(26);
278
+ color:#ADADB4;
279
+ .coupon_emptyImg{
280
+ margin-bottom: vmin(16);
281
+ width: vmin(188);
282
+ height: vmin(188);
283
+ background-size: 100% 100%;
284
+ }
285
+
286
+ }
287
+ }
288
+
289
+ .popUp {
290
+ @include popUp;
291
+ }
292
+
293
+ .coupon-select-box {
294
+ @include coupon-select-box;
295
+ }
296
+ // 竖屏pad
297
+ @media screen and (min-width: 768px) and (orientation: portrait) {
298
+ $deviceWidth: 1536 !global;
299
+
300
+ .popUp {
301
+ @include popUp;
302
+ }
303
+
304
+ .coupon-select-box {
305
+ @include coupon-select-box;
306
+ }
307
+ }
308
+ // 横屏pad
309
+ @media screen and (min-height: 768px) and (orientation: landscape) {
310
+ $deviceWidth: 1536 !global;
311
+
312
+ .popUp {
313
+ @include popUp;
314
+ }
315
+
316
+ .coupon-select-box {
317
+ @include coupon-select-box;
318
+ }
319
+ }