s-material-react 0.1.18 → 0.1.19

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 (95) hide show
  1. package/dist/components/AddressDetail/components/index.d.ts +1 -0
  2. package/dist/components/AddressDetail/components/index.js +1 -1
  3. package/dist/components/AddressDetail/index.js +2 -2
  4. package/dist/components/AddressList/index.js +1 -1
  5. package/dist/components/Cart/components/cartItem.js +1 -2
  6. package/dist/components/Cart/components/index.d.ts +1 -0
  7. package/dist/components/Cart/components/index.js +1 -0
  8. package/dist/components/Cart/index.js +2 -3
  9. package/dist/components/ClassifyNav/index.js +3 -14
  10. package/dist/components/CouponList/components/index.d.ts +4 -0
  11. package/dist/components/CouponList/components/index.js +4 -0
  12. package/dist/components/CouponList/components/overdue.d.ts +5 -0
  13. package/dist/components/CouponList/components/overdue.js +6 -0
  14. package/dist/components/CouponList/components/skull.d.ts +2 -0
  15. package/dist/components/CouponList/components/skull.js +9 -0
  16. package/dist/components/CouponList/components/unUsed.d.ts +5 -0
  17. package/dist/components/CouponList/components/unUsed.js +6 -0
  18. package/dist/components/CouponList/components/used.d.ts +5 -0
  19. package/dist/components/CouponList/components/used.js +6 -0
  20. package/dist/components/CouponList/index.js +11 -18
  21. package/dist/components/Cube/index.js +3 -14
  22. package/dist/components/GoodsClassify/components/index.d.ts +2 -0
  23. package/dist/components/GoodsClassify/components/index.js +2 -0
  24. package/dist/components/GoodsClassify/index.js +1 -1
  25. package/dist/components/GoodsDetail/components/goodsDetailCollection.d.ts +1 -2
  26. package/dist/components/GoodsDetail/components/goodsDetailCollection.js +1 -2
  27. package/dist/components/GoodsDetail/components/goodsDetailCoupon.d.ts +1 -2
  28. package/dist/components/GoodsDetail/components/goodsDetailCoupon.js +2 -3
  29. package/dist/components/GoodsDetail/components/goodsDetailEvaluate.d.ts +1 -2
  30. package/dist/components/GoodsDetail/components/goodsDetailEvaluate.js +2 -3
  31. package/dist/components/GoodsDetail/components/goodsDetailHandleBar.d.ts +1 -2
  32. package/dist/components/GoodsDetail/components/goodsDetailHandleBar.js +2 -3
  33. package/dist/components/GoodsDetail/components/goodsDetailInfo.d.ts +1 -2
  34. package/dist/components/GoodsDetail/components/goodsDetailInfo.js +1 -2
  35. package/dist/components/GoodsDetail/components/goodsDetailPopup.d.ts +1 -2
  36. package/dist/components/GoodsDetail/components/goodsDetailPopup.js +2 -3
  37. package/dist/components/GoodsDetail/components/goodsDetailPromotion.d.ts +1 -2
  38. package/dist/components/GoodsDetail/components/goodsDetailPromotion.js +1 -2
  39. package/dist/components/GoodsDetail/components/goodsDetailSize.d.ts +1 -2
  40. package/dist/components/GoodsDetail/components/goodsDetailSize.js +3 -4
  41. package/dist/components/GoodsDetail/components/index.d.ts +9 -0
  42. package/dist/components/GoodsDetail/components/index.js +9 -0
  43. package/dist/components/GoodsDetail/index.js +3 -9
  44. package/dist/components/GoodsList/components/index.d.ts +1 -0
  45. package/dist/components/GoodsList/components/index.js +1 -0
  46. package/dist/components/GoodsList/index.js +2 -2
  47. package/dist/components/Mine/components/index.d.ts +2 -0
  48. package/dist/components/Mine/components/index.js +2 -0
  49. package/dist/components/Mine/index.js +3 -3
  50. package/dist/components/OrderList/components/index.d.ts +3 -0
  51. package/dist/components/OrderList/components/index.js +3 -0
  52. package/dist/components/OrderList/components/{OrderListItem.d.ts → orderListItem.d.ts} +0 -0
  53. package/dist/components/OrderList/components/{OrderListItem.js → orderListItem.js} +0 -0
  54. package/dist/components/OrderList/index.js +1 -1
  55. package/dist/components/PaymentMode/index.js +1 -1
  56. package/dist/components/PlaceOrder/components/index.d.ts +3 -0
  57. package/dist/components/PlaceOrder/components/index.js +3 -0
  58. package/dist/components/PlaceOrder/components/orderPrice.d.ts +2 -2
  59. package/dist/components/PlaceOrder/components/orderPrice.js +1 -2
  60. package/dist/components/PlaceOrder/components/shop.d.ts +1 -2
  61. package/dist/components/PlaceOrder/components/shop.js +1 -2
  62. package/dist/components/PlaceOrder/index.js +2 -4
  63. package/dist/components/PlaceOrderResult/index.js +2 -1
  64. package/dist/components/SearchPage/index.js +0 -1
  65. package/dist/utils/index.d.ts +1 -0
  66. package/dist/utils/index.js +1 -1
  67. package/dist/utils/serviceActionSheet.d.ts +1 -0
  68. package/dist/utils/serviceActionSheet.js +31 -0
  69. package/package.json +4 -5
  70. package/dist/components/AddressDetail/hooks/index.d.ts +0 -1
  71. package/dist/components/AddressDetail/hooks/index.js +0 -1
  72. package/dist/components/AddressDetail/hooks/useAddAddress.d.ts +0 -26
  73. package/dist/components/AddressDetail/hooks/useAddAddress.js +0 -80
  74. package/dist/components/AddressList/hooks/index.d.ts +0 -1
  75. package/dist/components/AddressList/hooks/index.js +0 -1
  76. package/dist/components/AddressList/hooks/useAddressList.d.ts +0 -6
  77. package/dist/components/AddressList/hooks/useAddressList.js +0 -74
  78. package/dist/components/Cart/hooks/index.d.ts +0 -19
  79. package/dist/components/Cart/hooks/index.js +0 -90
  80. package/dist/components/Cart/store/index.d.ts +0 -10
  81. package/dist/components/Cart/store/index.js +0 -23
  82. package/dist/components/GoodsDetail/hooks/index.d.ts +0 -2
  83. package/dist/components/GoodsDetail/hooks/index.js +0 -2
  84. package/dist/components/GoodsDetail/hooks/useAddShopping.d.ts +0 -10
  85. package/dist/components/GoodsDetail/hooks/useAddShopping.js +0 -74
  86. package/dist/components/GoodsDetail/hooks/useGoodsDetailImpl.d.ts +0 -13
  87. package/dist/components/GoodsDetail/hooks/useGoodsDetailImpl.js +0 -85
  88. package/dist/components/GoodsDetail/store/index.d.ts +0 -10
  89. package/dist/components/GoodsDetail/store/index.js +0 -34
  90. package/dist/components/GoodsList/hooks/useGoodsList.d.ts +0 -12
  91. package/dist/components/GoodsList/hooks/useGoodsList.js +0 -54
  92. package/dist/components/PlaceOrder/hooks/usePlaceOrder.d.ts +0 -18
  93. package/dist/components/PlaceOrder/hooks/usePlaceOrder.js +0 -234
  94. package/dist/components/PlaceOrderResult/hooks/useOrderResult.d.ts +0 -3
  95. package/dist/components/PlaceOrderResult/hooks/useOrderResult.js +0 -93
