s-material-react 0.1.13 → 0.1.15

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 (124) hide show
  1. package/css/common/addressItem.scss +41 -1
  2. package/css/common/card.scss +1 -0
  3. package/css/common/coupon.scss +8 -3
  4. package/css/common/icon.scss +79 -3
  5. package/css/pages/addressDetail.scss +79 -0
  6. package/css/pages/addressList.scss +32 -8
  7. package/css/pages/cart.scss +52 -5
  8. package/css/pages/couponList.scss +5 -0
  9. package/css/pages/goodsClassify.scss +32 -6
  10. package/css/pages/goodsDetail.scss +22 -67
  11. package/css/pages/index.scss +2 -0
  12. package/css/pages/mine.scss +2 -6
  13. package/css/pages/orderEntry.scss +4 -2
  14. package/css/pages/paymentMode.scss +75 -0
  15. package/css/pages/placeOrder.scss +30 -8
  16. package/css/pages/service.scss +1 -6
  17. package/css/pages/slider.scss +6 -0
  18. package/dist/common/addressItem/index.d.ts +1 -1
  19. package/dist/common/addressItem/index.js +6 -7
  20. package/dist/common/card/index.js +1 -1
  21. package/dist/common/coupon/index.d.ts +1 -1
  22. package/dist/common/coupon/index.js +4 -5
  23. package/dist/common/icon/index.d.ts +2 -1
  24. package/dist/common/icon/index.js +2 -2
  25. package/dist/common/mock/index.js +35 -0
  26. package/dist/components/AddressDetail/components/index.d.ts +0 -0
  27. package/dist/components/AddressDetail/components/index.js +1 -0
  28. package/dist/components/AddressDetail/components/skull.d.ts +2 -0
  29. package/dist/components/AddressDetail/components/skull.js +9 -0
  30. package/dist/components/AddressDetail/config.d.ts +51 -0
  31. package/dist/components/AddressDetail/config.js +65 -0
  32. package/dist/components/AddressDetail/hooks/index.d.ts +1 -0
  33. package/dist/components/AddressDetail/hooks/index.js +1 -0
  34. package/dist/components/AddressDetail/hooks/useAddAddress.d.ts +26 -0
  35. package/dist/components/AddressDetail/hooks/useAddAddress.js +80 -0
  36. package/dist/components/AddressDetail/index.d.ts +1 -1
  37. package/dist/components/AddressDetail/index.js +17 -107
  38. package/dist/components/AddressList/components/index.d.ts +1 -0
  39. package/dist/components/AddressList/components/index.js +1 -0
  40. package/dist/components/AddressList/components/skull.d.ts +2 -0
  41. package/dist/components/AddressList/components/skull.js +9 -0
  42. package/dist/components/AddressList/hooks/index.d.ts +1 -0
  43. package/dist/components/AddressList/hooks/index.js +1 -0
  44. package/dist/components/AddressList/hooks/useAddressList.d.ts +6 -0
  45. package/dist/components/AddressList/hooks/useAddressList.js +74 -0
  46. package/dist/components/AddressList/index.js +8 -6
  47. package/dist/components/Cart/components/cartItem.d.ts +3 -0
  48. package/dist/components/Cart/components/cartItem.js +34 -0
  49. package/dist/components/Cart/hooks/index.d.ts +19 -0
  50. package/dist/components/Cart/hooks/index.js +90 -0
  51. package/dist/components/Cart/index.js +14 -18
  52. package/dist/components/Cart/store/index.d.ts +10 -0
  53. package/dist/components/Cart/store/index.js +23 -0
  54. package/dist/components/CouponList/index.js +1 -1
  55. package/dist/components/Goods/index.js +3 -3
  56. package/dist/components/GoodsClassify/components/classifySkeleton.d.ts +1 -0
  57. package/dist/components/GoodsClassify/components/classifySkeleton.js +12 -0
  58. package/dist/components/GoodsClassify/index.js +4 -4
  59. package/dist/components/GoodsDetail/components/goodsDetailCollection.d.ts +1 -1
  60. package/dist/components/GoodsDetail/components/goodsDetailCollection.js +8 -3
  61. package/dist/components/GoodsDetail/components/goodsDetailCoupon.js +22 -33
  62. package/dist/components/GoodsDetail/components/goodsDetailHandleBar.js +23 -3
  63. package/dist/components/GoodsDetail/components/goodsDetailInfo.d.ts +1 -1
  64. package/dist/components/GoodsDetail/components/goodsDetailInfo.js +1 -1
  65. package/dist/components/GoodsDetail/components/goodsDetailPopup.d.ts +1 -1
  66. package/dist/components/GoodsDetail/components/goodsDetailPopup.js +9 -23
  67. package/dist/components/GoodsDetail/components/goodsDetailPromotion.js +2 -3
  68. package/dist/components/GoodsDetail/components/goodsDetailSize.d.ts +1 -1
  69. package/dist/components/GoodsDetail/components/goodsDetailSize.js +11 -2
  70. package/dist/components/GoodsDetail/hooks/index.d.ts +2 -0
  71. package/dist/components/GoodsDetail/hooks/index.js +2 -75
  72. package/dist/components/GoodsDetail/hooks/useAddShopping.d.ts +10 -0
  73. package/dist/components/GoodsDetail/hooks/useAddShopping.js +74 -0
  74. package/dist/components/GoodsDetail/hooks/useGoodsDetailImpl.d.ts +13 -0
  75. package/dist/components/GoodsDetail/hooks/useGoodsDetailImpl.js +85 -0
  76. package/dist/components/GoodsDetail/index.d.ts +5 -1
  77. package/dist/components/GoodsDetail/index.js +15 -8
  78. package/dist/components/GoodsDetail/store/index.d.ts +10 -0
  79. package/dist/components/GoodsDetail/store/index.js +34 -0
  80. package/dist/components/Mine/components/menuList.js +7 -6
  81. package/dist/components/Mine/components/orderEntry.js +17 -10
  82. package/dist/components/Mine/index.js +4 -3
  83. package/dist/components/OrderList/components/OrderListItem.js +2 -3
  84. package/dist/components/OrderList/components/orderItem.js +1 -2
  85. package/dist/components/PaymentMode/config.d.ts +6 -0
  86. package/dist/components/PaymentMode/config.js +14 -0
  87. package/dist/components/PaymentMode/hooks/useOrderResult.d.ts +11 -0
  88. package/dist/components/PaymentMode/hooks/useOrderResult.js +100 -0
  89. package/dist/components/PaymentMode/index.d.ts +4 -0
  90. package/dist/components/PaymentMode/index.js +17 -0
  91. package/dist/components/PlaceOrder/components/address.d.ts +12 -0
  92. package/dist/components/PlaceOrder/components/address.js +33 -0
  93. package/dist/components/PlaceOrder/components/orderPrice.d.ts +12 -0
  94. package/dist/components/PlaceOrder/components/orderPrice.js +8 -0
  95. package/dist/components/PlaceOrder/components/shop.d.ts +4 -0
  96. package/dist/components/PlaceOrder/components/shop.js +9 -0
  97. package/dist/components/PlaceOrder/hooks/usePlaceOrder.d.ts +18 -0
  98. package/dist/components/PlaceOrder/hooks/usePlaceOrder.js +234 -0
  99. package/dist/components/PlaceOrder/index.d.ts +6 -1
  100. package/dist/components/PlaceOrder/index.js +8 -3
  101. package/dist/components/PlaceOrderResult/hooks/useOrderResult.d.ts +3 -0
  102. package/dist/components/PlaceOrderResult/hooks/useOrderResult.js +93 -0
  103. package/dist/components/PlaceOrderResult/index.d.ts +3 -1
  104. package/dist/components/PlaceOrderResult/index.js +5 -3
  105. package/dist/components/Search/index.js +3 -2
  106. package/dist/components/SearchPage/index.js +50 -9
  107. package/dist/components/Service/index.d.ts +11 -1
  108. package/dist/components/Service/index.js +4 -3
  109. package/dist/components/index.d.ts +1 -0
  110. package/dist/components/index.js +1 -0
  111. package/dist/options/index.d.ts +0 -2
  112. package/dist/options/index.js +36 -31
  113. package/dist/routerMap/index.d.ts +7 -0
  114. package/dist/routerMap/index.js +8 -1
  115. package/dist/utils/payment.d.ts +14 -0
  116. package/dist/utils/payment.js +56 -0
  117. package/package.json +1 -1
  118. package/css/font/iconfont.ttf +0 -0
  119. package/css/font/iconfont.woff +0 -0
  120. package/css/font/iconfont.woff2 +0 -0
  121. package/dist/components/AddressDetail/option.d.ts +0 -2
  122. package/dist/components/AddressDetail/option.js +0 -32
  123. package/dist/components/Cart/useNumStep.d.ts +0 -1
  124. package/dist/components/Cart/useNumStep.js +0 -7
