s-material-react 0.1.1 → 0.1.2

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 (86) hide show
  1. package/css/common/coupon.scss +73 -0
  2. package/css/common/index.scss +2 -0
  3. package/css/common/stepNum.scss +20 -0
  4. package/css/pages/cart.scss +130 -0
  5. package/css/pages/couponList.scss +204 -0
  6. package/css/pages/goodsDetail.scss +262 -2
  7. package/css/pages/index.scss +8 -3
  8. package/css/pages/mine.scss +96 -0
  9. package/css/pages/orderEntry.scss +3 -0
  10. package/css/pages/placeOrder.scss +104 -0
  11. package/css/pages/placeOrderResult.scss +100 -0
  12. package/dist/common/coupon/index.d.ts +2 -0
  13. package/dist/common/coupon/index.js +9 -0
  14. package/dist/common/mock/index.d.ts +283 -0
  15. package/dist/common/mock/index.js +571 -1
  16. package/dist/common/stepNum/index.d.ts +5 -0
  17. package/dist/common/stepNum/index.js +9 -0
  18. package/dist/components/AddressDetail/index.js +31 -16
  19. package/dist/components/AddressDetail/option.d.ts +2 -17
  20. package/dist/components/AddressDetail/option.js +31 -147
  21. package/dist/components/AddressList/index.js +2 -2
  22. package/dist/components/Cart/index.d.ts +2 -0
  23. package/dist/components/Cart/index.js +29 -0
  24. package/dist/components/Cart/useNumStep.d.ts +1 -0
  25. package/dist/components/Cart/useNumStep.js +7 -0
  26. package/dist/components/CouponList/index.d.ts +2 -0
  27. package/dist/components/CouponList/index.js +29 -0
  28. package/dist/components/Cube/index.js +2 -2
  29. package/dist/components/GoodsClassify/components/classifyFloor.js +4 -3
  30. package/dist/components/GoodsClassify/index.js +13 -5
  31. package/dist/components/GoodsDetail/components/goodsDetailCollection.d.ts +2 -0
  32. package/dist/components/GoodsDetail/components/goodsDetailCollection.js +60 -0
  33. package/dist/components/GoodsDetail/components/goodsDetailCoupon.js +5 -5
  34. package/dist/components/GoodsDetail/components/goodsDetailEvaluate.js +3 -2
  35. package/dist/components/GoodsDetail/components/goodsDetailHandleBar.d.ts +2 -0
  36. package/dist/components/GoodsDetail/components/goodsDetailHandleBar.js +7 -0
  37. package/dist/components/GoodsDetail/components/goodsDetailInfo.d.ts +1 -1
  38. package/dist/components/GoodsDetail/components/goodsDetailInfo.js +2 -2
  39. package/dist/components/GoodsDetail/components/goodsDetailPopup.d.ts +2 -0
  40. package/dist/components/GoodsDetail/components/goodsDetailPopup.js +27 -0
  41. package/dist/components/GoodsDetail/components/goodsDetailPromotion.d.ts +1 -1
  42. package/dist/components/GoodsDetail/components/goodsDetailPromotion.js +3 -3
  43. package/dist/components/GoodsDetail/components/goodsDetailSize.d.ts +1 -1
  44. package/dist/components/GoodsDetail/components/goodsDetailSize.js +6 -6
  45. package/dist/components/GoodsDetail/index.js +54 -14
  46. package/dist/components/GoodsGroup/index.js +2 -1
  47. package/dist/components/GoodsList/components/filter.d.ts +1 -0
  48. package/dist/components/GoodsList/components/filter.js +31 -0
  49. package/dist/components/GoodsList/hooks/useGoodsList.d.ts +5 -0
  50. package/dist/components/GoodsList/hooks/useGoodsList.js +49 -0
  51. package/dist/components/GoodsList/index.js +9 -60
  52. package/dist/components/Mine/components/menuList.d.ts +1 -0
  53. package/dist/components/Mine/components/menuList.js +21 -0
  54. package/dist/components/Mine/components/orderEntry.d.ts +1 -0
  55. package/dist/components/Mine/components/orderEntry.js +41 -0
  56. package/dist/components/Mine/index.d.ts +7 -0
  57. package/dist/components/Mine/index.js +14 -0
  58. package/dist/components/Notice/index.js +7 -11
  59. package/dist/components/OrderDetail/index.js +2 -2
  60. package/dist/components/OrderList/components/OrderListItem.js +0 -1
  61. package/dist/components/OrderList/components/orderItem.js +2 -2
  62. package/dist/components/OrderList/index.js +3 -2
  63. package/dist/components/PlaceOrder/index.d.ts +2 -0
  64. package/dist/components/PlaceOrder/index.js +12 -0
  65. package/dist/components/PlaceOrderResult/index.d.ts +2 -0
  66. package/dist/components/PlaceOrderResult/index.js +12 -0
  67. package/dist/components/SearchPage/index.d.ts +7 -1
  68. package/dist/components/SearchPage/index.js +5 -6
  69. package/dist/components/Slider/index.d.ts +10 -10
  70. package/dist/components/index.d.ts +5 -0
  71. package/dist/components/index.js +5 -0
  72. package/dist/options/index.js +1 -0
  73. package/dist/routerMap/index.d.ts +5 -0
  74. package/dist/routerMap/index.js +5 -0
  75. package/dist/utils/checkImgUrl.d.ts +1 -0
  76. package/dist/utils/checkImgUrl.js +9 -0
  77. package/dist/utils/index.d.ts +0 -0
  78. package/dist/utils/index.js +1 -0
  79. package/package.json +3 -5
  80. package/css/pages.zip +0 -0
  81. package/dist/components/AddressDetail/a.d.ts +0 -2
  82. package/dist/components/AddressDetail/a.js +0 -40
  83. package/dist/components/OrderEntry/index.d.ts +0 -2
  84. package/dist/components/OrderEntry/index.js +0 -9
  85. package/dist/components/Stamp/index.d.ts +0 -2
  86. package/dist/components/Stamp/index.js +0 -9