@@ -0,0 +1 @@
1
+ export * from './skull';
@@ -1 +1 @@
1
- "use strict";
1
+ export * from './skull';
@@ -2,9 +2,9 @@ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { memo } from 'react';
3
3
  import { getEnv } from '@brushes/api';
4
4
  import { config } from './config';
5
- import { useEditAddress } from './hooks';
5
+ import { useEditAddress } from 'qj-mobile-store';
6
6
  import { useComponent, antdMobile } from '@brushes/qj-simulate-component';
7
- import { Skull } from './components/skull';
7
+ import { Skull } from './components';
8
8
  const flag = getEnv();
9
9
  const AddressDetailJsx = ({ addressId = undefined }) => {
10
10
  const { View } = useComponent();
@@ -3,7 +3,7 @@ import { memo } from 'react';
3
3
  import { navigatorImpl, useComponent } from '@brushes/qj-simulate-component';
4
4
  import { getEnv } from '@brushes/api';
5
5
  import { AddressItem } from '../../common/addressItem';
6
- import { useAddressList } from './hooks';
6
+ import { useAddressList } from 'qj-mobile-store';
7
7
  import { routerMap } from '../../routerMap';
8
8
  import { Skull } from './components';
9
9
  const AddressListJsx = () => {
@@ -9,8 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
11
  import { useComponent, NumStep, SmoothCheckbox } from '@brushes/qj-simulate-component';
12
- import { useDispatchImpl, useStore } from '../store';
13
- import { useCartList } from '../hooks';
12
+ import { useDispatchImpl, useStore, useCartList } from 'qj-mobile-store';
14
13
  export function CartItem({ list }) {
15
14
  const { View, Text, Image, Checkbox } = useComponent();
16
15
  const { updateImpl } = useCartList();
@@ -0,0 +1 @@
1
+ export * from './cartItem';
@@ -0,0 +1 @@
1
+ export * from './cartItem';
@@ -2,9 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { memo, useState } from 'react';
3
3
  import { useComponent, SmoothCheckbox } from '@brushes/qj-simulate-component';
4
4
  import { getEnv } from '@brushes/api';
5
- import { useCartList } from './hooks';
6
- import { CartItem } from './components/cartItem';
7
- import { StoreProvider, useStore } from './store';
5
+ import { CartItem } from './components';
6
+ import { StoreProvider, useStore, useCartList } from 'qj-mobile-store';
8
7
  const flag = getEnv();
9
8
  const CartJsx = () => {
10
9
  const [editState, setEditState] = useState(true);
@@ -1,21 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { memo, useEffect, useState } from 'react';
2
+ import { memo } from 'react';
3
3
  import { useComponent } from '@brushes/qj-simulate-component';
4
- import { _ } from '@brushes/tools';
5
- const { isUndefined, isEmpty } = _;
4
+ import { useCube } from 'qj-mobile-store';
6
5
  const ClassifyNavJsx = ({ defaultValue, borderRadius, paddingTop, paddingBottom, selectClassifyNav }) => {
7
- const [list, setList] = useState(defaultValue);
8
6
  const { View, Text } = useComponent();
9
- useEffect(() => {
10
- const computedArr = selectClassifyNav
11
- .filter((item) => !isUndefined(item))
12
- .filter((item) => !Object.values(item).every((citem) => isUndefined(citem)));
13
- let arr = defaultValue;
14
- if (!isEmpty(computedArr)) {
15
- arr = computedArr;
16
- }
17
- setList(arr);
18
- }, [selectClassifyNav]);
7
+ const list = useCube(defaultValue, selectClassifyNav);
19
8
  return (_jsx(View, Object.assign({ style: { paddingTop, paddingBottom } }, { children: _jsx(View, Object.assign({ className: 'classifyNav' }, { children: list.map((item, index) => {
20
9
  return (_jsxs(View, Object.assign({ className: 'classifyNavItem' }, { children: [_jsx("img", { src: item.imgUrl, alt: "", className: 'img' }), _jsx(Text, Object.assign({ className: 'label' }, { children: item.title }))] }), index));
21
10
  }) })) })));
@@ -0,0 +1,4 @@
1
+ export * from './overdue';
2
+ export * from './skull';
3
+ export * from './unUsed';
4
+ export * from './used';
@@ -0,0 +1,4 @@
1
+ export * from './overdue';
2
+ export * from './skull';
3
+ export * from './unUsed';
4
+ export * from './used';
@@ -0,0 +1,5 @@
1
+ interface unusedType {
2
+ coe: number;
3
+ }
4
+ export declare const Overdue: ({ coe }: unusedType) => JSX.Element;
5
+ export {};
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { useComponent } from '@brushes/qj-simulate-component';
3
+ export const Overdue = ({ coe }) => {
4
+ const { View, Text } = useComponent();
5
+ return (_jsx(_Fragment, { children: coe === 3 ? (_jsx(View, Object.assign({ className: 'couponListItem overdue' }, { 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: "123" }))] })), _jsxs(View, Object.assign({ className: 'info' }, { children: [_jsx(Text, Object.assign({ className: 'title' }, { children: "\u6574\u5355\u7ACB\u51CF10\u5143 \u6EE1199\u53EF\u7528" })), _jsx(Text, Object.assign({ className: 'date' }, { children: "\u6709\u6548\u671F\u81F3\uFF1A2022-10-01" })), _jsx(View, Object.assign({ className: 'btn' }, { children: "\u5DF2\u4F7F\u7528" })), _jsx(View, Object.assign({ className: 'round' }, { children: "\u5DF2\u5931\u6548" }))] }))] })) }))) : null }));
6
+ };
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const Skull: import("react").MemoExoticComponent<() => JSX.Element>;
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { memo, useRef } from 'react';
3
+ import { useComponent } from '@brushes/qj-simulate-component';
4
+ const SkullJsx = () => {
5
+ const { View, Skeleton } = useComponent();
6
+ const coe = useRef(new Array(3).fill(0));
7
+ return (_jsx(_Fragment, { children: _jsx(View, Object.assign({ className: 'skullWrap' }, { children: _jsx(View, Object.assign({ className: 'skull' }, { children: coe.current.map((item, index) => (_jsx(Skeleton, { className: 'skullItem', animated: true }, index))) })) })) }));
8
+ };
9
+ export const Skull = memo(SkullJsx);
@@ -0,0 +1,5 @@
1
+ interface unusedType {
2
+ coe: number;
3
+ }
4
+ export declare const UnUsed: ({ coe }: unusedType) => JSX.Element;
5
+ export {};
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { useComponent } from '@brushes/qj-simulate-component';
3
+ export const UnUsed = ({ coe }) => {
4
+ const { View, Text } = useComponent();
5
+ return (_jsx(_Fragment, { children: coe === 1 ? (_jsx(View, Object.assign({ className: 'couponListItem unused' }, { 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: "123" }))] })), _jsxs(View, Object.assign({ className: 'info' }, { children: [_jsx(Text, Object.assign({ className: 'title' }, { children: "\u6574\u5355\u7ACB\u51CF10\u5143 \u6EE1199\u53EF\u7528" })), _jsx(Text, Object.assign({ className: 'date' }, { children: "\u6709\u6548\u671F\u81F3\uFF1A2022-10-01" })), _jsx(View, Object.assign({ className: 'btn' }, { children: "\u5DF2\u4F7F\u7528" }))] }))] })) }))) : null }));
6
+ };
@@ -0,0 +1,5 @@
1
+ interface unusedType {
2
+ coe: number;
3
+ }
4
+ export declare const Used: ({ coe }: unusedType) => JSX.Element;
5
+ export {};
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { useComponent } from '@brushes/qj-simulate-component';
3
+ export const Used = ({ coe }) => {
4
+ const { View, Text } = useComponent();
5
+ return (_jsx(_Fragment, { children: coe === 2 ? (_jsx(View, Object.assign({ className: 'couponListItem used' }, { 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: "123" }))] })), _jsxs(View, Object.assign({ className: 'info' }, { children: [_jsx(Text, Object.assign({ className: 'title' }, { children: "\u6574\u5355\u7ACB\u51CF10\u5143 \u6EE1199\u53EF\u7528" })), _jsx(Text, Object.assign({ className: 'date' }, { children: "\u6709\u6548\u671F\u81F3\uFF1A2022-10-01" })), _jsx(View, Object.assign({ className: 'btn' }, { children: "\u5DF2\u4F7F\u7528" }))] }))] })) }))) : null }));
6
+ };
@@ -1,29 +1,22 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { memo, useRef, useState } from 'react';
2
+ import { memo, useEffect } from 'react';
3
3
  import { useComponent } from '@brushes/qj-simulate-component';
