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,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 @@
1
+ export declare const AddressItem: ({ itemData, fontSize, iconSize }: any) => JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
+ import { useComponent } from '@brushes/qj-simulate-component';
3
+ import { Radio } from 'antd-mobile';
4
+ export const AddressItem = ({ itemData, fontSize = '12px', iconSize = '12px' }) => {
5
+ const { View, Text } = useComponent();
6
+ return (_jsxs(View, Object.assign({ className: 'addressItem' }, { children: [_jsxs(View, Object.assign({ className: 'upInfo' }, { children: [_jsxs(View, Object.assign({ className: 'userInfo' }, { children: [itemData.name, " ", itemData.phone] })), _jsxs(View, Object.assign({ className: 'addressInfo' }, { children: [_jsx(Text, Object.assign({ className: 'address' }, { children: itemData.address })), _jsx(View, { className: 'icon' })] }))] })), _jsxs(View, Object.assign({ className: 'downInfo' }, { children: [_jsx(Radio, Object.assign({ value: itemData.default, style: {
7
+ '--font-size': fontSize,
8
+ '--icon-size': iconSize
9
+ } }, { children: "\u8BBE\u4E3A\u9ED8\u8BA4\u5730\u5740" })), _jsx(Text, Object.assign({ className: 'del' }, { children: "\u5220\u9664" }))] }))] })));
10
+ };
@@ -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);
@@ -0,0 +1,2 @@
1
+ declare const EvaluateItem: ({ starColor, starSize, itemData }: any) => JSX.Element;
2
+ export default EvaluateItem;
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useComponent } from '@brushes/qj-simulate-component';
3
+ import { Rate } from 'antd-mobile';
4
+ const EvaluateItem = ({ starColor = '#FF0934', starSize = '12px', itemData }) => {
5
+ const { View, Text } = useComponent();
6
+ return (_jsxs(View, Object.assign({ className: 'evaluateItem' }, { children: [_jsxs(View, Object.assign({ className: 'userInfo' }, { children: [_jsx("img", { src: itemData.avatar, className: 'avatar' }), _jsxs(View, Object.assign({ className: 'userNameWrap' }, { children: [_jsx(Text, Object.assign({ className: 'userName' }, { children: itemData.userName })), _jsx(Rate, { readOnly: true, value: itemData.rate, style: {
7
+ '--star-size': starSize,
8
+ '--active-color': starColor
9
+ } })] }))] })), _jsxs(View, Object.assign({ className: 'size' }, { children: ["\u89C4\u683C\uFF1A ", itemData.size] })), _jsx(View, Object.assign({ className: 'content' }, { children: itemData.evaluate })), _jsx(View, Object.assign({ className: 'img-group' }, { children: itemData.imgUrls.map((item, index) => {
10
+ return _jsx("img", { src: item.imgUrl, className: 'img' }, index);
11
+ }) }))] })));
12
+ };
13
+ export default EvaluateItem;
@@ -0,0 +1,300 @@
1
+ export declare const evaluateListFake: {
2
+ avatar: string;
3
+ userName: string;
4
+ rate: number;
5
+ size: string;
6
+ evaluate: string;
7
+ imgUrls: {
8
+ imgUrl: string;
9
+ }[];
10
+ }[];
11
+ export declare const addressListFake: {
12
+ id: number;
13
+ name: string;
14
+ phone: string;
15
+ address: string;
16
+ default: number;
17
+ }[];
18
+ export declare const couponListFake: {
19
+ title: string;
20
+ date: string;
21
+ price: number;
22
+ }[];
23
+ export declare const goodsDetailFake: {
24
+ goodsId: number;
25
+ goodsBillbatch: null;
26
+ spuCode: string;
27
+ freightTemCode: null;
28
+ memberCode: string;
29
+ memberMcode: string;
30
+ memberMname: string;
31
+ goodsSdate: null;
32
+ goodsEdate: null;
33
+ goodsDay: null;
34
+ goodsDayinfo: null;
35
+ memberName: string;
36
+ memberCcode: string;
37
+ memberCname: string;
38
+ goodsClass: string;
39
+ goodsSenum: null;
40
+ goodsSeweight: null;
41
+ memberBcode: null;
42
+ memberBname: null;
43
+ saleChannel: null;
44
+ goodsCode: string;
45
+ goodsOldcode: string;
46
+ dataOpbillstate: number;
47
+ dataOpnextbillstate: number;
48
+ goodsName: string;
49
+ goodsThdate: null;
50
+ goodsOdate: null;
51
+ goodsHdate: number;
52
+ goodsOrigin: string;
53
+ goodsSp: null;
54
+ goodsPro: string;
55
+ goodsType: string;
56
+ pntreeCode: string;
57
+ pntreeName: string;
58
+ classtreeCode: string;
59
+ classtreeName: string;
60
+ classtreeShopcode: null;
61
+ classtreeShopname: null;
62
+ partsnameName: null;
63
+ productareaName: null;
64
+ goodsMaterial: string;
65
+ goodsShowname: string;
66
+ channelName: string;
67
+ goodsShowno: string;
68
+ goodsSpec: string;
69
+ goodsSpec1: string;
70
+ goodsSpec2: string;
71
+ goodsSpec3: string;
72
+ goodsSpec4: string;
73
+ goodsSpec5: string;
74
+ goodsProperty: null;
75
+ goodsProperty1: string;
76
+ goodsProperty2: string;
77
+ goodsProperty3: string;
78
+ goodsProperty4: string;
79
+ goodsProperty5: string;
80
+ goodsMinnum: number;
81
+ goodsOneweight: number;
82
+ goodsWeight: number;
83
+ goodsNum: number;
84
+ goodsSupplynum: number;
85
+ goodsSupplyweight: number;
86
+ goodsAhnum: number;
87
+ goodsAhweight: number;
88
+ brandCode: string;
89
+ brandName: string;
90
+ goodsHangnum: number;
91
+ goodsHangweight: number;
92
+ goodsTopnum: null;
93
+ goodsTopweight: null;
94
+ goodsOrdnum: number;
95
+ goodsOrdweight: number;
96
+ partsnameNumunit: null;
97
+ partsnameWeightunit: null;
98
+ pricesetNprice: number;
99
+ pricesetMakeprice: number;
100
+ pricesetBaseprice: number;
101
+ pricesetMakeshow: null;
102
+ pricesetAsprice: number;
103
+ pricesetType: null;
104
+ pricesetRefrice: number;
105
+ pricesetPrefprice: number;
106
+ pricesetInsideprice: number;
107
+ areaCode: null;
108
+ areaName: null;
109
+ mschannelName: string;
110
+ mschannelCode: string;
111
+ warehouseCode: null;
112
+ warehouseName: null;
113
+ goodsContract: null;
114
+ dataPic: string;
115
+ dataPicpath: null;
116
+ memberContact: null;
117
+ memberContactPhone: null;
118
+ memberContactQq: null;
119
+ tenantCode: string;
120
+ appmanageIcode: null;
121
+ channelCode: string;
122
+ goodsSort: number;
123
+ goodsNo: string;
124
+ ginfoCode: null;
125
+ goodsEocode: null;
126
+ goodsCodeOld: string;
127
+ channelVer: number;
128
+ channelTver: number;
129
+ pricesetCurrency: null;
130
+ pricesetCurrency1: null;
131
+ goodsRemark: string;
132
+ goodsWebremark: null;
133
+ rsGoodsFileDomainList: {
134
+ goodsFileId: number;
135
+ goodsFileCode: string;
136
+ skuCode: null;
137
+ goodsCode: string;
138
+ goodsFileSort: null;
139
+ goodsFilesortName: null;
140
+ goodsFileType: null;
141
+ defaultState: number;
142
+ goodsFileName: null;
143
+ goodsFileUrl: string;
144
+ memberCode: string;
145
+ memberName: string;
146
+ appmanageIcode: null;
147
+ tenantCode: string;
148
+ userCode: null;
149
+ userName: null;
150
+ companyCode: null;
151
+ companyShortname: null;
152
+ departCode: null;
153
+ departShortname: null;
154
+ employeeCode: null;
155
+ employeeName: null;
156
+ }[];
157
+ rsGoodsRelDomainList: null;
158
+ goodsList: null;
159
+ rsSkuDomainList: {
160
+ skuId: number;
161
+ ginfoCode: null;
162
+ skuCode: string;
163
+ skuName: string;
164
+ spuCode: string;
165
+ skuOldcode: string;
166
+ goodsOldcode: string;
167
+ skuRemark: null;
168
+ goodsCode: string;
169
+ brandCode: string;
170
+ brandName: string;
171
+ skuShowno: string;
172
+ goodsShowno: string;
173
+ channelName: string;
174
+ pricesetNprice: number;
175
+ pricesetMakeprice: number;
176
+ pricesetBaseprice: number;
177
+ pricesetAsprice: number;
178
+ pricesetRefrice: number;
179
+ goodsTopnum: null;
180
+ goodsTopweight: null;
181
+ pricesetPrefprice: number;
182
+ goodsClass: string;
183
+ pricesetInsideprice: number;
184
+ appmanageIcode: null;
185
+ tenantCode: string;
186
+ goodsMinnum: number;
187
+ goodsOneweight: number;
188
+ partsnameNumunit: null;
189
+ partsnameWeightunit: null;
190
+ channelVer: number;
191
+ channelTver: number;
192
+ goodsWeight: number;
193
+ goodsNum: number;
194
+ goodsSupplynum: number;
195
+ goodsSupplyweight: number;
196
+ goodsAhnum: number;
197
+ goodsAhweight: number;
198
+ goodsHangnum: number;
199
+ goodsHangweight: number;
200
+ goodsOrdnum: number;
201
+ goodsOrdweight: number;
202
+ classtreeCode: string;
203
+ classtreeShopcode: null;
204
+ skuOdate: null;
205
+ skuHdate: number;
206
+ dataOpbillstate: number;
207
+ goodsSalesvolume: null;
208
+ skuBarcode: null;
209
+ saleChannel: null;
210
+ skuNo: string;
211
+ goodsNo: string;
212
+ mschannelName: string;
213
+ mschannelCode: string;
214
+ skuSort: number;
215
+ channelCode: string;
216
+ skuCodeOld: string;
217
+ goodsPro: string;
218
+ goodsType: string;
219
+ dataPic: string;
220
+ freightTemCode: null;
221
+ goodsName: string;
222
+ propertiesList: null;
223
+ specList: null;
224
+ rsGoodsFileDomainList: {
225
+ goodsFileId: number;
226
+ goodsFileCode: string;
227
+ skuCode: string;
228
+ goodsCode: null;
229
+ goodsFileSort: null;
230
+ goodsFilesortName: null;
231
+ goodsFileType: null;
232
+ defaultState: number;
233
+ goodsFileName: null;
234
+ goodsFileUrl: string;
235
+ memberCode: string;
236
+ memberName: string;
237
+ appmanageIcode: null;
238
+ tenantCode: string;
239
+ userCode: null;
240
+ userName: null;
241
+ companyCode: null;
242
+ companyShortname: null;
243
+ departCode: null;
244
+ departShortname: null;
245
+ employeeCode: null;
246
+ employeeName: null;
247
+ }[];
248
+ memberCname: string;
249
+ memberName: string;
250
+ memberCode: string;
251
+ memberCcode: string;
252
+ rsGoodsRelDomainList: null;
253
+ showWeight: number;
254
+ showNum: number;
255
+ goodsOrigin: string;
256
+ skuEocode: null;
257
+ memberMcode: string;
258
+ memberMname: string;
259
+ goodsEocode: null;
260
+ goodsShowname: string;
261
+ classtreeName: string;
262
+ classtreeShopname: null;
263
+ goodsSp: null;
264
+ dataOpnextbillstate: number;
265
+ goodsSenum: null;
266
+ goodsSeweight: null;
267
+ memberBcode: null;
268
+ memberBname: null;
269
+ mpriceType: null;
270
+ }[];
271
+ rsSpecValueDomainList: {
272
+ specValueId: number;
273
+ specValueCode: string;
274
+ spuCode: string;
275
+ specGroupCode: string;
276
+ specCode: string;
277
+ specName: string;
278
+ specValueValue: string;
279
+ specValueType: string;
280
+ specValueFlag: string;
281
+ specValueBillno: string;
282
+ appmanageIcode: null;
283
+ tenantCode: string;
284
+ specOptionNum: null;
285
+ specOptionNum1: null;
286
+ }[];
287
+ rsPropertiesValueDomainList: null;
288
+ delSkuId: null;
289
+ freightTemName: null;
290
+ skuNo: string;
291
+ rsGoodsShopDomainList: null;
292
+ rsGoodsWhDomainList: null;
293
+ gmtCreate: number;
294
+ gmtModified: number;
295
+ memo: null;
296
+ dataState: number;
297
+ isShow: null;
298
+ classtreeFullName: null;
299
+ skuList: null;
300
+ };