@@ -28,7 +28,6 @@
28
28
  .icon {
29
29
  width: 14px;
30
30
  height: 14px;
31
- background-color: yellowgreen;
32
31
  }
33
32
  }
34
33
  }
@@ -39,6 +38,47 @@
39
38
  justify-content: space-between;
40
39
  padding: 12px 14px;
41
40
 
41
+ .checkBoxPc {
42
+ display: flex;
43
+ justify-content: center;
44
+ align-items: center;
45
+
46
+ input {
47
+ margin-right: 5px;
48
+ }
49
+ }
50
+
51
+ .checkboxMini {
52
+ .checkBoxWrap {
53
+ display: flex;
54
+ justify-content: center;
55
+ align-items: center;
56
+ }
57
+
58
+ .wx-checkbox-input {
59
+ width: 12px;
60
+ height: 12px;
61
+ border-radius: 50%;
62
+ }
63
+
64
+ .wx-checkbox-input .wx-checkbox-input-checked {
65
+ color: red;
66
+ border-color: #000;
67
+ }
68
+
69
+ .wx-checkbox-input.wx-checkbox-input-checked::before {
70
+ background-color: #000;
71
+ width: 12px;
72
+ height: 12px;
73
+ line-height: 12px;
74
+ border-radius: 50%;
75
+ text-align: center;
76
+ font-size: 10px;
77
+ color: #fff;
78
+ transform: translate(-50%, -50%) scale(1);
79
+ }
80
+ }
81
+
42
82
  .del {
43
83
  font-size: 12px;
44
84
  color: #a7a7a7;
@@ -1,4 +1,5 @@
1
1
  @import '../basic/textLine.scss';
2
+
2
3
  .card-item {
3
4
  display: grid;
4
5
  grid-template-columns: 80px 1fr;
@@ -1,5 +1,6 @@
1
1
  .couponItem {
2
2
  width: 100%;
3
+ box-sizing: border-box;
3
4
  display: inline-block;
4
5
  padding: 10px;
5
6
  position: relative;
@@ -18,6 +19,10 @@
18
19
  z-index: -1;
19
20
  }
20
21
 
22
+ &:last-child {
23
+ margin-bottom: 0;
24
+ }
25
+
21
26
  .coupon-content {
22
27
  height: 120px;
23
28
  width: 100%;
@@ -28,9 +33,9 @@
28
33
 
29
34
  .choose {
30
35
  position: absolute;
31
- top: 10px;
32
- right: 10px;
33
- background: #fff;
36
+ top: 5px;
37
+ right: 5px;
38
+ //background: #fff;
34
39
  border-radius: 100%;
35
40
  overflow: hidden;
36
41
  }
@@ -1,8 +1,8 @@
1
1
  @font-face {
2
2
  font-family: 'iconfont'; /* Project id 3540782 */
3
- src: url('//at.alicdn.com/t/c/font_3540782_w0k03fwojrs.woff2?t=1669970496419') format('woff2'),
4
- url('//at.alicdn.com/t/c/font_3540782_w0k03fwojrs.woff?t=1669970496419') format('woff'),
5
- url('//at.alicdn.com/t/c/font_3540782_w0k03fwojrs.ttf?t=1669970496419') format('truetype');
3
+ src: url('//at.alicdn.com/t/c/font_3540782_nkezpv8lt2.woff2?t=1671616319911') format('woff2'),
4
+ url('//at.alicdn.com/t/c/font_3540782_nkezpv8lt2.woff?t=1671616319911') format('woff'),
5
+ url('//at.alicdn.com/t/c/font_3540782_nkezpv8lt2.ttf?t=1671616319911') format('truetype');
6
6
  }
7
7
 
8
8
  .iconfont {
@@ -21,6 +21,82 @@
21
21
  -moz-osx-font-smoothing: grayscale;
22
22
  }
23
23
 
24
+ .icon-shezhi:before {
25
+ content: '\e602';
26
+ }
27
+
28
+ .icon-xiangyou1:before {
29
+ content: '\e775';
30
+ }
31
+
32
+ .icon-dizhi:before {
33
+ content: '\e66e';
34
+ }
35
+
36
+ .icon-kehufuwukefu:before {
37
+ content: '\e698';
38
+ }
39
+
40
+ .icon-youhuiquan:before {
41
+ content: '\e8c0';
42
+ }
43
+
44
+ .icon-daifahuo:before {
45
+ content: '\e601';
46
+ }
47
+
48
+ .icon-yiwancheng:before {
49
+ content: '\e6a6';
50
+ }
51
+
52
+ .icon-daishouhuo:before {
53
+ content: '\e640';
54
+ }
55
+
56
+ .icon-daifukuan:before {
57
+ content: '\e612';
58
+ }
59
+
60
+ .icon-shouhou:before {
61
+ content: '\e713';
62
+ }
63
+
64
+ .icon-xiaochengxu:before {
65
+ content: '\e619';
66
+ }
67
+
68
+ .icon-zhanghu:before {
69
+ content: '\e611';
70
+ }
71
+
72
+ .icon-roundcheck:before {
73
+ content: '\e657';
74
+ }
75
+
76
+ .icon-bianjishuru:before {
77
+ content: '\e8cc';
78
+ }
79
+
80
+ .icon-tianxie:before {
81
+ content: '\ec88';
82
+ }
83
+
84
+ .icon-close-bold:before {
85
+ content: '\e685';
86
+ }
87
+
88
+ .icon-jianqu:before {
89
+ content: '\e60c';
90
+ }
91
+
92
+ .icon-zengjia:before {
93
+ content: '\e6ea';
94
+ }
95
+
96
+ .icon-shanchu:before {
97
+ content: '\e623';
98
+ }
99
+
24
100
  .icon-jiangxu:before {
25
101
  content: '\e618';
26
102
  }
@@ -0,0 +1,79 @@
1
+ .addressDetail {
2
+ background-color: #f6f6f6;
3
+ padding-top: 15px;
4
+ box-sizing: border-box;
5
+
6
+ .adm-list {
7
+ padding-top: 10px;
8
+ background-color: #fff;
9
+ border-radius: 10px;
10
+
11
+ .adm-list-item {
12
+ padding: 0 16px;
13
+
14
+ .adm-form-item-label {
15
+ height: 24px;
16
+ line-height: 24px;
17
+ }
18
+
19
+ .adm-list-item-content {
20
+ border-bottom: 1 rpx solid #d8d8d8 !important;
21
+ }
22
+
23
+ &:last-child {
24
+ .adm-form-item-label {
25
+ height: 32px;
26
+ line-height: 32px;
27
+ }
28
+
29
+ .adm-list-item-content {
30
+ border-bottom: 0 none !important;
31
+ }
32
+ }
33
+
34
+ .h5-div .adm-form-item-child-inner {
35
+ width: 100%;
36
+ }
37
+ }
38
+ }
39
+
40
+ .adm-form-item-feedback-error {
41
+ color: red;
42
+ }
43
+
44
+ .adm-form-item-label .adm-form-item-required-asterisk {
45
+ color: red;
46
+ }
47
+
48
+ .areaWrap {
49
+ color: #888;
50
+ height: 24px;
51
+ line-height: 24px;
52
+ }
53
+
54
+ button {
55
+ background-color: #000;
56
+ border-radius: 30px;
57
+ color: #fff;
58
+ border: 0 none;
59
+ }
60
+
61
+ .skullWrap {
62
+ padding: 12px;
63
+
64
+ .skull {
65
+ border-radius: 10px;
66
+ overflow: hidden;
67
+
68
+ .skullItem {
69
+ width: 100%;
70
+ height: 48px;
71
+ margin-bottom: 5px;
72
+
73
+ &:last-child {
74
+ margin-bottom: 0;
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
@@ -1,18 +1,21 @@
1
- .addressList {
2
- position: relative;
3
- overflow: scroll;
4
- padding: 15px 12px 20px;
5
- box-sizing: border-box;
1
+ .addressListWrap {
6
2
  background-color: #f6f6f6;
7
3
 
4
+ .addressList {
5
+ padding: 15px 12px 65px;
6
+ box-sizing: border-box;
7
+ height: inherit;
8
+ overflow: scroll;
9
+ }
10
+
8
11
  .addBtnWrap {
9
12
  width: 100%;
10
13
  padding: 10px;
11
14
  box-sizing: border-box;
12
- position: absolute;
13
- bottom: 0;
14
- left: 0;
15
+ position: sticky;
16
+ bottom: 0px;
15
17
  background-color: #fff;
18
+ margin-top: -54px;
16
19
 
17
20
  .addBtn {
18
21
  width: 100%;
@@ -26,4 +29,25 @@
26
29
  cursor: pointer;
27
30
  }
28
31
  }
32
+
33
+ .skullWrap {
34
+ padding: 12px;
35
+ height: inherit;
36
+ overflow: scroll;
37
+
38
+ .skull {
39
+ overflow: hidden;
40
+
41
+ .skullItem {
42
+ width: 100%;
43
+ height: 108px;
44
+ margin-bottom: 10px;
45
+ border-radius: 5px;
46
+
47
+ &:last-child {
48
+ margin-bottom: 0;
49
+ }
50
+ }
51
+ }
52
+ }
29
53
  }
@@ -9,21 +9,51 @@
9
9
  background-color: #ffffff;
10
10
 
11
11
  .btn {
12
+ display: inline-block;
12
13
  font-size: 12px;
14
+ margin-right: 10px;
15
+ color: #333333;
16
+ padding: 10px 12px;
13
17
  }
14
18
  }
15
19
 
16
20
  .itemGroup {
21
+ height: calc(100% - 49px - 54px);
17
22
  .cartItem {
18
23
  width: 100%;
19
24
  padding: 22px 12px;
20
25
  box-sizing: border-box;
21
26
  display: grid;
22
- grid-template-columns: 16px 82px 1fr;
27
+ grid-template-columns: 20px 82px 1fr;
23
28
  gap: 10px;
24
29
  border-bottom: 1px solid #e2e2e2;
25
30
  background-color: #ffffff;
26
31
 
32
+ .checkBoxWrap {
33
+ position: relative;
34
+
35
+ checkbox {
36
+ position: absolute;
37
+ top: 50%;
38
+ margin-top: -10px;
39
+ }
40
+
41
+ .wx-checkbox-input {
42
+ width: 18px;
43
+ height: 18px;
44
+ border-radius: 50%;
45
+ }
46
+
47
+ .wx-checkbox-input.wx-checkbox-input-checked {
48
+ background-color: #000000;
49
+ }
50
+
51
+ .wx-checkbox-input.wx-checkbox-input-checked::before {
52
+ color: #ffffff;
53
+ font-size: 14px;
54
+ }
55
+ }
56
+
27
57
  .img {
28
58
  width: 82px;
29
59
  height: 82px;
@@ -32,16 +62,18 @@
32
62
 
33
63
  .info {
34
64
  .goodsName {
35
- font-size: 12px;
65
+ font-size: 14px;
66
+ min-height: 28px;
36
67
  line-height: 17px;
37
68
  display: block;
38
- margin-bottom: 3px;
69
+ margin-bottom: 6px;
70
+ padding-top: 4px;
39
71
  }
40
72
 
41
73
  .size {
42
74
  font-size: 12px;
43
75
  color: #bababa;
44
- margin-bottom: 3px;
76
+ margin-bottom: 6px;
45
77
  }
46
78
 
47
79
  .handleWrap {
@@ -70,7 +102,7 @@
70
102
  display: flex;
71
103
  justify-content: space-between;
72
104
  background: rgba(255, 255, 255, 0.7);
73
- position: absolute;
105
+ position: sticky;
74
106
  bottom: 0;
75
107
  left: 0;
76
108
 
@@ -78,6 +110,21 @@
78
110
  display: flex;
79
111
  justify-content: center;
80
112
  align-items: center;
113
+
114
+ .wx-checkbox-input {
115
+ width: 18px;
116
+ height: 18px;
117
+ border-radius: 50%;
118
+ }
119
+
120
+ .wx-checkbox-input.wx-checkbox-input-checked {
121
+ background-color: #000000;
122
+ }
123
+
124
+ .wx-checkbox-input.wx-checkbox-input-checked::before {
125
+ color: #ffffff;
126
+ font-size: 14px;
127
+ }
81
128
  }
82
129
 
83
130
  .check {
@@ -50,6 +50,7 @@
50
50
  background-size: 20px 20px;
51
51
  margin-bottom: 14px;
52
52
  overflow: hidden;
53
+ box-sizing: border-box;
53
54
 
54
55
  &:after {
55
56
  content: '';
@@ -87,16 +88,20 @@
87
88
  &.overdue {
88
89
  background: radial-gradient(transparent 0px, transparent 4px, #d9dae1 4px, #d9dae1) -10px -10px;
89
90
  background-size: 20px 20px;
91
+
90
92
  .coupon-content {
91
93
  background: #d9dae1;
94
+
92
95
  .price {
93
96
  .symbol {
94
97
  color: #000;
95
98
  }
99
+
96
100
  .num {
97
101
  color: #000;
98
102
  }
99
103
  }
104
+
100
105
  .info {
101
106
  display: flex;
102
107
  justify-content: center;
@@ -1,6 +1,7 @@
1
1
  .goods-classify {
2
- padding: 0 15px;
3
- &-search {
2
+ padding: 10px;
3
+
4
+ .goods-classify-search {
4
5
  width: 100%;
5
6
  margin-bottom: 17px;
6
7
  height: 34px;
@@ -10,6 +11,7 @@
10
11
  display: flex;
11
12
  align-items: center;
12
13
  justify-content: center;
14
+
13
15
  .icon {
14
16
  width: 14px;
15
17
  height: 14px;
@@ -19,14 +21,16 @@
19
21
  }
20
22
 
21
23
  .goodsClassifyContainer {
22
- height: 100vh;
23
24
  background-color: #ffffff;
24
25
  display: grid;
25
26
  grid-template-columns: 90px 1fr;
26
27
  width: 100%;
27
- overflow: hidden;
28
+ height: calc(100% - 71px);
28
29
 
29
30
  .side {
31
+ .adm-side-bar-item-active {
32
+ --adm-color-primary: #000000;
33
+ }
30
34
  }
31
35
 
32
36
  .main {
@@ -44,7 +48,8 @@
44
48
  height: 20px;
45
49
  width: 60%;
46
50
  //background: greenyellow;
47
- margin: 20px auto;
51
+ margin: 0 auto;
52
+ padding: 20px 0;
48
53
  text-align: center;
49
54
  position: relative;
50
55
 
@@ -65,7 +70,7 @@
65
70
  height: 1px;
66
71
  background-color: #000;
67
72
  left: 0;
68
- top: 10px;
73
+ top: 50%;
69
74
  }
70
75
  }
71
76
 
@@ -83,6 +88,7 @@
83
88
  display: block;
84
89
  margin-bottom: 12px;
85
90
  }
91
+
86
92
  .title {
87
93
  font-size: 12px;
88
94
  text-align: center;
@@ -95,14 +101,34 @@
95
101
  }
96
102
  }
97
103
  }
104
+
98
105
  .adm-side-bar {
99
106
  --adm-color-box: #f5f5f5;
100
107
  --item-border-radius: 8px;
101
108
  }
109
+
102
110
  .adm-side-bar-item {
103
111
  font-size: 12px;
104
112
  }
113
+
105
114
  .adm-side-bar-item-active {
106
115
  --adm-color-primary: #1677ff;
107
116
  --adm-color-background: #fff;
108
117
  }
118
+
119
+ .classifySkeleton {
120
+ display: grid;
121
+ grid-template-columns: 88px 1fr;
122
+
123
+ .lPart {
124
+ border-right: 1px solid #ccc;
125
+ height: 100%;
126
+
127
+ .blc {
128
+ --width: 90%;
129
+ --height: 50px;
130
+ --border-radius: 0px;
131
+ margin: 0 auto 10px;
132
+ }
133
+ }
134
+ }