4
- import { getEnv } from '@brushes/api';
4
+ import { getEnv, queryUsercouponNember } from '@brushes/api';
5
+ import { useCouponList } from 'qj-mobile-store';
6
+ import { UnUsed, Overdue, Used } from './components';
5
7
  const CouponListJsx = () => {
6
8
  const { View, Text } = useComponent();
7
- const [coe, setCoe] = useState(1);
9
+ const { coe, setCoe, config } = useCouponList();
8
10
  const flag = getEnv();
9
- const config = useRef([
10
- {
11
- id: 1,
12
- label: '未使用'
13
- },
14
- {
15
- id: 2,
16
- label: '已使用'
17
- },
18
- {
19
- id: 3,
20
- label: '已失效'
21
- }
22
- ]);
11
+ useEffect(() => {
12
+ queryUsercouponNember().then((res) => {
13
+ console.log(26, res);
14
+ });
15
+ }, []);
23
16
  return (_jsxs(View, Object.assign({ className: 'couponList', style: {
24
17
  height: flag ? '100vh' : '667px'
25
18
  } }, { children: [_jsx(View, Object.assign({ className: 'couponTab' }, { children: config.current.map((item) => {
26
19
  return (_jsxs(View, Object.assign({ className: `couponTabItem ${coe === item.id ? 'active' : ''}`, onClick: () => setCoe(item.id) }, { children: [item.label, _jsx(Text, { className: 'icon' })] }), item.id));
27
- }) })), _jsxs(View, Object.assign({ className: 'couponListContent' }, { children: [_jsx(View, Object.assign({ className: 'couponListItem unused' }, { 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: "123" }))] })), _jsxs(View, Object.assign({ className: 'info' }, { children: [_jsx(Text, Object.assign({ className: 'title' }, { children: "\u6574\u5355\u7ACB\u51CF10\u5143 \u6EE1199\u53EF\u7528" })), _jsx(Text, Object.assign({ className: 'date' }, { children: "\u6709\u6548\u671F\u81F3\uFF1A2022-10-01" })), _jsx(View, Object.assign({ className: 'btn' }, { children: "\u5DF2\u4F7F\u7528" }))] }))] })) })), _jsx(View, Object.assign({ className: 'couponListItem used' }, { 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: "123" }))] })), _jsxs(View, Object.assign({ className: 'info' }, { children: [_jsx(Text, Object.assign({ className: 'title' }, { children: "\u6574\u5355\u7ACB\u51CF10\u5143 \u6EE1199\u53EF\u7528" })), _jsx(Text, Object.assign({ className: 'date' }, { children: "\u6709\u6548\u671F\u81F3\uFF1A2022-10-01" })), _jsx(View, Object.assign({ className: 'btn' }, { children: "\u5DF2\u4F7F\u7528" }))] }))] })) })), _jsx(View, Object.assign({ className: 'couponListItem overdue' }, { 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: "123" }))] })), _jsxs(View, Object.assign({ className: 'info' }, { children: [_jsx(Text, Object.assign({ className: 'title' }, { children: "\u6574\u5355\u7ACB\u51CF10\u5143 \u6EE1199\u53EF\u7528" })), _jsx(Text, Object.assign({ className: 'date' }, { children: "\u6709\u6548\u671F\u81F3\uFF1A2022-10-01" })), _jsx(View, Object.assign({ className: 'btn' }, { children: "\u5DF2\u4F7F\u7528" })), _jsx(View, Object.assign({ className: 'round' }, { children: "\u5DF2\u5931\u6548" }))] }))] })) }))] }))] })));
20
+ }) })), _jsxs(View, Object.assign({ className: 'couponListContent' }, { children: [_jsx(UnUsed, { coe: coe }), _jsx(Used, { coe: coe }), _jsx(Overdue, { coe: coe })] }))] })));
28
21
  };
