s-material-react 0.1.19 → 0.1.21

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 (175) hide show
  1. package/css/pages/goodsDetail.scss +3 -2
  2. package/dist/common/addressItem/index.d.ts +1 -1
  3. package/dist/common/card/index.d.ts +8 -8
  4. package/dist/common/coupon/index.d.ts +2 -2
  5. package/dist/common/evaluateItem/index.d.ts +2 -2
  6. package/dist/common/evaluateList/index.d.ts +5 -5
  7. package/dist/common/icon/index.d.ts +7 -7
  8. package/dist/common/mock/index.d.ts +300 -300
  9. package/dist/common/stepNum/index.d.ts +5 -5
  10. package/dist/components/AddressDetail/components/index.d.ts +1 -1
  11. package/dist/components/AddressDetail/components/skull.d.ts +2 -2
  12. package/dist/components/AddressDetail/config.d.ts +51 -51
  13. package/dist/components/AddressDetail/index.d.ts +2 -2
  14. package/dist/components/AddressList/components/index.d.ts +1 -1
  15. package/dist/components/AddressList/components/skull.d.ts +2 -2
  16. package/dist/components/AddressList/index.d.ts +2 -2
  17. package/dist/components/Cart/components/cartItem.d.ts +3 -3
  18. package/dist/components/Cart/components/index.d.ts +1 -1
  19. package/dist/components/Cart/index.d.ts +2 -2
  20. package/dist/components/ClassifyNav/index.d.ts +15 -15
  21. package/dist/components/CouponList/components/index.d.ts +4 -4
  22. package/dist/components/CouponList/components/overdue.d.ts +5 -5
  23. package/dist/components/CouponList/components/skull.d.ts +2 -2
  24. package/dist/components/CouponList/components/unUsed.d.ts +5 -5
  25. package/dist/components/CouponList/components/used.d.ts +5 -5
  26. package/dist/components/CouponList/index.d.ts +2 -2
  27. package/dist/components/Cube/index.d.ts +17 -17
  28. package/dist/components/EvaluateList/index.d.ts +2 -2
  29. package/dist/components/Goods/index.d.ts +24 -24
  30. package/dist/components/GoodsClassify/components/classifyFloor.d.ts +1 -1
  31. package/dist/components/GoodsClassify/components/classifySkeleton.d.ts +1 -1
  32. package/dist/components/GoodsClassify/components/index.d.ts +2 -2
  33. package/dist/components/GoodsClassify/index.d.ts +2 -2
  34. package/dist/components/GoodsDetail/components/evaluateEntry.d.ts +2 -2
  35. package/dist/components/GoodsDetail/components/goodsDetailCollection.d.ts +1 -1
  36. package/dist/components/GoodsDetail/components/goodsDetailCoupon.d.ts +1 -1
  37. package/dist/components/GoodsDetail/components/goodsDetailEvaluate.d.ts +1 -1
  38. package/dist/components/GoodsDetail/components/goodsDetailHandleBar.d.ts +1 -1
  39. package/dist/components/GoodsDetail/components/goodsDetailInfo.d.ts +1 -1
  40. package/dist/components/GoodsDetail/components/goodsDetailPopup.d.ts +1 -1
  41. package/dist/components/GoodsDetail/components/goodsDetailPromotion.d.ts +1 -1
  42. package/dist/components/GoodsDetail/components/goodsDetailSize.d.ts +1 -1
  43. package/dist/components/GoodsDetail/components/index.d.ts +9 -9
  44. package/dist/components/GoodsDetail/index.d.ts +6 -6
  45. package/dist/components/GoodsDetailPromotion/index.d.ts +2 -2
  46. package/dist/components/GoodsDetailTopInfo/index.d.ts +2 -2
  47. package/dist/components/GoodsGroup/index.d.ts +25 -25
  48. package/dist/components/GoodsList/components/filter.d.ts +5 -5
  49. package/dist/components/GoodsList/components/index.d.ts +1 -1
  50. package/dist/components/GoodsList/index.d.ts +6 -6
  51. package/dist/components/Line/index.d.ts +11 -11
  52. package/dist/components/Mine/components/index.d.ts +2 -2
  53. package/dist/components/Mine/components/menuList.d.ts +1 -1
  54. package/dist/components/Mine/components/orderEntry.d.ts +1 -1
  55. package/dist/components/Mine/index.d.ts +7 -7
  56. package/dist/components/Notice/index.d.ts +12 -12
  57. package/dist/components/OrderDetail/index.d.ts +2 -2
  58. package/dist/components/OrderList/components/index.d.ts +3 -3
  59. package/dist/components/OrderList/components/mock.d.ts +1647 -1647
  60. package/dist/components/OrderList/components/orderItem.d.ts +15 -15
  61. package/dist/components/OrderList/components/orderListItem.d.ts +7 -7
  62. package/dist/components/OrderList/index.d.ts +2 -2
  63. package/dist/components/PaymentMode/config.d.ts +6 -6
  64. package/dist/components/PaymentMode/hooks/useOrderResult.d.ts +10 -11
  65. package/dist/components/PaymentMode/index.d.ts +4 -4
  66. package/dist/components/PlaceOrder/components/address.d.ts +12 -12
  67. package/dist/components/PlaceOrder/components/index.d.ts +3 -3
  68. package/dist/components/PlaceOrder/components/orderPrice.d.ts +12 -12
  69. package/dist/components/PlaceOrder/components/shop.d.ts +3 -3
  70. package/dist/components/PlaceOrder/index.d.ts +7 -7
  71. package/dist/components/PlaceOrderResult/index.d.ts +4 -4
  72. package/dist/components/Search/index.d.ts +14 -14
  73. package/dist/components/SearchPage/index.d.ts +8 -8
  74. package/dist/components/Service/index.d.ts +12 -12
  75. package/dist/components/Slider/index.d.ts +24 -24
  76. package/dist/components/Slider/item.d.ts +6 -6
  77. package/dist/components/Title/index.d.ts +17 -17
  78. package/dist/components/Video/index.d.ts +13 -13
  79. package/dist/components/index.d.ts +29 -29
  80. package/dist/index.d.ts +1 -1
  81. package/dist/index.js +1 -1
  82. package/dist/routerMap/index.d.ts +16 -16
  83. package/dist/static/icon/index.d.ts +7 -7
  84. package/dist/static/index.d.ts +1 -1
  85. package/dist/utils/checkImgUrl.d.ts +1 -1
  86. package/dist/utils/index.d.ts +1 -1
  87. package/dist/utils/payment.d.ts +14 -14
  88. package/dist/utils/serviceActionSheet.d.ts +1 -1
  89. package/package.json +12 -10
  90. package/dist/common/addressItem/index.js +0 -9
  91. package/dist/common/card/index.js +0 -6
  92. package/dist/common/coupon/index.js +0 -8
  93. package/dist/common/evaluateItem/index.js +0 -13
  94. package/dist/common/evaluateList/index.js +0 -12
  95. package/dist/common/icon/index.js +0 -12
  96. package/dist/common/mock/index.js +0 -658
  97. package/dist/common/stepNum/index.js +0 -9
  98. package/dist/components/AddressDetail/components/index.js +0 -1
  99. package/dist/components/AddressDetail/components/skull.js +0 -9
  100. package/dist/components/AddressDetail/config.js +0 -65
  101. package/dist/components/AddressDetail/index.js +0 -29
  102. package/dist/components/AddressList/components/index.js +0 -1
  103. package/dist/components/AddressList/components/skull.js +0 -9
  104. package/dist/components/AddressList/index.js +0 -17
  105. package/dist/components/Cart/components/cartItem.js +0 -33
  106. package/dist/components/Cart/components/index.js +0 -1
  107. package/dist/components/Cart/index.js +0 -24
  108. package/dist/components/ClassifyNav/index.js +0 -12
  109. package/dist/components/CouponList/components/index.js +0 -4
  110. package/dist/components/CouponList/components/overdue.js +0 -6
  111. package/dist/components/CouponList/components/skull.js +0 -9
  112. package/dist/components/CouponList/components/unUsed.js +0 -6
  113. package/dist/components/CouponList/components/used.js +0 -6
  114. package/dist/components/CouponList/index.js +0 -22
  115. package/dist/components/Cube/index.js +0 -28
  116. package/dist/components/EvaluateList/index.js +0 -40
  117. package/dist/components/Goods/index.js +0 -69
  118. package/dist/components/GoodsClassify/components/classifyFloor.js +0 -12
  119. package/dist/components/GoodsClassify/components/classifySkeleton.js +0 -12
  120. package/dist/components/GoodsClassify/components/index.js +0 -2
  121. package/dist/components/GoodsClassify/index.js +0 -45
  122. package/dist/components/GoodsDetail/components/evaluateEntry.js +0 -43
  123. package/dist/components/GoodsDetail/components/goodsDetailCollection.js +0 -64
  124. package/dist/components/GoodsDetail/components/goodsDetailCoupon.js +0 -44
  125. package/dist/components/GoodsDetail/components/goodsDetailEvaluate.js +0 -6
  126. package/dist/components/GoodsDetail/components/goodsDetailHandleBar.js +0 -27
  127. package/dist/components/GoodsDetail/components/goodsDetailInfo.js +0 -14
  128. package/dist/components/GoodsDetail/components/goodsDetailPopup.js +0 -11
  129. package/dist/components/GoodsDetail/components/goodsDetailPromotion.js +0 -8
  130. package/dist/components/GoodsDetail/components/goodsDetailSize.js +0 -17
  131. package/dist/components/GoodsDetail/components/index.js +0 -9
  132. package/dist/components/GoodsDetail/index.js +0 -28
  133. package/dist/components/GoodsDetailPromotion/index.js +0 -8
  134. package/dist/components/GoodsDetailTopInfo/index.js +0 -9
  135. package/dist/components/GoodsGroup/index.js +0 -27
  136. package/dist/components/GoodsList/components/filter.js +0 -43
  137. package/dist/components/GoodsList/components/index.js +0 -1
  138. package/dist/components/GoodsList/index.js +0 -16
  139. package/dist/components/Line/index.js +0 -18
  140. package/dist/components/Mine/components/index.js +0 -2
  141. package/dist/components/Mine/components/menuList.js +0 -22
  142. package/dist/components/Mine/components/orderEntry.js +0 -48
  143. package/dist/components/Mine/index.js +0 -15
  144. package/dist/components/Notice/index.js +0 -15
  145. package/dist/components/OrderDetail/index.js +0 -15
  146. package/dist/components/OrderList/components/index.js +0 -3
  147. package/dist/components/OrderList/components/mock.js +0 -4417
  148. package/dist/components/OrderList/components/orderItem.js +0 -7
  149. package/dist/components/OrderList/components/orderListItem.js +0 -38
  150. package/dist/components/OrderList/index.js +0 -17
  151. package/dist/components/PaymentMode/config.js +0 -14
  152. package/dist/components/PaymentMode/hooks/useOrderResult.js +0 -100
  153. package/dist/components/PaymentMode/index.js +0 -17
  154. package/dist/components/PlaceOrder/components/address.js +0 -33
  155. package/dist/components/PlaceOrder/components/index.js +0 -3
  156. package/dist/components/PlaceOrder/components/orderPrice.js +0 -7
  157. package/dist/components/PlaceOrder/components/shop.js +0 -8
  158. package/dist/components/PlaceOrder/index.js +0 -16
  159. package/dist/components/PlaceOrderResult/index.js +0 -16
  160. package/dist/components/Search/index.js +0 -34
  161. package/dist/components/SearchPage/index.js +0 -59
  162. package/dist/components/Service/index.js +0 -8
  163. package/dist/components/Slider/index.js +0 -28
  164. package/dist/components/Slider/item.js +0 -13
  165. package/dist/components/Title/index.js +0 -18
  166. package/dist/components/Video/index.js +0 -13
  167. package/dist/components/index.js +0 -29
  168. package/dist/options/index.js +0 -36
  169. package/dist/routerMap/index.js +0 -16
  170. package/dist/static/icon/index.js +0 -14
  171. package/dist/static/index.js +0 -1
  172. package/dist/utils/checkImgUrl.js +0 -9
  173. package/dist/utils/index.js +0 -1
  174. package/dist/utils/payment.js +0 -56
  175. package/dist/utils/serviceActionSheet.js +0 -31