@@ -1,8 +1,20 @@
1
1
  .GoodsDetailWrap {
2
+ overflow: scroll;
2
3
  background-color: #f6f6f6;
3
4
  padding-top: 12px;
4
5
  padding-bottom: 12px;
5
6
 
7
+ .skeleton {
8
+ width: 100%;
9
+ height: 100vh;
10
+ box-sizing: border-box;
11
+ padding: 10px;
12
+ }
13
+
14
+ .topSlider {
15
+ margin-bottom: 10px;
16
+ }
17
+
6
18
  .goodsDetail-topInfo {
7
19
  background-color: #fff;
8
20
  margin: 0 10px 12px;
@@ -16,7 +28,7 @@
16
28
  color: #000000;
17
29
  line-height: 25px;
18
30
  display: block;
19
- width: 70%;
31
+ width: 85%;
20
32
  }
21
33
 
22
34
  .price {
@@ -60,6 +72,11 @@
60
72
  }
61
73
 
62
74
  .group {
75
+ .noPromotion {
76
+ line-height: 22px;
77
+ color: #999;
78
+ }
79
+
63
80
  .item {
64
81
  font-size: 12px;
65
82
  padding: 2px 10px;
@@ -72,7 +89,8 @@
72
89
  }
73
90
  }
74
91
 
75
- .goodsDetail-coupon {
92
+ .goodsDetail-coupon,
93
+ .goodsDetail-size {
76
94
  background-color: #fff;
77
95
  margin: 0 10px 12px;
78
96
  padding: 13px;
@@ -97,8 +115,104 @@
97
115
  }
98
116
  }
99
117
 
118
+ .goodsDetailHandleBar {
119
+ width: 100%;
120
+ height: 54px;
121
+ background-color: #ffffff;
122
+ position: absolute;
123
+ bottom: 0;
124
+ left: 0;
125
+ padding: 7px 10px;
126
+ display: grid;
127
+ grid-template-columns: 30px 40px 1fr;
128
+ gap: 20px;
129
+
130
+ .linkGroup {
131
+ text-align: center;
132
+
133
+ .icon {
134
+ display: block;
135
+ width: 20px;
136
+ height: 20px;
137
+ background-color: yellowgreen;
138
+ margin: 0 auto;
139
+ }
140
+
141
+ .txt {
142
+ font-size: 12px;
143
+ }
144
+ }
145
+
146
+ .btnGroup {
147
+ display: grid;
148
+ grid-template-columns: repeat(2, 1fr);
149
+
150
+ .btn {
151
+ display: flex;
152
+ justify-content: center;
153
+ align-items: center;
154
+ font-size: 14px;
155
+
156
+ &.addCart {
157
+ background-color: #959595;
158
+ color: #ffffff;
159
+ border-top-left-radius: 20px;
160
+ border-bottom-left-radius: 20px;
161
+ }
162
+
163
+ &.buy {
164
+ background-color: #000000;
165
+ color: #ffffff;
166
+ border-top-right-radius: 20px;
167
+ border-bottom-right-radius: 20px;
168
+ }
169
+ }
170
+ }
171
+ }
172
+
173
+ .goodsDetailTab {
174
+ background-color: #ffffff;
175
+ margin: 0 10px 12px;
176
+ border-radius: 8px;
177
+ overflow: hidden;
178
+
179
+ .tabs {
180
+ width: 100%;
181
+ height: 50px;
182
+ line-height: 50px;
183
+ text-align: center;
184
+ margin-bottom: 10px;
185
+
186
+ .tabsItem {
187
+ width: 150px;
188
+ display: inline-block;
189
+ padding: 0 30px;
190
+ font-size: 16px;
191
+ position: relative;
192
+
193
+ &.active {
194
+ .line {
195
+ display: block;
196
+ }
197
+ }
198
+
199
+ .line {
200
+ width: 40px;
201
+ height: 2px;
202
+ background-color: #000000;
203
+ position: absolute;
204
+ bottom: 0;
205
+ left: 50%;
206
+ margin-left: -20px;
207
+ display: none;
208
+ }
209
+ }
210
+ }
211
+ }
212
+
100
213
  .goodsDetail-info {
101
214
  width: 100%;
215
+ background-color: #ffffff;
102
216
 
103
217
  .ssd-module-wrap {
104
218
  width: 100%;
@@ -203,3 +317,149 @@
203
317
  border-radius: 30px;
204
318
  }
205
319
  }
320
+
321
+ .goodsDetail-size-popup {
322
+ height: 50vh;
323
+ display: grid;
324
+ grid-template-rows: calc(50vh - 88px) 88px;
325
+
326
+ .closeWrap {
327
+ box-sizing: content-box;
328
+ padding-top: 15px;
329
+ padding-right: 10px;
330
+ height: 18px;
331
+ text-align: right;
332
+
333
+ .icon {
334
+ display: inline-block;
335
+ width: 18px;
336
+ height: 18px;
337
+ background-color: yellowgreen;
338
+ }
339
+ }
340
+
341
+ .content {
342
+ overflow: scroll;
343
+
344
+ .goodsInfo {
345
+ width: 100%;
346
+ border-bottom: 1px solid #e2e2e2;
347
+ padding: 14px 12px 20px;
348
+ display: grid;
349
+ grid-template-columns: 72px 1fr;
350
+ gap: 10px;
351
+
352
+ .lPart {
353
+ .goodsImg {
354
+ width: 70px;
355
+ height: 70px;
356
+ border: 1px solid #ccc;
357
+ }
358
+ }
359
+
360
+ .rPart {
361
+ .name {
362
+ font-size: 13px;
363
+ width: 98%;
364
+ margin-bottom: 6px;
365
+ }
366
+
367
+ .price {
368
+ font-size: 14px;
369
+ margin-bottom: 4px;
370
+ }
371
+
372
+ .chosen {
373
+ color: #a7a7a7;
374
+ font-size: 14px;
375
+ }
376
+ }
377
+ }
378
+
379
+ .sizeArr {
380
+ padding: 20px 0;
381
+ border-bottom: 1px solid #e2e2e2;
382
+
383
+ .title {
384
+ display: block;
385
+ font-size: 13px;
386
+ color: #000000;
387
+ margin-bottom: 15px;
388
+ padding: 20px 12px 0;
389
+ }
390
+
391
+ .sizeArrItemWrap {
392
+ padding: 0 12px;
393
+
394
+ .sizeItem {
395
+ padding: 7px 27px;
396
+ border: 1px solid #a7a7a7;
397
+ margin-right: 10px;
398
+ display: inline-block;
399
+ border-radius: 4px;
400
+ color: #a7a7a7;
401
+
402
+ &.active {
403
+ color: #1a1a1a;
404
+ border-color: #1a1a1a;
405
+ }
406
+ }
407
+ }
408
+ }
409
+
410
+ .countWrap {
411
+ padding: 16px 12px;
412
+ display: flex;
413
+ justify-content: space-between;
414
+
415
+ .label {
416
+ font-size: 13px;
417
+ }
418
+
419
+ .numStep {
420
+ height: 26px;
421
+ line-height: 26px;
422
+ border: 1px solid #bcbcbc;
423
+ display: grid;
424
+ grid-template-columns: 26px auto 26px;
425
+ box-sizing: content-box;
426
+
427
+ .content {
428
+ border-left: 1px solid #bcbcbc;
429
+ border-right: 1px solid #bcbcbc;
430
+ text-align: center;
431
+ padding: 0 10px;
432
+ text-align: center;
433
+ }
434
+
435
+ .btn {
436
+ width: 26px;
437
+ height: 26px;
438
+ line-height: 26px;
439
+ text-align: center;
440
+ font-size: 16px;
441
+ }
442
+ }
443
+ }
444
+ }
445
+
446
+ .btnWrap {
447
+ height: 88px;
448
+ box-sizing: border-box;
449
+ padding: 0 12px;
450
+ display: flex;
451
+ justify-content: center;
452
+ align-items: center;
453
+
454
+ .btn {
455
+ width: 100%;
456
+ height: 40px;
457
+ line-height: 40px;
458
+ background-color: #000000;
459
+ display: block;
460
+ border-radius: 20px;
461
+ text-align: center;
462
+ color: #ffffff;
463
+ }
464
+ }
465
+ }
@@ -17,7 +17,12 @@
17
17
  @import './evaluateEntry';
18
18
  @import './evaluateList';
19
19
  @import './addressList';
20
+ @import './placeOrder';
21
+ @import './placeOrderResult';
22
+ @import './couponList';
23
+ @import './cart';
24
+ @import './mine';
20
25
 
21
- //.design-container .monitor .actived:after {
22
- // display: none;
23
- //}
26
+ .design-container .monitor .actived:after {
27
+ display: none;
28
+ }
@@ -0,0 +1,96 @@
1
+ .mine {
2
+ width: 100%;
3
+ overflow: scroll;
4
+ background: linear-gradient(-150deg, #d4d4d4 0%, #d4d4d415 25%, #fff 100%);
5
+ padding: 10px 12px 0;
6
+ box-sizing: border-box;
7
+
8
+ .topBoard {
9
+ display: flex;
10
+ justify-content: space-between;
11
+
12
+ .icon {
13
+ width: 20px;
14
+ height: 20px;
15
+ background-color: yellowgreen;
16
+ }
17
+ }
18
+
19
+ .userSetting {
20
+ padding: 27px 0;
21
+ display: flex;
22
+ justify-content: space-between;
23
+
24
+ .lPart {
25
+ display: flex;
26
+ justify-content: center;
27
+ flex-direction: column;
28
+
29
+ .name {
30
+ font-size: 20px;
31
+ color: #333;
32
+ }
33
+
34
+ .link {
35
+ font-size: 12px;
36
+ color: #999;
37
+ }
38
+ }
39
+
40
+ .avatar {
41
+ width: 60px;
42
+ height: 60px;
43
+ border: 1px solid #ccc;
44
+ box-sizing: border-box;
45
+ border-radius: 50%;
46
+ overflow: hidden;
47
+ }
48
+ }
49
+
50
+ .menuList {
51
+ padding: 25px 13px 34px;
52
+ box-sizing: border-box;
53
+
54
+ .menuListItem {
55
+ margin-bottom: 20px;
56
+ display: flex;
57
+ justify-content: space-between;
58
+ align-items: center;
59
+
60
+ .lPart {
61
+ display: flex;
62
+ align-items: center;
63
+
64
+ .icon {
65
+ width: 16px;
66
+ height: 16px;
67
+ background-color: yellowgreen;
68
+ margin-right: 12px;
69
+ }
70
+
71
+ .label {
72
+ font-size: 15px;
73
+ color: #232323;
74
+ }
75
+ }
76
+
77
+ .tag {
78
+ width: 6px;
79
+ height: 10px;
80
+ background-color: yellowgreen;
81
+ }
82
+
83
+ &:last-child {
84
+ margin-bottom: 0;
85
+ }
86
+ }
87
+ }
88
+
89
+ .banner {
90
+ width: 100%;
91
+ height: 130px;
92
+ border: 1px solid #333333;
93
+ border-radius: 10px;
94
+ overflow: hidden;
95
+ }
96
+ }
@@ -1,6 +1,8 @@
1
1
  .orderEntry {
2
2
  background: #fff;
3
3
  box-shadow: 0 0 10px 0 rgba(231, 227, 227, 0.5);
4
+ border-radius: 8px;
5
+
4
6
  .title {
5
7
  height: 46px;
6
8
  line-height: 46px;
@@ -32,6 +34,7 @@
32
34
  width: 22px;
33
35
  margin-bottom: 7px;
34
36
  }
37
+
35
38
  .subTitle {
36
39
  display: block;
37
40
  font-size: 11px;
@@ -0,0 +1,104 @@
1
+ .placeOrder {
2
+ background-color: #f9f9f9;
3
+ overflow: scroll;
4
+
5
+ .chooseAddress {
6
+ height: 48px;
7
+ line-height: 48px;
8
+ padding: 0 12px;
9
+ display: flex;
10
+ justify-content: space-between;
11
+ align-items: center;
12
+ margin-bottom: 8px;
13
+
14
+ .group {
15
+ display: flex;
16
+ align-items: center;
17
+
18
+ .local {
19
+ width: 17px;
20
+ height: 16px;
21
+ margin-right: 7px;
22
+ background-color: yellowgreen;
23
+ display: inline-block;
24
+ }
25
+
26
+ .address {
27
+ font-size: 14px;
28
+ color: #000;
29
+ }
30
+ }
31
+
32
+ .arrow {
33
+ width: 6px;
34
+ height: 10px;
35
+ background-color: yellowgreen;
36
+ }
37
+ }
38
+
39
+ .blcWrap {
40
+ margin-bottom: 8px;
41
+ padding: 17px 12px;
42
+ background-color: #fff;
43
+
44
+ .title {
45
+ font-size: 16px;
46
+ font-weight: 500;
47
+ color: #333333;
48
+ margin-bottom: 17px;
49
+ }
50
+
51
+ .blcItem {
52
+ display: flex;
53
+ justify-content: space-between;
54
+ margin-bottom: 17px;
55
+
56
+ &:last-child {
57
+ margin-bottom: 0;
58
+ }
59
+
60
+ .label {
61
+ color: #333;
62
+ }
63
+
64
+ .value {
65
+ color: #a7a7a7;
66
+
67
+ .icon {
68
+ width: 6px;
69
+ height: 10px;
70
+ display: inline-block;
71
+ background-color: yellowgreen;
72
+ margin-left: 5px;
73
+ }
74
+ }
75
+ }
76
+ }
77
+
78
+ .placeOrderFooter {
79
+ background-color: #fff;
80
+ height: 54px;
81
+ line-height: 54px;
82
+ display: flex;
83
+ justify-content: space-between;
84
+ padding: 0 12px;
85
+ box-sizing: border-box;
86
+ align-items: center;
87
+
88
+ .price {
89
+ font-size: 14px;
90
+ color: #333333;
91
+ }
92
+
93
+ .btn {
94
+ width: 105px;
95
+ height: 40px;
96
+ line-height: 40px;
97
+ color: #ffffff;
98
+ padding: 0 12px;
99
+ background-color: #000;
100
+ text-align: center;
101
+ border-radius: 20px;
102
+ }
103
+ }
104
+ }
@@ -0,0 +1,100 @@
1
+ .placeOrderResult {
2
+ background-color: #f6f6f6;
3
+ padding: 20px 12px 0;
4
+ box-sizing: border-box;
5
+
6
+ .placeOrderResultContent {
7
+ background-color: #ffffff;
8
+ border-radius: 8px;
9
+ padding: 35px 17px 30px;
10
+
11
+ .icon {
12
+ width: 34px;
13
+ height: 34px;
14
+ display: block;
15
+ background-color: yellowgreen;
16
+ margin: 0 auto 15px;
17
+ }
18
+
19
+ .tips {
20
+ border-bottom: 1px solid #dcdcdc;
21
+ padding-bottom: 27px;
22
+
23
+ .title {
24
+ font-size: 20px;
25
+ font-weight: 600;
26
+ display: block;
27
+ margin: 0 auto;
28
+ text-align: center;
29
+ }
30
+
31
+ .tip {
32
+ font-size: 14px;
33
+ display: block;
34
+ width: 220px;
35
+ margin: 0 auto;
36
+ text-align: center;
37
+ padding-top: 8px;
38
+ }
39
+ }
40
+
41
+ //.title {
42
+ // font-size: 20px;
43
+ // font-weight: 600;
44
+ // margin: 0 auto 23px;
45
+ // padding-bottom: 27px;
46
+ // display: block;
47
+ // text-align: center;
48
+ // border-bottom: 1px solid #DCDCDC;
49
+ //}
50
+
51
+ .placeOrderResultWrap {
52
+ padding-top: 20px;
53
+ margin-bottom: 44px;
54
+
55
+ .placeOrderResultItem {
56
+ display: grid;
57
+ grid-template-columns: 70px 1fr;
58
+ gap: 6px;
59
+ margin-bottom: 10px;
60
+
61
+ .label {
62
+ font-size: 14px;
63
+ color: #999;
64
+ }
65
+
66
+ .value {
67
+ font-size: 14px;
68
+ color: #000;
69
+ }
70
+ }
71
+ }
72
+
73
+ .btnGroup {
74
+ display: grid;
75
+ grid-template-columns: repeat(2, 1fr);
76
+ gap: 10px;
77
+
78
+ .btn {
79
+ width: 100%;
80
+ height: 40px;
81
+ line-height: 40px;
82
+ border-radius: 20px;
83
+ text-align: center;
84
+ box-sizing: border-box;
85
+ border: 1px solid #000;
86
+
87
+ &.black {
88
+ background-color: #000;
89
+ color: #fff;
90
+ margin-left: 0;
91
+ }
92
+
93
+ &.white {
94
+ background-color: #fff;
95
+ color: #000;
96
+ }
97
+ }
98
+ }
99
+ }
100
+ }
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const Coupon: import("react").MemoExoticComponent<({ index, item }: any) => JSX.Element>;
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { memo } from 'react';
3
+ import { useComponent, antdMobile } from '@brushes/qj-simulate-component';
4
+ const { Radio } = antdMobile;
5
+ const CouponJsx = ({ index, item }) => {
6
+ const { View, Text } = useComponent();
7
+ return (_jsx(View, Object.assign({ className: "couponItem" }, { children: _jsxs(View, Object.assign({ className: 'coupon-content' }, { children: [_jsxs(View, Object.assign({ className: 'price' }, { children: [_jsx(Text, Object.assign({ className: 'symbol' }, { children: "\uFFE5" })), _jsx(Text, Object.assign({ className: 'num' }, { children: item.price }))] })), _jsxs(View, Object.assign({ className: 'info' }, { children: [_jsx(Text, Object.assign({ className: 'title' }, { children: item.title })), _jsxs(Text, Object.assign({ className: 'date' }, { children: ["\u6709\u6548\u671F\u81F3\uFF1A", item.date] }))] })), _jsx(Radio, { value: index, className: 'choose' })] })) })));
8
+ };
9
+ export const Coupon = memo(CouponJsx);