29
22
  export const CouponList = memo(CouponListJsx);
@@ -1,21 +1,10 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { memo, useEffect, useState } from 'react';
2
+ import { memo } from 'react';
3
3
  import { useComponent } from '@brushes/qj-simulate-component';
4
- import { _ } from '@brushes/tools';
5
- const { isUndefined, isEmpty } = _;
4
+ import { useCube } from 'qj-mobile-store';
6
5
  const CubeJsx = ({ defaultValue, type, borderRadius, paddingTop, paddingLeft, paddingRight, paddingBottom, selectImg }) => {
7
- const [list, setList] = useState(defaultValue);
8
6
  const { View, Image } = useComponent();
9
- useEffect(() => {
10
- const computedArr = selectImg
11
- .filter((item) => !isUndefined(item))
12
- .filter((item) => !Object.values(item).every((citem) => isUndefined(citem)));
13
- let arr = defaultValue;
14
- if (!isEmpty(computedArr)) {
15
- arr = computedArr;
16
- }
17
- setList(arr);
18
- }, [selectImg]);
7
+ const list = useCube(defaultValue, selectImg);
19
8
  return (_jsx(View, Object.assign({ style: {
20
9
  paddingTop,
21
10
  paddingBottom
@@ -0,0 +1,2 @@
1
+ export * from './classifyFloor';
2
+ export * from './classifySkeleton';
@@ -0,0 +1,2 @@
1
+ export * from './classifyFloor';
2
+ export * from './classifySkeleton';
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
11
  import { memo, useEffect, useState } from 'react';
12
12
  import { useComponent, antdMobile, navigatorImpl } from '@brushes/qj-simulate-component';
13
- import { ClassifyFloor } from './components/classifyFloor';
13
+ import { ClassifyFloor } from './components/';
14
14
  // import {SEARCH} from "../../static";
15
15
  import { getEnv } from '@brushes/api';
16
16
  import { queryGoodsClassTree } from '@brushes/api';
@@ -1,2 +1 @@
1
- declare const GoodsDetailCollection: ({ checkCollectionObj, setCheckCollectionObj, goods }: any) => JSX.Element;
2
- export default GoodsDetailCollection;
1
+ export declare const GoodsDetailCollection: ({ checkCollectionObj, setCheckCollectionObj, goods }: any) => JSX.Element;
@@ -14,7 +14,7 @@ import { checkCollectExit, saveCollect, deleteCollectByCode } from '@brushes/api
14
14
  import { _ } from '@brushes/tools';
15
15
  import { useEffect } from 'react';
16
16
  const { isEmpty } = _;
17
- const GoodsDetailCollection = ({ checkCollectionObj, setCheckCollectionObj, goods }) => {
17
+ export const GoodsDetailCollection = ({ checkCollectionObj, setCheckCollectionObj, goods }) => {
18
18
  const { Text, View } = useComponent();
19
19
  useEffect(() => {
20
20
  checkCollection();
@@ -62,4 +62,3 @@ const GoodsDetailCollection = ({ checkCollectionObj, setCheckCollectionObj, good
62
62
  };
63
63
  return (_jsxs(View, Object.assign({ onClick: handleCollect }, { children: [_jsx("img", { src: SEARCH, alt: "", className: 'icon' }), _jsx(Text, Object.assign({ className: 'txt' }, { children: isEmpty(checkCollectionObj.dataObj) ? '收藏' : '已收藏' }))] })));
64
64
  };
65
- export default GoodsDetailCollection;
@@ -1,2 +1 @@
1
- declare const GoodsDetailCoupon: () => JSX.Element;
2
- export default GoodsDetailCoupon;
1
+ export declare const GoodsDetailCoupon: () => JSX.Element;
@@ -3,7 +3,7 @@ import { useComponent, Popup, SmoothRadio } from '@brushes/qj-simulate-component
3
3
  import { THREE_DOTS } from '../../../static';
4
4
  import { useState } from 'react';
5
5
  import { Coupon } from '../../../common/coupon';
6
- import { useDispatchImpl, useStore } from '../store';
6
+ import { useDispatchImpl, useStore } from 'qj-mobile-store';
7
7
  const fake = [
8
8
  {
9
9
  title: '五一大促疯抢 满100立减10',
@@ -24,7 +24,7 @@ const fake = [
24
24
  id: 3
25
25
  }
26
26
  ];
27
- const GoodsDetailCoupon = () => {
27
+ export const GoodsDetailCoupon = () => {
28
28
  const { View, Text } = useComponent();
29
29
  const [visible, setVisible] = useState(false);
30
30
  const dispatch = useDispatchImpl();
@@ -42,4 +42,3 @@ const GoodsDetailCoupon = () => {
42
42
  return _jsx(Coupon, { index: index, item: item }, index);
43
43
  }) })) })) })) }))] }));