@@ -1,44 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { useComponent, Popup, SmoothRadio } from '@brushes/qj-simulate-component';
3
- import { THREE_DOTS } from '../../../static';
4
- import { useState } from 'react';
5
- import { Coupon } from '../../../common/coupon';
6
- import { useDispatchImpl, useStore } from 'qj-mobile-store';
7
- const fake = [
8
- {
9
- title: '五一大促疯抢 满100立减10',
10
- date: '2022-10-01',
11
- price: 10,
12
- id: 1
13
- },
14
- {
15
- title: '五一大促疯抢 满100立减10',
16
- date: '2022-10-01',
17
- price: 20,
18
- id: 2
19
- },
20
- {
21
- title: '五一大促疯抢 满100立减10',
22
- date: '2022-10-01',
23
- price: 30,
24
- id: 3
25
- }
26
- ];
27
- export const GoodsDetailCoupon = () => {
28
- const { View, Text } = useComponent();
29
- const [visible, setVisible] = useState(false);
30
- const dispatch = useDispatchImpl();
31
- const { couponValue } = useStore();
32
- console.log(34, couponValue);
33
- const onChange = (value) => {
34
- dispatch({
35
- type: 'select',
36
- payload: {
37
- couponValue: value.detail.value
38
- }
39
- });
40
- };
41
- return (_jsxs(_Fragment, { children: [_jsxs(View, Object.assign({ className: 'goodsDetail-coupon', onClick: () => setVisible(true) }, { children: [_jsx(Text, Object.assign({ className: 'label' }, { children: "\u4F18\u60E0\u5238" })), _jsxs(View, Object.assign({ className: 'info' }, { children: [_jsx(Text, Object.assign({ className: 'label' }, { children: couponValue ? `已选择: ${couponValue}` : '请选择优惠券' })), _jsx("img", { src: THREE_DOTS, alt: "", className: 'icon' })] }))] })), _jsx(Popup, Object.assign({ popupVisible: visible, popupHandler: setVisible }, { children: _jsx(View, Object.assign({ className: 'goodsDetail-coupon-popup' }, { children: _jsx(View, Object.assign({ className: 'stampWrap' }, { children: _jsx(SmoothRadio, Object.assign({ onChange: onChange, defaultValue: 0 }, { children: fake.map((item, index) => {
42
- return _jsx(Coupon, { index: index, item: item }, index);
43
- }) })) })) })) }))] }));
44
- };
@@ -1,6 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useComponent } from '@brushes/qj-simulate-component';
3
- export const GoodsDetailEvaluate = () => {
4
- const { View } = useComponent();
5
- return _jsx(View, Object.assign({ className: 'goodsDetailEvaluate' }, { children: "1231232" }));
6
- };
@@ -1,27 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { switchTabImpl, useComponent, IconMobile } from '@brushes/qj-simulate-component';
3
- import { useDispatchImpl } from 'qj-mobile-store';
4
- import { routerMap } from '../../../routerMap';
5
- export const GoodsDetailHandleBar = () => {
6
- const { Text, View } = useComponent();
7
- const dispatch = useDispatchImpl();
8
- return (_jsxs(View, Object.assign({ className: 'goodsDetailHandleBar' }, { children: [_jsxs(View, Object.assign({ className: 'linkGroup' }, { children: [_jsx(IconMobile, { value: 'kefu', style: { fontSize: 22, display: 'block' } }), _jsx(Text, Object.assign({ className: 'txt' }, { children: "\u5BA2\u670D" }))] })), _jsxs(View, Object.assign({ className: 'linkGroup', onClick: () => switchTabImpl(routerMap.shopping) }, { children: [_jsx(IconMobile, { value: 'gouwuche', style: { fontSize: 22, display: 'block' } }), _jsx(Text, Object.assign({ className: 'txt' }, { children: "\u8D2D\u7269\u8F66" }))] })), _jsxs(View, Object.assign({ className: 'btnGroup' }, { children: [_jsx(View, Object.assign({ className: 'btn addCart', onClick: () => {
9
- dispatch({
10
- type: 'popupImpl',
11
- payload: {
12
- orderType: 0,
13
- popupVisible: true,
14
- isNeedButton: true
15
- }
16
- });
17
- } }, { children: "\u52A0\u5165\u8D2D\u7269\u8F66" })), _jsx(View, Object.assign({ onClick: () => {
18
- dispatch({
19
- type: 'popupImpl',
20
- payload: {
21
- orderType: 1,
22
- popupVisible: true,
23
- isNeedButton: true
24
- }
25
- });
26
- }, className: 'btn buy' }, { children: "\u7ACB\u5373\u8D2D\u4E70" }))] }))] })));
27
- };
@@ -1,14 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useComponent } from '@brushes/qj-simulate-component';
3
- import { useEffect, useState } from 'react';
4
- export const GoodsDetailInfo = ({ tabActive, goods }) => {
5
- const { View } = useComponent();
6
- const [goodsDetail, setDetail] = useState('');
7
- useEffect(() => {
8
- setDetail(goods.goodsRemark
9
- .replace(/<style>[\s\S]*<\/style>/gi, '')
10
- .replace(/\<img/gi, `<img class="mystyle" mode="widthFix"`)
11
- .replace(/<!--[\s\S]*-->/gi, ''));
12
- }, [goods.goodsRemark, tabActive]);
13
- return (_jsx(View, Object.assign({ className: 'goodsDetail-info' }, { children: _jsx("div", { dangerouslySetInnerHTML: { __html: goodsDetail || '' } }) })));
14
- };
@@ -1,11 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Popup, NumStep } from '@brushes/qj-simulate-component';
3
- import { useAddShopping } from 'qj-mobile-store';
4
- import { useComponent } from '@brushes/qj-simulate-component';
5
- export const GoodsDetailPopup = ({ goods }) => {
6
- const { count, spec, popupVisible, isNeedButton, handleChooseSize, handleStep, popupHandler, addShoppingImpl } = useAddShopping();
7
- const { View, Text, Image } = useComponent();
8
- return (_jsx(Popup, Object.assign({ popupVisible: popupVisible, popupHandler: popupHandler }, { children: _jsxs(View, Object.assign({ className: 'goodsDetail-size-popup' }, { children: [_jsxs(View, Object.assign({ className: 'content' }, { children: [_jsxs(View, Object.assign({ className: 'goodsInfo' }, { children: [_jsx(View, Object.assign({ className: 'lPart' }, { children: _jsx(Image, { src: goods.dataPic, alt: "", className: 'goodsImg' }) })), _jsxs(View, Object.assign({ className: 'rPart' }, { children: [_jsx(View, Object.assign({ className: 'name' }, { children: goods.goodsShowname || '' })), _jsxs(View, Object.assign({ className: 'price' }, { children: ["\uFFE5 ", goods.pricesetNprice.toFixed(2) || ''] })), _jsxs(View, Object.assign({ className: 'chosen' }, { children: ["\u5DF2\u9009\u62E9: ", spec] }))] }))] })), _jsxs(View, Object.assign({ className: 'sizeArr' }, { children: [_jsx(Text, Object.assign({ className: 'title' }, { children: "\u9009\u62E9\u989C\u8272" })), _jsx(View, Object.assign({ className: 'sizeArrItemWrap' }, { children: goods.rsSpecValueDomainList.map((item, index) => {
9
- return (_jsx(View, Object.assign({ className: `sizeItem ${spec === item.specValueValue ? 'active' : ''}`, onClick: handleChooseSize.bind(null, item.specValueValue) }, { children: item.specValueValue }), index));
10
- }) }))] })), _jsxs(View, Object.assign({ className: 'countWrap' }, { children: [_jsx(View, Object.assign({ className: 'label' }, { children: "\u8D2D\u4E70\u6570\u91CF" })), _jsx(NumStep, { count: count, handleStep: handleStep })] }))] })), isNeedButton && (_jsx(View, Object.assign({ className: 'btnWrap', onClick: addShoppingImpl }, { children: _jsx(Text, Object.assign({ className: 'btn' }, { children: "\u786E\u8BA4" })) })))] })) })));
11
- };
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useComponent } from '@brushes/qj-simulate-component';
3
- export const GoodsDetailPromotion = ({ promotionList }) => {
4
- const { View, Text } = useComponent();
5
- return (_jsxs(View, Object.assign({ className: 'goodsDetail-promotion' }, { children: [_jsx(Text, Object.assign({ className: 'label' }, { children: "\u4FC3\u9500" })), _jsx(View, Object.assign({ className: 'group' }, { children: promotionList.length ? (promotionList.map(({ discName }, index) => {
6
- return (_jsx(View, Object.assign({ className: 'item' }, { children: discName }), index));
7
- })) : (_jsx(View, Object.assign({ className: 'noPromotion' }, { children: "\u6682\u65E0\u4FC3\u9500\u6D3B\u52A8" }))) }))] })));
8
- };
@@ -1,17 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { useComponent } from '@brushes/qj-simulate-component';
3
- import { THREE_DOTS } from '../../../static';
4
- import { GoodsDetailPopup } from './goodsDetailPopup';
5
- import { useDispatchImpl, useStore } from 'qj-mobile-store';
6
- export const GoodsDetailSize = ({ goods }) => {
7
- const { View, Text } = useComponent();
8
- const { count, spec } = useStore();
9
- const dispatch = useDispatchImpl();
10
- return (_jsxs(_Fragment, { children: [_jsxs(View, Object.assign({ className: 'goodsDetail-size', onClick: () => dispatch({
11
- type: 'popupImpl',
12
- payload: {
13
- popupVisible: true,
14
- isNeedButton: false
15
- }
16
- }) }, { children: [_jsx(Text, Object.assign({ className: 'label' }, { children: "\u89C4\u683C" })), _jsxs(View, Object.assign({ className: 'info' }, { children: [_jsxs(Text, Object.assign({ className: 'label' }, { children: ["\u5DF2\u9009\u62E9 \u6570\u91CF: ", count, " \u89C4\u683C: ", spec] })), _jsx("img", { src: THREE_DOTS, alt: "", className: 'icon' })] }))] })), _jsx(GoodsDetailPopup, { goods: goods })] }));
17
- };
@@ -1,9 +0,0 @@
1
- export * from './evaluateEntry';
2
- export * from './goodsDetailCollection';
3
- export * from './goodsDetailCoupon';
4
- export * from './goodsDetailEvaluate';
5
- export * from './goodsDetailHandleBar';
6
- export * from './goodsDetailInfo';
7
- export * from './goodsDetailPopup';
8
- export * from './goodsDetailPromotion';
9
- export * from './goodsDetailSize';
@@ -1,28 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { memo } from 'react';
3
- import { _ } from '@brushes/tools';
4
- import { Slider } from '../Slider';
5
- import { GoodsDetailPromotion, GoodsDetailCoupon, GoodsDetailCollection, GoodsDetailHandleBar, GoodsDetailInfo, GoodsDetailEvaluate, GoodsDetailSize } from './components';
6
- import { goodsDetailStore, useGoodsDetailImpl } from 'qj-mobile-store';
7
- import { getEnv } from '@brushes/api';
8
- import { useComponent } from '@brushes/qj-simulate-component';
9
- const { isEmpty } = _;
10
- const flag = getEnv();
11
- const { StoreProvider } = goodsDetailStore;
12
- const GoodsDetailJsx = ({ skuCode }) => {
13
- return (_jsx(StoreProvider, { children: _jsx(GoodsDetailJsxInner, { skuCode: skuCode }) }));
14
- };
15
- const GoodsDetailJsxInner = ({ skuCode }) => {
16
- var _a;
17
- const { View, Text, Skeleton } = useComponent();
18
- const { goods, promotionArr, checkCollectionObj, setCheckCollectionObj, sliderArr, tabActive, setTabActive } = useGoodsDetailImpl(skuCode);
19
- return (_jsx(View, Object.assign({ className: 'GoodsDetailWrap', style: {
20
- minHeight: flag ? '' : '667px',
21
- height: flag ? '' : 'auto',
22
- overflow: flag ? '' : 'auto'
23
- } }, { children: isEmpty(goods) ? (_jsxs(View, Object.assign({ className: 'skeleton' }, { children: [_jsx(Skeleton, { animated: true, style: {
24
- '--width': '100%',
25
- '--height': '300px'
26
- } }), _jsx(Skeleton.Title, { animated: true }), _jsx(Skeleton.Paragraph, { lineCount: 10, animated: true })] }))) : (_jsxs(_Fragment, { children: [_jsx(View, Object.assign({ className: 'topSlider' }, { children: _jsx(Slider, { selectImg: sliderArr, type: 1, imgHeight: { height: 375, width: 375 } }) })), _jsxs(View, Object.assign({ className: 'goodsDetail-topInfo' }, { children: [_jsxs(View, { children: [_jsx(Text, Object.assign({ className: 'name' }, { children: goods === null || goods === void 0 ? void 0 : goods.goodsName })), _jsxs(Text, Object.assign({ className: 'price' }, { children: ["\uFFE5", (_a = goods === null || goods === void 0 ? void 0 : goods.pricesetNprice) === null || _a === void 0 ? void 0 : _a.toFixed(2)] }))] }), _jsx(View, Object.assign({ className: 'rPart' }, { children: _jsx(GoodsDetailCollection, { goods: goods, checkCollectionObj: checkCollectionObj, setCheckCollectionObj: setCheckCollectionObj }) }))] })), _jsx(GoodsDetailSize, { goods: goods }), _jsx(GoodsDetailPromotion, { promotionList: promotionArr }), _jsx(GoodsDetailCoupon, {}), _jsxs(View, Object.assign({ className: 'goodsDetailTab' }, { children: [_jsxs(View, Object.assign({ className: 'tabs' }, { children: [_jsxs(Text, Object.assign({ className: `tabsItem ${tabActive === 1 ? 'active' : ''}`, onClick: () => setTabActive(1) }, { children: ["\u5546\u54C1\u8BE6\u60C5", _jsx(Text, { className: 'line' })] })), _jsxs(Text, Object.assign({ className: `tabsItem ${tabActive === 2 ? 'active' : ''}`, onClick: () => setTabActive(2) }, { children: ["\u8BC4\u4EF7", _jsx(Text, { className: 'line' })] }))] })), _jsx(View, Object.assign({ className: 'group' }, { children: tabActive === 1 ? (_jsx(GoodsDetailInfo, { tabActive: tabActive, goods: goods })) : (_jsx(GoodsDetailEvaluate, {})) }))] })), _jsx(GoodsDetailHandleBar, {})] })) })));
27
- };
28
- export const GoodsDetail = memo(GoodsDetailJsx);
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { memo } from 'react';
3
- import { useComponent } from '@brushes/qj-simulate-component';
4
- const GoodsDetailPromotionJsx = () => {
5
- const { View } = useComponent();
6
- return (_jsx(View, Object.assign({ className: 'goodsDetail-promotion-wrap' }, { children: _jsx(View, { className: 'goodsDetail-promotion' }) })));
7
- };
8
- export const GoodsDetailPromotion = memo(GoodsDetailPromotionJsx);
@@ -1,9 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { memo } from 'react';
3
- import { useComponent } from '@brushes/qj-simulate-component';
4
- import { SEARCH } from '../../static';
5
- const GoodsDetailTopInfoJsx = () => {
6
- const { View, Text } = useComponent();
7
- return (_jsx(View, Object.assign({ className: 'goodsDetail-topInfo-wrap' }, { children: _jsxs(View, Object.assign({ className: 'goodsDetail-topInfo' }, { children: [_jsxs(View, { children: [_jsx(Text, Object.assign({ className: 'name' }, { children: "\u5BA0\u4FA3 \u72D7\u72D7\u96F6\u98DF\u9E21\u8089\u7ED5\u997C\u5E72620g\u5BA0" })), _jsx(Text, Object.assign({ className: 'price' }, { children: "\uFFE52300.00" }))] }), _jsxs(View, Object.assign({ className: 'rPart' }, { children: [_jsx("img", { src: SEARCH, alt: "", className: 'icon' }), _jsx(Text, Object.assign({ className: 'txt' }, { children: "\u5DF2\u6536\u85CF" }))] }))] })) })));
8
- };
9
- export const GoodsDetailTopInfo = memo(GoodsDetailTopInfoJsx);
@@ -1,27 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { memo, useEffect, useState } from 'react';
3
- import { antdMobile } from '@brushes/qj-simulate-component';
4
- import { _ } from '@brushes/tools';
5
- import { Goods } from '../Goods';
6
- const { JumboTabs } = antdMobile;
7
- const { isUndefined, isEmpty } = _;
8
- const GoodsGroupJsx = ({ defaultValue = [], type, selectGoodsGroup = [], marginTop, marginBottom, borderRadius }) => {
9
- const [list, setList] = useState(defaultValue);
10
- useEffect(() => {
11
- const computedArr = selectGoodsGroup
12
- .filter((item) => !isUndefined(item))
13
- .filter((item) => !Object.values(item).every((citem) => isUndefined(citem)));
14
- let arr = defaultValue;
15
- if (!isEmpty(computedArr)) {
16
- arr = computedArr;
17
- }
18
- setList(arr);
19
- }, [selectGoodsGroup]);
20
- return (_jsx(JumboTabs, Object.assign({ style: {
21
- marginTop: marginTop + 'px',
22
- marginBottom: marginBottom + 'px'
23
- } }, { children: list.map((item, index) => {
24
- return (_jsx(JumboTabs.Tab, Object.assign({ title: item.title, description: item.subTitle }, { children: _jsx(Goods, { defaultValue: item.defaultValue, cell: 2, goods: item.goodsList, classCode: 'two', circular: borderRadius }) }), index));
25
- }) })));
26
- };
27
- export const GoodsGroup = memo(GoodsGroupJsx);
@@ -1,43 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useState } from 'react';
3
- import { useComponent } from '@brushes/qj-simulate-component';
4
- import { QjMobileIcon } from '../../../common/icon';
5
- const dataConfig = [
6
- {
7
- name: '默认',
8
- sortField: 'pricesetNprice'
9
- },
10
- {
11
- name: '新品',
12
- sortField: ''
13
- },
14
- {
15
- name: '销量',
16
- sortField: 'goodsSalesvolume',
17
- order: 'asc'
18
- },
19
- {
20
- name: '价格',
21
- sortField: 'pricesetNprice',
22
- order: 'asc'
23
- }
24
- ];
25
- export const Filter = ({ setParams }) => {
26
- const { View } = useComponent();
27
- const [active, setActive] = useState(0);
28
- const [config, setConfig] = useState(dataConfig);
29
- const handleSort = (sortField, index, order) => {
30
- setActive(index);
31
- if (order) {
32
- setConfig((prevState) => {
33
- prevState[index].order = order === 'asc' ? 'desc' : 'asc';
34
- return [...prevState];
35
- });
36
- }
37
- setParams({
38
- sortField,
39
- order
40
- });
41
- };
42
- return (_jsx(View, Object.assign({ className: 'sortWrap' }, { children: config.map(({ order, sortField, name }, index) => (_jsxs(View, Object.assign({ className: `sortItem ${active === index ? 'active' : ''}`, onClick: () => handleSort(sortField, index, order) }, { children: [name, order && (_jsx(QjMobileIcon, { style: { color: active === index ? '#f00' : '#444', fontSize: 20 }, value: order === 'desc' ? 'jiangxu' : 'shengxu' }))] }), index))) })));
43
- };
@@ -1 +0,0 @@
1
- export * from './filter';
@@ -1,16 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { memo, useState } from 'react';
3
- import { Loading, navigatorImpl, ScrollView, useComponent } from '@brushes/qj-simulate-component';
4
- import { QjMobileIcon } from '../../common/icon';
5
- import { Filter } from './components';
6
- import { useGoodsList } from 'qj-mobile-store';
7
- import { routerMap } from '../../routerMap';
8
- const GoodsListJsx = ({ classtreeCode = '', searchParam = '' }) => {
9
- const { View, Text } = useComponent();
10
- const [filterParmas, setFilterParams] = useState({});
11
- const { loading, getData, list } = useGoodsList(classtreeCode, searchParam, filterParmas);
12
- return (_jsxs(View, Object.assign({ className: 'goodsList' }, { children: [_jsxs(View, Object.assign({ className: 'top-info' }, { children: [_jsxs(View, Object.assign({ className: 'top-info-search', onClick: () => navigatorImpl(routerMap.search) }, { children: [_jsx(QjMobileIcon, { value: "fenxiang" }), _jsx(Text, { children: "\u641C\u7D22\u5546\u54C1" })] })), _jsx(Filter, { setParams: setFilterParams })] })), _jsx(View, Object.assign({ className: 'listWrap' }, { children: _jsxs(ScrollView, Object.assign({ onScroll: () => getData(filterParmas), style: { height: '100vh' } }, { children: [_jsx(View, Object.assign({ className: 'list' }, { children: list.map((item) => {
13
- return (_jsxs(View, Object.assign({ onClick: () => navigatorImpl(`${routerMap.goodDetail}?skuCode=${item.skuCode}`), className: 'listItem' }, { children: [_jsx(View, { className: 'img', style: { backgroundImage: `url(${item.dataPic})` } }), _jsx(Text, Object.assign({ className: 'name' }, { children: item.goodsName })), _jsxs(Text, Object.assign({ className: 'price' }, { children: ["\uFFE5 ", item.pricesetNprice.toFixed(2)] }))] }), item.skuCode));
14
- }) })), loading ? _jsx(Loading, {}) : null] })) }))] })));
15
- };
16
- export const GoodsList = memo(GoodsListJsx);
@@ -1,18 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { memo } from 'react';
3
- import { useComponent } from '@brushes/qj-simulate-component';
4
- const LineJsx = ({ borderRadius, height, width, backgroundColor, paddingTop, paddingBottom }) => {
5
- const { View } = useComponent();
6
- return (_jsx(View, Object.assign({ style: {
7
- paddingTop,
8
- paddingBottom
9
- } }, { children: _jsx(View, { style: {
10
- borderRadius: borderRadius + '%',
11
- width: width + '%',
12
- height: height + 'px',
13
- backgroundColor,
14
- marginLeft: 'auto',
15
- marginRight: 'auto'
16
- } }) })));
17
- };
18
- export const Line = memo(LineJsx);
@@ -1,2 +0,0 @@
1
- export * from './menuList';
2
- export * from './orderEntry';
@@ -1,22 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useRef } from 'react';
3
- import { useComponent, IconMobile, navigatorImpl } from '@brushes/qj-simulate-component';
4
- import { routerMap } from '../../../routerMap';
5
- export const MenuList = () => {
6
- const { View, Text } = useComponent();
7
- const config = useRef([
8
- {
9
- icon: 'youhuiquan',
10
- label: '优惠券',
11
- link: 'couponList'
12
- },
13
- {
14
- icon: 'dizhi',
15
- label: '地址管理',
16
- link: 'addressList'
17
- }
18
- ]);
19
- return (_jsx(View, Object.assign({ className: 'menuList' }, { children: config.current.map((item, idx) => {
20
- return (_jsxs(View, Object.assign({ className: 'menuListItem', onClick: () => navigatorImpl(routerMap[item.link]) }, { children: [_jsxs(View, Object.assign({ className: 'lPart' }, { children: [_jsx(IconMobile, { value: item.icon }), _jsx(Text, Object.assign({ className: 'label' }, { children: item.label }))] })), _jsx(IconMobile, { value: 'xiangyou1' })] }), idx));
21
- }) })));
22
- };
@@ -1,48 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { navigatorImpl, useComponent, IconMobile } from '@brushes/qj-simulate-component';
3
- import { getContractNumbers } from '@brushes/api';
4
- import { useEffect, useRef } from 'react';
5
- import { routerMap } from '../../../routerMap';
6
- export const OrderEntry = () => {
7
- const { View, Text, Badge } = useComponent();
8
- useEffect(() => {
9
- getContractNumbers().then((res) => {
10
- console.log('----------', res);
11
- });
12
- }, []);
13
- const config = useRef([
14
- {
15
- badge: 5,
16
- label: '待付款',
17
- icon: 'daifukuan',
18
- link: ''
19
- },
20
- {
21
- badge: 0,
22
- label: '待发货',
23
- icon: 'daifahuo',
24
- link: ''
25
- },
26
- {
27
- badge: 0,
28
- label: '待收货',
29
- icon: 'daishouhuo',
30
- link: ''
31
- },
32
- {
33
- badge: 0,
34
- label: '已完成',
35
- icon: 'yiwancheng',
36
- link: ''
37
- },
38
- {
39
- badge: 0,
40
- label: '退换/售后',
41
- icon: 'shouhou',
42
- link: ''
43
- }
44
- ]);
45
- return (_jsxs(View, Object.assign({ className: 'orderEntry' }, { children: [_jsxs(View, Object.assign({ className: 'title' }, { children: [_jsx(View, Object.assign({ className: 'name' }, { children: "\u6211\u7684\u8BA2\u5355" })), _jsx(View, Object.assign({ className: 'more', onClick: () => navigatorImpl(routerMap.order) }, { children: "\u67E5\u770B\u5168\u90E8" }))] })), _jsx(View, Object.assign({ className: 'content' }, { children: config.current.map((item, index) => (_jsxs(View, Object.assign({ onClick: () => navigatorImpl(`${routerMap.order}?id=${index + 1}`), className: 'contentItem' }, { children: [item.badge ? (_jsx(Badge, Object.assign({ content: item.badge, color: '#000', style: { color: '#fff', fontSize: 12 } }, { children: _jsx(IconMobile, { value: item.icon }) }))) : (
46
- // <Image src={item.icon} mode={'widthFix'} className={'icon'}/>
47
- _jsx(IconMobile, { value: item.icon })), _jsx(Text, Object.assign({ className: 'subTitle' }, { children: item.label }))] }), index))) }))] })));
48
- };
@@ -1,15 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { memo } from 'react';
3
- import { useComponent, IconMobile, navigatorImpl } from '@brushes/qj-simulate-component';
4
- import { getEnv } from '@brushes/api';
5
- import { OrderEntry, MenuList } from './components';
6
- import { routerMap } from '../../routerMap';
7
- import { serviceActionSheet } from '../../utils';
8
- const MineJsx = ({ avatarStyle, banner }) => {
9
- const { View, Text } = useComponent();
10
- const flag = getEnv();
11
- return (_jsxs(View, Object.assign({ className: 'mine', style: {
12
- height: flag ? '100%' : '667px'
13
- } }, { children: [_jsxs(View, Object.assign({ className: 'topBoard' }, { children: [_jsx(IconMobile, { value: 'shezhi', onClick: () => navigatorImpl(routerMap.setting) }), _jsx(IconMobile, { value: 'kehufuwukefu', onClick: serviceActionSheet })] })), _jsxs(View, Object.assign({ className: 'userSetting' }, { children: [_jsxs(View, Object.assign({ className: 'lPart' }, { children: [_jsx(Text, Object.assign({ className: 'name' }, { children: "\u5F20\u4E09" })), _jsx(View, Object.assign({ className: 'link' }, { children: '编辑个人资料 >' }))] })), _jsx("img", { src: "", alt: "", className: 'avatar', style: { borderRadius: avatarStyle ? '50%' : '2px' }, onClick: () => navigatorImpl(routerMap.setting) })] })), _jsx(OrderEntry, {}), _jsx(MenuList, {}), banner ? _jsx("img", { className: 'banner', src: "", alt: "" }) : null] })));
14
- };
15
- export const Mine = memo(MineJsx);
@@ -1,15 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useComponent } from '@brushes/qj-simulate-component';
3
- export const Notice = ({ text, backgroundColor, color, fontSize, borderColor, paddingTop, paddingBottom, paddingLeft, paddingRight }) => {
4
- const { View, NoticeBar } = useComponent();
5
- if (!View)
6
- return null;
7
- return (_jsx(View, Object.assign({ style: { paddingTop, paddingBottom } }, { children: _jsx(View, { children: _jsx(NoticeBar, { speed: 50, style: {
8
- '--border-color': borderColor,
9
- '--font-size': fontSize + 'px',
10
- '--background-color': backgroundColor,
11
- '--text-color': color,
12
- paddingLeft,
13
- paddingRight
14
- }, content: text, color: "alert" }) }) })));
15
- };
@@ -1,15 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { memo } from 'react';
3
- import { useComponent, antdMobile, navigatorImpl } from '@brushes/qj-simulate-component';
4
- import { ORDERTOPAY } from '../../static';
5
- import { CardJsx } from '../../common/card';
6
- import { result } from '../OrderList/components/mock';
7
- import { routerMap } from '../../routerMap';
8
- const { Button } = antdMobile;
9
- const OrderDetailJsx = () => {
10
- const { View, Text } = useComponent();
11
- return (_jsxs(View, Object.assign({ className: 'orderDetail' }, { children: [_jsx(View, Object.assign({ className: 'orderDetailTopTitle' }, { children: _jsxs(View, Object.assign({ className: 'orderDetailTopTitleContent' }, { children: [_jsx(Text, Object.assign({ className: 'title' }, { children: "\u8BA2\u5355\u8BE6\u60C5" })), _jsxs(View, Object.assign({ className: 'subTitleWrap' }, { children: [_jsx("img", { src: ORDERTOPAY, alt: "", className: 'subTitleIcon' }), _jsx(Text, Object.assign({ className: 'subTitle' }, { children: "\u5DF2\u5B8C\u6210" }))] }))] })) })), _jsx(View, Object.assign({ className: 'orderDetailContent' }, { children: _jsxs(View, Object.assign({ style: { position: 'relative', top: -26 } }, { children: [_jsxs(View, Object.assign({ className: 'addressInfo' }, { children: [_jsx(View, Object.assign({ className: 'lPart' }, { children: _jsx("img", { src: ORDERTOPAY, alt: "", className: 'icon' }) })), _jsxs(View, Object.assign({ className: 'mPart' }, { children: [_jsxs(View, Object.assign({ className: 'personInfo' }, { children: [_jsx(Text, Object.assign({ className: 'personName' }, { children: "\u674E\u660E\u771F" })), _jsx(Text, Object.assign({ className: 'personPhone' }, { children: "13679126756" }))] })), _jsx(View, Object.assign({ className: 'address' }, { children: "\u4E0A\u6D77\u5E02\u95F5\u884C\u533A\u53E4\u7F8E\u8DEF\u534E\u4E00\u65B0\u57CE18-201" }))] })), _jsx(View, Object.assign({ className: 'rPart' }, { children: _jsx("img", { src: ORDERTOPAY, alt: "", className: 'icon' }) }))] })), _jsxs(View, Object.assign({ className: 'orderDetailGoodsWrap' }, { children: [result.rows[0].goodsList.map((item) => (_jsx(CardJsx, Object.assign({}, item), item.contractGoodsId))), _jsxs(View, Object.assign({ className: 'btnGroup' }, { children: [_jsx(Button, Object.assign({ shape: "rounded", className: 'btn white' }, { children: "\u67E5\u770B\u7269\u6D41" })), _jsx(Button, Object.assign({ shape: "rounded", onClick: () => {
12
- navigatorImpl(routerMap.rate);
13
- }, className: 'btn black' }, { children: "\u786E\u8BA4\u6536\u8D27" }))] })), _jsxs(View, Object.assign({ className: 'priceInfo' }, { children: [_jsxs(View, Object.assign({ className: 'priceInfoFloor top' }, { children: [_jsx(View, Object.assign({ className: 'totalNum' }, { children: "\u51712\u4EF6\u5546\u54C1" })), _jsx(View, Object.assign({ className: 'totalPrice' }, { children: "\u5408\u8BA1 \uFFE51960.00" }))] })), _jsxs(View, Object.assign({ className: 'priceInfoFloor' }, { children: [_jsx(View, Object.assign({ className: 'totalNum' }, { children: "\u5546\u54C1\u603B\u989D" })), _jsx(View, Object.assign({ className: 'totalPrice' }, { children: "\u5408\u8BA1 \uFFE51960.00" }))] })), _jsxs(View, Object.assign({ className: 'priceInfoFloor' }, { children: [_jsx(View, Object.assign({ className: 'totalNum' }, { children: "\u4F18\u60E0" })), _jsx(View, Object.assign({ className: 'totalPrice' }, { children: "\u5408\u8BA1 \uFFE51960.00" }))] }))] }))] })), _jsxs(View, Object.assign({ className: 'express' }, { children: [_jsx(View, Object.assign({ className: 'label' }, { children: "\u914D\u9001\u65B9\u5F0F" })), _jsx(View, Object.assign({ className: 'name' }, { children: "\u5FEB\u9012" }))] })), _jsxs(View, Object.assign({ className: 'orderInfo' }, { children: [_jsx(View, Object.assign({ className: 'orderInfoItem' }, { children: _jsx(View, Object.assign({ className: 'label' }, { children: "\u8BA2\u5355\u4FE1\u606F" })) })), _jsxs(View, Object.assign({ className: 'orderInfoItem' }, { children: [_jsx(View, Object.assign({ className: 'label' }, { children: "\u4E70\u5BB6\u7559\u8A00" })), _jsx(View, Object.assign({ className: 'name' }, { children: "\u5FEB\u70B9\u53D1\u8D27\u54DF" }))] })), _jsxs(View, Object.assign({ className: 'orderInfoItem' }, { children: [_jsx(View, Object.assign({ className: 'label' }, { children: "\u8BA2\u5355\u7F16\u53F7" })), _jsx(View, Object.assign({ className: 'name' }, { children: "243728743824782" }))] })), _jsxs(View, Object.assign({ className: 'orderInfoItem' }, { children: [_jsx(View, Object.assign({ className: 'label' }, { children: "\u7CFB\u7EDF\u7F16\u53F7" })), _jsx(View, Object.assign({ className: 'name' }, { children: "243728743824782" }))] })), _jsxs(View, Object.assign({ className: 'orderInfoItem' }, { children: [_jsx(View, Object.assign({ className: 'label' }, { children: "\u4E0B\u5355\u65F6\u95F4" })), _jsx(View, Object.assign({ className: 'name' }, { children: "2022-10-01 10:00:00" }))] }))] })), _jsxs(View, Object.assign({ className: 'btnGroupFooter' }, { children: [_jsx(Button, Object.assign({ shape: "rounded" }, { children: "\u7533\u8BF7\u9000\u6B3E" })), _jsx(Button, Object.assign({ shape: "rounded" }, { children: "\u7533\u8BF7\u552E\u540E" }))] }))] })) }))] })));
14
- };
15
- export const OrderDetail = memo(OrderDetailJsx);
@@ -1,3 +0,0 @@
1
- export * from './mock';
2
- export * from './orderItem';
3
- export * from './orderListItem';