s-material-react 0.1.0 → 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 (100) hide show
  1. package/css/common/addressItem.scss +47 -0
  2. package/css/common/coupon.scss +73 -0
  3. package/css/common/evaluateItem.scss +58 -0
  4. package/css/common/index.scss +4 -0
  5. package/css/common/stepNum.scss +20 -0
  6. package/css/pages/addressList.scss +29 -0
  7. package/css/pages/cart.scss +130 -0
  8. package/css/pages/couponList.scss +204 -0
  9. package/css/pages/evaluateEntry.scss +57 -0
  10. package/css/pages/evaluateList.scss +82 -51
  11. package/css/pages/goodsDetail.scss +262 -2
  12. package/css/pages/index.scss +7 -0
  13. package/css/pages/mine.scss +96 -0
  14. package/css/pages/orderEntry.scss +3 -0
  15. package/css/pages/placeOrder.scss +104 -0
  16. package/css/pages/placeOrderResult.scss +100 -0
  17. package/dist/common/addressItem/index.d.ts +1 -0
  18. package/dist/common/addressItem/index.js +10 -0
  19. package/dist/common/coupon/index.d.ts +2 -0
  20. package/dist/common/coupon/index.js +9 -0
  21. package/dist/common/evaluateItem/index.d.ts +2 -0
  22. package/dist/common/evaluateItem/index.js +13 -0
  23. package/dist/common/mock/index.d.ts +300 -0
  24. package/dist/common/mock/index.js +623 -0
  25. package/dist/common/stepNum/index.d.ts +5 -0
  26. package/dist/common/stepNum/index.js +9 -0
  27. package/dist/components/AddressDetail/index.d.ts +2 -0
  28. package/dist/components/AddressDetail/index.js +119 -0
  29. package/dist/components/AddressDetail/option.d.ts +2 -0
  30. package/dist/components/AddressDetail/option.js +32 -0
  31. package/dist/components/AddressList/index.d.ts +2 -0
  32. package/dist/components/AddressList/index.js +15 -0
  33. package/dist/components/Cart/index.d.ts +2 -0
  34. package/dist/components/Cart/index.js +29 -0
  35. package/dist/components/Cart/useNumStep.d.ts +1 -0
  36. package/dist/components/Cart/useNumStep.js +7 -0
  37. package/dist/components/CouponList/index.d.ts +2 -0
  38. package/dist/components/CouponList/index.js +29 -0
  39. package/dist/components/Cube/index.js +2 -2
  40. package/dist/components/EvaluateList/index.d.ts +2 -0
  41. package/dist/components/EvaluateList/index.js +40 -0
  42. package/dist/components/GoodsClassify/components/classifyFloor.js +5 -24
  43. package/dist/components/GoodsClassify/index.js +13 -5
  44. package/dist/components/GoodsDetail/components/evaluateEntry.d.ts +2 -0
  45. package/dist/components/GoodsDetail/components/evaluateEntry.js +43 -0
  46. package/dist/components/GoodsDetail/components/goodsDetailCollection.d.ts +2 -0
  47. package/dist/components/GoodsDetail/components/goodsDetailCollection.js +60 -0
  48. package/dist/components/GoodsDetail/components/goodsDetailCoupon.js +5 -5
  49. package/dist/components/GoodsDetail/components/goodsDetailEvaluate.js +3 -2
  50. package/dist/components/GoodsDetail/components/goodsDetailHandleBar.d.ts +2 -0
  51. package/dist/components/GoodsDetail/components/goodsDetailHandleBar.js +7 -0
  52. package/dist/components/GoodsDetail/components/goodsDetailInfo.d.ts +1 -1
  53. package/dist/components/GoodsDetail/components/goodsDetailInfo.js +2 -2
  54. package/dist/components/GoodsDetail/components/goodsDetailPopup.d.ts +2 -0
  55. package/dist/components/GoodsDetail/components/goodsDetailPopup.js +27 -0
  56. package/dist/components/GoodsDetail/components/goodsDetailPromotion.d.ts +1 -1
  57. package/dist/components/GoodsDetail/components/goodsDetailPromotion.js +3 -3
  58. package/dist/components/GoodsDetail/components/goodsDetailSize.d.ts +1 -1
  59. package/dist/components/GoodsDetail/components/goodsDetailSize.js +6 -6
  60. package/dist/components/GoodsDetail/index.js +53 -15
  61. package/dist/components/GoodsGroup/index.js +2 -1
  62. package/dist/components/GoodsList/components/filter.d.ts +1 -0
  63. package/dist/components/GoodsList/components/filter.js +31 -0
  64. package/dist/components/GoodsList/hooks/useGoodsList.d.ts +5 -0
  65. package/dist/components/GoodsList/hooks/useGoodsList.js +49 -0
  66. package/dist/components/GoodsList/index.js +9 -60
  67. package/dist/components/Mine/components/menuList.d.ts +1 -0
  68. package/dist/components/Mine/components/menuList.js +21 -0
  69. package/dist/components/Mine/components/orderEntry.d.ts +1 -0
  70. package/dist/components/Mine/components/orderEntry.js +41 -0
  71. package/dist/components/Mine/index.d.ts +7 -0
  72. package/dist/components/Mine/index.js +14 -0
  73. package/dist/components/Notice/index.js +7 -11
  74. package/dist/components/OrderDetail/index.js +2 -2
  75. package/dist/components/OrderList/components/OrderListItem.js +8 -4
  76. package/dist/components/OrderList/components/orderItem.js +2 -2
  77. package/dist/components/OrderList/index.js +3 -2
  78. package/dist/components/PlaceOrder/index.d.ts +2 -0
  79. package/dist/components/PlaceOrder/index.js +12 -0
  80. package/dist/components/PlaceOrderResult/index.d.ts +2 -0
  81. package/dist/components/PlaceOrderResult/index.js +12 -0
  82. package/dist/components/SearchPage/index.d.ts +7 -1
  83. package/dist/components/SearchPage/index.js +5 -6
  84. package/dist/components/Slider/index.d.ts +12 -12
  85. package/dist/components/Slider/item.d.ts +2 -2
  86. package/dist/components/index.d.ts +8 -0
  87. package/dist/components/index.js +8 -0
  88. package/dist/options/index.d.ts +2 -0
  89. package/dist/options/index.js +31 -0
  90. package/dist/routerMap/index.d.ts +5 -0
  91. package/dist/routerMap/index.js +5 -0
  92. package/dist/utils/checkImgUrl.d.ts +1 -0
  93. package/dist/utils/checkImgUrl.js +9 -0
  94. package/dist/utils/index.d.ts +0 -0
  95. package/dist/utils/index.js +1 -0
  96. package/package.json +4 -5
  97. package/dist/components/OrderEntry/index.d.ts +0 -2
  98. package/dist/components/OrderEntry/index.js +0 -9
  99. package/dist/components/Stamp/index.d.ts +0 -2
  100. package/dist/components/Stamp/index.js +0 -9