44
44
  };
45
- export default GoodsDetailCoupon;
@@ -1,2 +1 @@
1
- declare const GoodsDetailEvaluate: () => JSX.Element;
2
- export default GoodsDetailEvaluate;
1
+ export declare const GoodsDetailEvaluate: () => JSX.Element;
@@ -1,7 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useComponent } from '@brushes/qj-simulate-component';
3
- const GoodsDetailEvaluate = () => {
3
+ export const GoodsDetailEvaluate = () => {
4
4
  const { View } = useComponent();
5
- return (_jsx(View, Object.assign({ className: 'goodsDetailEvaluate' }, { children: "1231232" })));
5
+ return _jsx(View, Object.assign({ className: 'goodsDetailEvaluate' }, { children: "1231232" }));
6
6
  };
7
- export default GoodsDetailEvaluate;
@@ -1,2 +1 @@
1
- declare const GoodsDetailHandleBar: () => JSX.Element;
2
- export default GoodsDetailHandleBar;
1
+ export declare const GoodsDetailHandleBar: () => JSX.Element;
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { switchTabImpl, useComponent, IconMobile } from '@brushes/qj-simulate-component';
3
- import { useDispatchImpl } from '../store';
3
+ import { useDispatchImpl } from 'qj-mobile-store';
4
4
  import { routerMap } from '../../../routerMap';
5
- const GoodsDetailHandleBar = () => {
5
+ export const GoodsDetailHandleBar = () => {
6
6
  const { Text, View } = useComponent();
7
7
  const dispatch = useDispatchImpl();
8
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: () => {
@@ -25,4 +25,3 @@ const GoodsDetailHandleBar = () => {
25
25
  });
26
26
  }, className: 'btn buy' }, { children: "\u7ACB\u5373\u8D2D\u4E70" }))] }))] })));
27
27
  };
28
- export default GoodsDetailHandleBar;
@@ -1,2 +1 @@
1
- declare const GoodsDetailInfo: ({ tabActive, goods }: any) => JSX.Element;
2
- export default GoodsDetailInfo;
1
+ export declare const GoodsDetailInfo: ({ tabActive, goods }: any) => JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useComponent } from '@brushes/qj-simulate-component';
3
3
  import { useEffect, useState } from 'react';
4
- const GoodsDetailInfo = ({ tabActive, goods }) => {
4
+ export const GoodsDetailInfo = ({ tabActive, goods }) => {
5
5
  const { View } = useComponent();
6
6
  const [goodsDetail, setDetail] = useState('');
7
7
  useEffect(() => {
@@ -12,4 +12,3 @@ const GoodsDetailInfo = ({ tabActive, goods }) => {
12
12
  }, [goods.goodsRemark, tabActive]);
13
13
  return (_jsx(View, Object.assign({ className: 'goodsDetail-info' }, { children: _jsx("div", { dangerouslySetInnerHTML: { __html: goodsDetail || '' } }) })));
14
14
  };
15
- export default GoodsDetailInfo;
@@ -1,2 +1 @@
1
- declare const GoodsDetailPopup: ({ goods }: any) => JSX.Element;
2
- export default GoodsDetailPopup;
1
+ export declare const GoodsDetailPopup: ({ goods }: any) => JSX.Element;
@@ -1,12 +1,11 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Popup, NumStep } from '@brushes/qj-simulate-component';
3
- import { useAddShopping } from '../hooks';
3
+ import { useAddShopping } from 'qj-mobile-store';
4
4
  import { useComponent } from '@brushes/qj-simulate-component';
5
- const GoodsDetailPopup = ({ goods }) => {
5
+ export const GoodsDetailPopup = ({ goods }) => {
6
6
  const { count, spec, popupVisible, isNeedButton, handleChooseSize, handleStep, popupHandler, addShoppingImpl } = useAddShopping();
7
7
  const { View, Text, Image } = useComponent();
8
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
9
  return (_jsx(View, Object.assign({ className: `sizeItem ${spec === item.specValueValue ? 'active' : ''}`, onClick: handleChooseSize.bind(null, item.specValueValue) }, { children: item.specValueValue }), index));
10
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
11
  };
12
- export default GoodsDetailPopup;
@@ -1,2 +1 @@
1
- declare const GoodsDetailPromotion: ({ promotionList }: any) => JSX.Element;
2
- export default GoodsDetailPromotion;
1
+ export declare const GoodsDetailPromotion: ({ promotionList }: any) => JSX.Element;
@@ -1,9 +1,8 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useComponent } from '@brushes/qj-simulate-component';
3
- const GoodsDetailPromotion = ({ promotionList }) => {
3
+ export const GoodsDetailPromotion = ({ promotionList }) => {
4
4
  const { View, Text } = useComponent();
5
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
6
  return (_jsx(View, Object.assign({ className: 'item' }, { children: discName }), index));
7
7
  })) : (_jsx(View, Object.assign({ className: 'noPromotion' }, { children: "\u6682\u65E0\u4FC3\u9500\u6D3B\u52A8" }))) }))] })));