@@ -0,0 +1,47 @@
1
+ .addressItem {
2
+ width: 100%;
3
+ background-color: #fff;
4
+ margin-bottom: 10px;
5
+ border-radius: 5px;
6
+
7
+ .upInfo {
8
+ padding: 15px;
9
+ box-sizing: border-box;
10
+ border-bottom: 1px solid #e2e2e2;
11
+
12
+ .userInfo {
13
+ color: #000;
14
+ font-size: 14px;
15
+ margin-bottom: 8px;
16
+ }
17
+
18
+ .addressInfo {
19
+ display: grid;
20
+ grid-template-columns: 1fr 14px;
21
+ gap: 10px;
22
+
23
+ .address {
24
+ font-size: 12px;
25
+ color: #a7a7a7;
26
+ }
27
+
28
+ .icon {
29
+ width: 14px;
30
+ height: 14px;
31
+ background-color: yellowgreen;
32
+ }
33
+ }
34
+ }
35
+
36
+ .downInfo {
37
+ display: flex;
38
+ box-sizing: border-box;
39
+ justify-content: space-between;
40
+ padding: 12px 14px;
41
+
42
+ .del {
43
+ font-size: 12px;
44
+ color: #a7a7a7;
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,73 @@
1
+ .couponItem {
2
+ width: 100%;
3
+ display: inline-block;
4
+ padding: 10px;
5
+ position: relative;
6
+ background: radial-gradient(transparent 0px, transparent 4px, #1a1922 4px, #1a1922) -10px -10px;
7
+ background-size: 20px 20px;
8
+ margin-bottom: 14px;
9
+
10
+ &:after {
11
+ content: '';
12
+ position: absolute;
13
+ left: 5px;
14
+ top: 5px;
15
+ right: 5px;
16
+ bottom: 5px;
17
+ //box-shadow: 0 0 20px 1px rgba(0, 0, 0, 1);
18
+ z-index: -1;
19
+ }
20
+
21
+ .coupon-content {
22
+ height: 120px;
23
+ width: 100%;
24
+ background: #1a1922;
25
+ display: grid;
26
+ grid-template-columns: 108px 1fr;
27
+ position: relative;
28
+
29
+ .choose {
30
+ position: absolute;
31
+ top: 10px;
32
+ right: 10px;
33
+ background: #fff;
34
+ border-radius: 100%;
35
+ overflow: hidden;
36
+ }
37
+
38
+ .price {
39
+ border-right: 1px dashed #fff;
40
+ text-align: center;
41
+ line-height: 120px;
42
+
43
+ .symbol {
44
+ font-size: 23px;
45
+ color: #fff;
46
+ }
47
+
48
+ .num {
49
+ font-size: 33px;
50
+ color: #fff;
51
+ text-align: left;
52
+ }
53
+ }
54
+
55
+ .info {
56
+ display: flex;
57
+ justify-content: center;
58
+ align-items: center;
59
+ flex-direction: column;
60
+
61
+ .title {
62
+ margin-bottom: 12px;
63
+ font-size: 16px;
64
+ color: #fff;
65
+ line-height: 22px;
66
+ }
67
+
68
+ .date {
69
+ color: rgba(255, 255, 255, 0.45);
70
+ }
71
+ }
72
+ }
73
+ }
@@ -0,0 +1,58 @@
1
+ .evaluateItem {
2
+ color: #333333;
3
+ background-color: #ffffff;
4
+ padding: 15px 13px 20px;
5
+ border-bottom: 1px solid #e2e2e2;
6
+
7
+ &:last-child {
8
+ border-bottom: 0 none;
9
+ }
10
+
11
+ .userInfo {
12
+ display: grid;
13
+ grid-template-columns: 48px auto;
14
+ margin-bottom: 12px;
15
+
16
+ .avatar {
17
+ width: 38px;
18
+ height: 38px;
19
+ display: inline-block;
20
+ margin-right: 10px;
21
+ border-radius: 100%;
22
+ }
23
+
24
+ .userNameWrap {
25
+ text-align: left;
26
+ display: flex;
27
+ justify-content: center;
28
+ //align-items: center;
29
+ flex-direction: column;
30
+
31
+ .userName {
32
+ //line-height: 38px;
33
+ }
34
+ }
35
+ }
36
+
37
+ .size {
38
+ font-size: 12px;
39
+ margin-bottom: 4px;
40
+ }
41
+
42
+ .content {
43
+ font-size: 14px;
44
+ margin-bottom: 12px;
45
+ }
46
+
47
+ .img-group {
48
+ display: grid;
49
+ grid-template-columns: repeat(4, 1fr);
50
+ gap: 7px;
51
+
52
+ .img {
53
+ display: block;
54
+ border-radius: 4px;
55
+ width: 100%;
56
+ }
57
+ }
58
+ }
@@ -1,2 +1,6 @@
1
1
  @import './card.scss';
2
2
  @import './icon.scss';
3
+ @import './evaluateItem.scss';
4
+ @import './addressItem.scss';
5
+ @import './coupon.scss';
6
+ @import './stepNum.scss';
@@ -0,0 +1,20 @@
1
+ .stepNum {
2
+ border: 1px solid #bcbcbc;
3
+ display: grid;
4
+ grid-template-columns: 18px auto 18px;
5
+ box-sizing: border-box;
6
+
7
+ .content {
8
+ border-left: 1px solid #bcbcbc;
9
+ border-right: 1px solid #bcbcbc;
10
+ padding: 0 7px;
11
+ }
12
+
13
+ .btn {
14
+ width: 18px;
15
+ height: 18px;
16
+ line-height: 18px;
17
+ text-align: center;
18
+ color: #bcbcbc;
19
+ }
20
+ }
@@ -0,0 +1,29 @@
1
+ .addressList {
2
+ position: relative;
3
+ overflow: scroll;
4
+ padding: 15px 12px 20px;
5
+ box-sizing: border-box;
6
+ background-color: #f6f6f6;
7
+
8
+ .addBtnWrap {
9
+ width: 100%;
10
+ padding: 10px;
11
+ box-sizing: border-box;
12
+ position: absolute;
13
+ bottom: 0;
14
+ left: 0;
15
+ background-color: #fff;
16
+
17
+ .addBtn {
18
+ width: 100%;
19
+ background-color: #000;
20
+ height: 34px;
21
+ line-height: 34px;
22
+ color: #fff;
23
+ font-size: 14px;
24
+ border-radius: 20px;
25
+ text-align: center;
26
+ cursor: pointer;
27
+ }
28
+ }
29
+ }
@@ -0,0 +1,130 @@
1
+ .cart {
2
+ background-color: #f6f6f6;
3
+ overflow: scroll;
4
+
5
+ .edit {
6
+ text-align: right;
7
+ border-bottom: 1px solid #e2e2e2;
8
+ padding: 6px 0;
9
+ background-color: #ffffff;
10
+
11
+ .btn {
12
+ font-size: 12px;
13
+ }
14
+ }
15
+
16
+ .itemGroup {
17
+ .cartItem {
18
+ width: 100%;
19
+ padding: 22px 12px;
20
+ box-sizing: border-box;
21
+ display: grid;
22
+ grid-template-columns: 16px 82px 1fr;
23
+ gap: 10px;
24
+ border-bottom: 1px solid #e2e2e2;
25
+ background-color: #ffffff;
26
+
27
+ .img {
28
+ width: 82px;
29
+ height: 82px;
30
+ border-radius: 10px;
31
+ }
32
+
33
+ .info {
34
+ .goodsName {
35
+ font-size: 12px;
36
+ line-height: 17px;
37
+ display: block;
38
+ margin-bottom: 3px;
39
+ }
40
+
41
+ .size {
42
+ font-size: 12px;
43
+ color: #bababa;
44
+ margin-bottom: 3px;
45
+ }
46
+
47
+ .handleWrap {
48
+ display: flex;
49
+ justify-content: space-between;
50
+
51
+ .price {
52
+ font-size: 12px;
53
+ color: #000;
54
+ }
55
+
56
+ .stepper {
57
+ height: 18px;
58
+ --input-width: 30px;
59
+ --button-width: 18px;
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
65
+
66
+ .dashboard {
67
+ width: 100%;
68
+ padding: 7px 10px;
69
+ box-sizing: border-box;
70
+ display: flex;
71
+ justify-content: space-between;
72
+ background: rgba(255, 255, 255, 0.7);
73
+ position: absolute;
74
+ bottom: 0;
75
+ left: 0;
76
+
77
+ .choose {
78
+ display: flex;
79
+ justify-content: center;
80
+ align-items: center;
81
+ }
82
+
83
+ .check {
84
+ .priceGroup {
85
+ display: inline-block;
86
+ vertical-align: top;
87
+ margin-right: 8px;
88
+ color: #a7a7a7;
89
+
90
+ .discount {
91
+ font-size: 12px;
92
+ }
93
+
94
+ .all {
95
+ font-size: 14px;
96
+ }
97
+
98
+ .data {
99
+ color: #000000;
100
+ }
101
+ }
102
+
103
+ .btn {
104
+ height: 40px;
105
+ line-height: 40px;
106
+ padding: 0 26px;
107
+ border-radius: 20px;
108
+ background: #000000;
109
+ font-size: 14px;
110
+ color: #fff;
111
+ display: inline-block;
112
+ vertical-align: top;
113
+ }
114
+ }
115
+
116
+ .del {
117
+ .btn {
118
+ height: 40px;
119
+ line-height: 40px;
120
+ padding: 0 26px;
121
+ border-radius: 20px;
122
+ background: #ff1643;
123
+ font-size: 14px;
124
+ color: #fff;
125
+ display: inline-block;
126
+ vertical-align: top;
127
+ }
128
+ }
129
+ }
130
+ }
@@ -0,0 +1,204 @@
1
+ .couponList {
2
+ background-color: #f6f6f6;
3
+ overflow: scroll;
4
+
5
+ .couponTab {
6
+ display: grid;
7
+ grid-template-columns: repeat(3, 1fr);
8
+ padding-bottom: 7px;
9
+ padding-top: 30px;
10
+ background-color: #ffffff;
11
+
12
+ .couponTabItem {
13
+ color: #999;
14
+ font-size: 16px;
15
+ text-align: center;
16
+ position: relative;
17
+
18
+ &.active {
19
+ color: #000;
20
+
21
+ .icon {
22
+ display: block;
23
+ }
24
+ }
25
+
26
+ .icon {
27
+ width: 23px;
28
+ height: 2px;
29
+ background-color: #000;
30
+ position: absolute;
31
+ bottom: -7px;
32
+ left: 50%;
33
+ margin-left: -12px;
34
+ border-radius: 20px;
35
+ display: none;
36
+ }
37
+ }
38
+ }
39
+
40
+ .couponListContent {
41
+ background-color: #f6f6f6;
42
+ padding: 20px 14px;
43
+
44
+ .couponListItem {
45
+ width: 100%;
46
+ display: inline-block;
47
+ padding: 10px;
48
+ position: relative;
49
+ background: radial-gradient(transparent 0px, transparent 4px, #1a1922 4px, #1a1922) -10px -10px;
50
+ background-size: 20px 20px;
51
+ margin-bottom: 14px;
52
+ overflow: hidden;
53
+
54
+ &:after {
55
+ content: '';
56
+ position: absolute;
57
+ left: 5px;
58
+ top: 5px;
59
+ right: 5px;
60
+ bottom: 5px;
61
+ //box-shadow: 0 0 20px 1px rgba(0, 0, 0, 1);
62
+ z-index: -1;
63
+ }
64
+
65
+ &.unused {
66
+ .coupon-content {
67
+ .info {
68
+ .btn {
69
+ background-color: #ffffff;
70
+ color: #393939;
71
+ }
72
+ }
73
+ }
74
+ }
75
+
76
+ &.used {
77
+ .coupon-content {
78
+ .info {
79
+ .btn {
80
+ background-color: rgba(255, 255, 255, 0.29);
81
+ color: #393939;
82
+ }
83
+ }
84
+ }
85
+ }
86
+
87
+ &.overdue {
88
+ background: radial-gradient(transparent 0px, transparent 4px, #d9dae1 4px, #d9dae1) -10px -10px;
89
+ background-size: 20px 20px;
90
+ .coupon-content {
91
+ background: #d9dae1;
92
+ .price {
93
+ .symbol {
94
+ color: #000;
95
+ }
96
+ .num {
97
+ color: #000;
98
+ }
99
+ }
100
+ .info {
101
+ display: flex;
102
+ justify-content: center;
103
+ align-items: center;
104
+ flex-direction: column;
105
+
106
+ .title {
107
+ color: #000000;
108
+ }
109
+
110
+ .date {
111
+ margin-bottom: 0;
112
+ color: rgba(80, 80, 80, 0.45);
113
+ }
114
+
115
+ .btn {
116
+ display: none;
117
+ }
118
+ }
119
+ }
120
+ }
121
+
122
+ .coupon-content {
123
+ height: 120px;
124
+ width: 100%;
125
+ background: #1a1922;
126
+ display: grid;
127
+ grid-template-columns: 108px 1fr;
128
+ position: relative;
129
+
130
+ .choose {
131
+ position: absolute;
132
+ top: 10px;
133
+ right: 10px;
134
+ background: #fff;
135
+ border-radius: 100%;
136
+ overflow: hidden;
137
+ }
138
+
139
+ .price {
140
+ border-right: 1px dashed #fff;
141
+ text-align: center;
142
+ line-height: 120px;
143
+
144
+ .symbol {
145
+ font-size: 23px;
146
+ color: #fff;
147
+ }
148
+
149
+ .num {
150
+ font-size: 33px;
151
+ color: #fff;
152
+ text-align: left;
153
+ }
154
+ }
155
+
156
+ .info {
157
+ padding: 18px;
158
+ box-sizing: border-box;
159
+
160
+ .title {
161
+ margin-bottom: 4px;
162
+ font-size: 16px;
163
+ color: #fff;
164
+ line-height: 22px;
165
+ display: block;
166
+ position: relative;
167
+ z-index: 2;
168
+ }
169
+
170
+ .date {
171
+ display: block;
172
+ color: rgba(255, 255, 255, 0.45);
173
+ font-size: 12px;
174
+ margin-bottom: 15px;
175
+ position: relative;
176
+ z-index: 2;
177
+ }
178
+
179
+ .btn {
180
+ width: 100px;
181
+ height: 27px;
182
+ line-height: 27px;
183
+ text-align: center;
184
+ border-radius: 20px;
185
+ }
186
+ }
187
+
188
+ .round {
189
+ width: 100px;
190
+ height: 100px;
191
+ line-height: 75px;
192
+ text-align: center;
193
+ border-radius: 50%;
194
+ border: 10px solid #e4e5e9;
195
+ position: absolute;
196
+ right: -21px;
197
+ bottom: -44px;
198
+ z-index: 1;
199
+ color: rgba(80, 80, 80, 0.45);
200
+ }
201
+ }
202
+ }
203
+ }
204
+ }
@@ -0,0 +1,57 @@
1
+ .evaluateEntry {
2
+ .topInfo {
3
+ display: flex;
4
+ justify-content: space-between;
5
+ margin-bottom: 20px;
6
+
7
+ .title {
8
+ font-size: 14px;
9
+ }
10
+
11
+ .txt {
12
+ font-size: 12px;
13
+ color: #999;
14
+ }
15
+ }
16
+
17
+ .evaluateList-item {
18
+ color: #333333;
19
+ padding-bottom: 20px;
20
+
21
+ .userInfo {
22
+ display: grid;
23
+ grid-template-columns: 48px auto;
24
+ margin-bottom: 12px;
25
+
26
+ .avatar {
27
+ width: 38px;
28
+ height: 38px;
29
+ display: inline-block;
30
+ margin-right: 10px;
31
+ border-radius: 100%;
32
+ }
33
+
34
+ .userName {
35
+ line-height: 38px;
36
+ }
37
+ }
38
+
39
+ .size {
40
+ font-size: 12px;
41
+ margin-bottom: 4px;
42
+ }
43
+
44
+ .content {
45
+ font-size: 14px;
46
+ }
47
+
48
+ .img-group {
49
+ display: grid;
50
+ grid-template-columns: repeat(4, auto);
51
+ .img {
52
+ display: block;
53
+ border-radius: 4px;
54
+ }
55
+ }
56
+ }
57
+ }