8
8
  };
9
- export default GoodsDetailPromotion;
@@ -1,2 +1 @@
1
- declare const GoodsDetailSize: ({ goods }: any) => JSX.Element;
2
- export default GoodsDetailSize;
1
+ export declare const GoodsDetailSize: ({ goods }: any) => JSX.Element;
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { useComponent } from '@brushes/qj-simulate-component';
3
3
  import { THREE_DOTS } from '../../../static';
4
- import GoodsDetailPopup from './goodsDetailPopup';
5
- import { useDispatchImpl, useStore } from '../store';
6
- const GoodsDetailSize = ({ goods }) => {
4
+ import { GoodsDetailPopup } from './goodsDetailPopup';
5
+ import { useDispatchImpl, useStore } from 'qj-mobile-store';
6
+ export const GoodsDetailSize = ({ goods }) => {
7
7
  const { View, Text } = useComponent();
8
8
  const { count, spec } = useStore();
9
9
  const dispatch = useDispatchImpl();
@@ -15,4 +15,3 @@ const GoodsDetailSize = ({ goods }) => {
15
15
  }
16
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
17
  };
18
- export default GoodsDetailSize;
@@ -0,0 +1,9 @@
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';
@@ -0,0 +1,9 @@
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,20 +1,14 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { memo } from 'react';
3
3
  import { _ } from '@brushes/tools';
4
- import GoodsDetailPromotion from './components/goodsDetailPromotion';
5
- import GoodsDetailCoupon from './components/goodsDetailCoupon';
6
- import GoodsDetailCollection from './components/goodsDetailCollection';
7
- import GoodsDetailHandleBar from './components/goodsDetailHandleBar';
8
4
  import { Slider } from '../Slider';
9
- import GoodsDetailInfo from './components/goodsDetailInfo';
10
- import GoodsDetailEvaluate from './components/goodsDetailEvaluate';
11
- import GoodsDetailSize from './components/goodsDetailSize';
12
- import { useGoodsDetailImpl } from './hooks';
13
- import { StoreProvider } from './store';
5
+ import { GoodsDetailPromotion, GoodsDetailCoupon, GoodsDetailCollection, GoodsDetailHandleBar, GoodsDetailInfo, GoodsDetailEvaluate, GoodsDetailSize } from './components';
6
+ import { goodsDetailStore, useGoodsDetailImpl } from 'qj-mobile-store';
14
7
  import { getEnv } from '@brushes/api';
15
8
  import { useComponent } from '@brushes/qj-simulate-component';
16
9
  const { isEmpty } = _;
17
10
  const flag = getEnv();
11
+ const { StoreProvider } = goodsDetailStore;
18
12
  const GoodsDetailJsx = ({ skuCode }) => {
19
13
  return (_jsx(StoreProvider, { children: _jsx(GoodsDetailJsxInner, { skuCode: skuCode }) }));
20
14
  };
@@ -0,0 +1 @@
1
+ export * from './filter';
@@ -0,0 +1 @@
1
+ export * from './filter';
@@ -2,8 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { memo, useState } from 'react';
3
3
  import { Loading, navigatorImpl, ScrollView, useComponent } from '@brushes/qj-simulate-component';
4
4
  import { QjMobileIcon } from '../../common/icon';
5
- import { Filter } from './components/filter';
6
- import { useGoodsList } from './hooks/useGoodsList';
5
+ import { Filter } from './components';
6
+ import { useGoodsList } from 'qj-mobile-store';
7
7
  import { routerMap } from '../../routerMap';
8
8
  const GoodsListJsx = ({ classtreeCode = '', searchParam = '' }) => {
9
9
  const { View, Text } = useComponent();
@@ -0,0 +1,2 @@
1
+ export * from './menuList';
2
+ export * from './orderEntry';
@@ -0,0 +1,2 @@
1
+ export * from './menuList';
2
+ export * from './orderEntry';
@@ -2,14 +2,14 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { memo } from 'react';
3
3
  import { useComponent, IconMobile, navigatorImpl } from '@brushes/qj-simulate-component';
4
4
  import { getEnv } from '@brushes/api';
5
- import { OrderEntry } from './components/orderEntry';
6
- import { MenuList } from './components/menuList';
5
+ import { OrderEntry, MenuList } from './components';
7
6
  import { routerMap } from '../../routerMap';
7
+ import { serviceActionSheet } from '../../utils';
8
8
  const MineJsx = ({ avatarStyle, banner }) => {
9
9
  const { View, Text } = useComponent();
10
10
  const flag = getEnv();
11
11
  return (_jsxs(View, Object.assign({ className: 'mine', style: {
12
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' })] })), _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] })));
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
14
  };
15
15
  export const Mine = memo(MineJsx);
@@ -0,0 +1,3 @@
1
+ export * from './mock';
2
+ export * from './orderItem';
3
+ export * from './orderListItem';
@@ -0,0 +1,3 @@
1
+ export * from './mock';
2
+ export * from './orderItem';
3
+ export * from './orderListItem';
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { memo, useRef } from 'react';
3
3
  import { useComponent, Tabs } from '@brushes/qj-simulate-component';
4
- import { OrderListItem } from './components/OrderListItem';
4
+ import { OrderListItem } from './components/';
5
5
  const OrderListJsx = ({ defaultIndex = 0 }) => {
6
6
  console.log('location', defaultIndex);
7
7
  const { View } = useComponent();
@@ -3,7 +3,7 @@ import { memo } from 'react';
3
3
  import { useComponent, IconMobile, WrapLoading } from '@brushes/qj-simulate-component';
4
4
  import { getEnv } from '@brushes/api';
5
5
  // import {config} from "./config";
6
- import { useOrderResult } from './hooks/useOrderResult';
6
+ import { useOrderResult } from 'qj-mobile-store';
7
7
  const flag = getEnv();
8
8
  const PaymentModeJsx = ({ code }) => {
9
9
  const { View, Text } = useComponent();
@@ -0,0 +1,3 @@
1
+ export * from './address';
2
+ export * from './orderPrice';
3
+ export * from './shop';
@@ -0,0 +1,3 @@
1
+ export * from './address';
2
+ export * from './orderPrice';
3
+ export * from './shop';
@@ -8,5 +8,5 @@ interface OrderPriceType {
8
8
  };
9
9
  savePayPrice: () => void;
10
10
  }
11
- declare const OrderPrice: React.FC<OrderPriceType>;
12
- export default OrderPrice;
11
+ export declare const OrderPrice: React.FC<OrderPriceType>;
12
+ export {};
@@ -1,8 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { useComponent } from '@brushes/qj-simulate-component';
3
- const OrderPrice = ({ payState, savePayPrice }) => {
3
+ export const OrderPrice = ({ payState, savePayPrice }) => {
4
4
  const { View, Text } = useComponent();
5
5
  const { shoppingCountPrice, freight, accountsSumPrice, comDisMoney } = payState;
6
6
  return (_jsxs(_Fragment, { children: [_jsxs(View, Object.assign({ className: 'price blcWrap' }, { children: [_jsx(View, Object.assign({ className: 'title' }, { children: "\u4EF7\u683C\u660E\u7EC6" })), _jsxs(View, Object.assign({ className: 'express blcItem' }, { children: [_jsx(View, Object.assign({ className: 'label' }, { children: "\u5546\u54C1\u603B\u91D1\u989D" })), _jsxs(View, Object.assign({ className: 'value' }, { children: ["\uFFE5 ", shoppingCountPrice] }))] })), _jsxs(View, Object.assign({ className: 'coupon blcItem' }, { children: [_jsx(View, Object.assign({ className: 'label' }, { children: "\u4F18\u60E0\u91D1\u989D" })), _jsxs(View, Object.assign({ className: 'value' }, { children: ["\uFFE5 ", comDisMoney] }))] })), _jsxs(View, Object.assign({ className: 'express blcItem' }, { children: [_jsx(View, Object.assign({ className: 'label' }, { children: "\u8FD0\u8D39" })), _jsxs(View, Object.assign({ className: 'value' }, { children: ["\uFFE5 ", freight] }))] })), _jsxs(View, Object.assign({ className: 'all blcItem' }, { children: [_jsx(View, Object.assign({ className: 'label' }, { children: "\u603B\u8BA1" })), _jsxs(View, Object.assign({ className: 'value', style: { color: '#000' } }, { children: ["\uFFE5 ", accountsSumPrice] }))] }))] })), _jsxs(View, Object.assign({ className: 'placeOrderFooter' }, { children: [_jsxs(Text, Object.assign({ className: 'price' }, { children: ["\u5408\u8BA1: ", accountsSumPrice] })), _jsx(View, Object.assign({ className: 'btn', onClick: savePayPrice }, { children: "\u751F\u6210\u8BA2\u5355" }))] }))] }));
7
7
  };
8
- export default OrderPrice;