qj-b2c-store 1.5.0

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 (129) hide show
  1. package/dist/context/index.d.ts +6 -0
  2. package/dist/core/demo.d.ts +1 -0
  3. package/dist/core/external.d.ts +5 -0
  4. package/dist/core/index.d.ts +2 -0
  5. package/dist/core/makeStore.d.ts +2 -0
  6. package/dist/index.d.ts +4 -0
  7. package/dist/index.js +1 -0
  8. package/dist/store/account/hooks/index.d.ts +1 -0
  9. package/dist/store/account/hooks/useAgreement.d.ts +1 -0
  10. package/dist/store/account/hooks/useMySetting.d.ts +4 -0
  11. package/dist/store/account/index.d.ts +1 -0
  12. package/dist/store/addressDetail/hooks/index.d.ts +1 -0
  13. package/dist/store/addressDetail/hooks/useAddAddress.d.ts +3 -0
  14. package/dist/store/addressDetail/index.d.ts +1 -0
  15. package/dist/store/addressList/hooks/index.d.ts +2 -0
  16. package/dist/store/addressList/hooks/useAddressItem.d.ts +3 -0
  17. package/dist/store/addressList/hooks/useAddressList.d.ts +8 -0
  18. package/dist/store/addressList/index.d.ts +1 -0
  19. package/dist/store/afterSales/hooks/afterSalesConfig.d.ts +4 -0
  20. package/dist/store/afterSales/hooks/index.d.ts +5 -0
  21. package/dist/store/afterSales/hooks/useAfterSalesApply.d.ts +23 -0
  22. package/dist/store/afterSales/hooks/useAfterSalesChooseType.d.ts +17 -0
  23. package/dist/store/afterSales/hooks/useAfterSalesDetail.d.ts +18 -0
  24. package/dist/store/afterSales/hooks/useAfterSalesList.d.ts +8 -0
  25. package/dist/store/afterSales/index.d.ts +1 -0
  26. package/dist/store/articleDetail/hooks/index.d.ts +1 -0
  27. package/dist/store/articleDetail/hooks/useArticleDetail.d.ts +7 -0
  28. package/dist/store/articleDetail/index.d.ts +1 -0
  29. package/dist/store/cart/hooks/index.d.ts +2 -0
  30. package/dist/store/cart/hooks/useCartItem.d.ts +9 -0
  31. package/dist/store/cart/hooks/useCartList.d.ts +19 -0
  32. package/dist/store/cart/index.d.ts +2 -0
  33. package/dist/store/cart/store/index.d.ts +10 -0
  34. package/dist/store/cart-next/hooks/index.d.ts +3 -0
  35. package/dist/store/cart-next/hooks/useCartListNext.d.ts +12 -0
  36. package/dist/store/cart-next/hooks/useCartOperate.d.ts +11 -0
  37. package/dist/store/cart-next/hooks/useCartTop.d.ts +4 -0
  38. package/dist/store/cart-next/index.d.ts +1 -0
  39. package/dist/store/collectionList/hooks/index.d.ts +1 -0
  40. package/dist/store/collectionList/hooks/useCollectionList.d.ts +25 -0
  41. package/dist/store/collectionList/index.d.ts +1 -0
  42. package/dist/store/coupon/hooks/index.d.ts +1 -0
  43. package/dist/store/coupon/hooks/useAllCoupon.d.ts +12 -0
  44. package/dist/store/coupon/index.d.ts +1 -0
  45. package/dist/store/couponList/hooks/index.d.ts +4 -0
  46. package/dist/store/couponList/hooks/useCouponList.d.ts +21 -0
  47. package/dist/store/couponList/hooks/useOverdue.d.ts +5 -0
  48. package/dist/store/couponList/hooks/useUnused.d.ts +5 -0
  49. package/dist/store/couponList/hooks/useUsed.d.ts +5 -0
  50. package/dist/store/couponList/index.d.ts +1 -0
  51. package/dist/store/cube/hooks/index.d.ts +6 -0
  52. package/dist/store/cube/index.d.ts +1 -0
  53. package/dist/store/evaluateDetail/hooks/index.d.ts +1 -0
  54. package/dist/store/evaluateDetail/hooks/useEvaluateDetail.d.ts +6 -0
  55. package/dist/store/evaluateDetail/index.d.ts +1 -0
  56. package/dist/store/expressInfo/hooks/index.d.ts +1 -0
  57. package/dist/store/expressInfo/hooks/useExpressInfo.d.ts +14 -0
  58. package/dist/store/expressInfo/index.d.ts +1 -0
  59. package/dist/store/footprint/hooks/index.d.ts +1 -0
  60. package/dist/store/footprint/hooks/useFootprint.d.ts +25 -0
  61. package/dist/store/footprint/index.d.ts +1 -0
  62. package/dist/store/goTop/hooks/index.d.ts +1 -0
  63. package/dist/store/goTop/hooks/useGoTop.d.ts +3 -0
  64. package/dist/store/goTop/index.d.ts +1 -0
  65. package/dist/store/goods/hooks/index.d.ts +1 -0
  66. package/dist/store/goods/hooks/useGoods.d.ts +8 -0
  67. package/dist/store/goods/index.d.ts +1 -0
  68. package/dist/store/goodsClassify/hooks/index.d.ts +1 -0
  69. package/dist/store/goodsClassify/hooks/useGoodsClassify.d.ts +7 -0
  70. package/dist/store/goodsClassify/index.d.ts +1 -0
  71. package/dist/store/goodsDetail/hooks/index.d.ts +12 -0
  72. package/dist/store/goodsDetail/hooks/useAddCoupon.d.ts +4 -0
  73. package/dist/store/goodsDetail/hooks/useAddShopping.d.ts +9 -0
  74. package/dist/store/goodsDetail/hooks/useBanner.d.ts +4 -0
  75. package/dist/store/goodsDetail/hooks/useCoupon.d.ts +40 -0
  76. package/dist/store/goodsDetail/hooks/useEvaluate.d.ts +1 -0
  77. package/dist/store/goodsDetail/hooks/useFootprint.d.ts +1 -0
  78. package/dist/store/goodsDetail/hooks/useGoodCollection.d.ts +12 -0
  79. package/dist/store/goodsDetail/hooks/useGoodDetail.d.ts +40 -0
  80. package/dist/store/goodsDetail/hooks/useGoodSku.d.ts +9 -0
  81. package/dist/store/goodsDetail/hooks/useGoodSpecAndPrice.d.ts +4 -0
  82. package/dist/store/goodsDetail/hooks/useGoodsShare.d.ts +3 -0
  83. package/dist/store/goodsDetail/hooks/usePromotion.d.ts +1 -0
  84. package/dist/store/goodsDetail/index.d.ts +3 -0
  85. package/dist/store/goodsDetail/store/index.d.ts +20 -0
  86. package/dist/store/goodsDetail/utils/index.d.ts +25 -0
  87. package/dist/store/goodsList/hooks/index.d.ts +1 -0
  88. package/dist/store/goodsList/hooks/useGoodsList.d.ts +17 -0
  89. package/dist/store/goodsList/index.d.ts +1 -0
  90. package/dist/store/index.d.ts +28 -0
  91. package/dist/store/marketing/hooks/index.d.ts +1 -0
  92. package/dist/store/marketing/hooks/useMarketingPromotion.d.ts +6 -0
  93. package/dist/store/marketing/index.d.ts +1 -0
  94. package/dist/store/notice/index.d.ts +4 -0
  95. package/dist/store/noticeDetail/hooks/index.d.ts +5 -0
  96. package/dist/store/noticeDetail/index.d.ts +1 -0
  97. package/dist/store/order/constant/index.d.ts +3 -0
  98. package/dist/store/order/hooks/config.d.ts +7 -0
  99. package/dist/store/order/hooks/index.d.ts +3 -0
  100. package/dist/store/order/hooks/useOrderList.d.ts +38 -0
  101. package/dist/store/order/hooks/useOrderOperate.d.ts +4 -0
  102. package/dist/store/order/index.d.ts +1 -0
  103. package/dist/store/orderDetail/hooks/index.d.ts +1 -0
  104. package/dist/store/orderDetail/hooks/useOrderDetail.d.ts +25 -0
  105. package/dist/store/orderDetail/index.d.ts +1 -0
  106. package/dist/store/paymentMode/hooks/index.d.ts +1 -0
  107. package/dist/store/paymentMode/hooks/useOrderResult.d.ts +14 -0
  108. package/dist/store/paymentMode/index.d.ts +1 -0
  109. package/dist/store/placeOrder/hooks/index.d.ts +6 -0
  110. package/dist/store/placeOrder/hooks/useOrderAddress.d.ts +24 -0
  111. package/dist/store/placeOrder/hooks/useOrderCoupon.d.ts +12 -0
  112. package/dist/store/placeOrder/hooks/useOrderGood.d.ts +57 -0
  113. package/dist/store/placeOrder/hooks/useOrderInfo.d.ts +5 -0
  114. package/dist/store/placeOrder/hooks/useOrderPay.d.ts +11 -0
  115. package/dist/store/placeOrder/hooks/usePlaceOrder.d.ts +47 -0
  116. package/dist/store/placeOrder/index.d.ts +2 -0
  117. package/dist/store/placeOrder/store/index.d.ts +31 -0
  118. package/dist/store/placeOrderResult/hooks/index.d.ts +1 -0
  119. package/dist/store/placeOrderResult/hooks/useOrderResult.d.ts +4 -0
  120. package/dist/store/placeOrderResult/index.d.ts +1 -0
  121. package/dist/utils/formatTime.d.ts +1 -0
  122. package/dist/utils/index.d.ts +5 -0
  123. package/dist/utils/localData.d.ts +4 -0
  124. package/dist/utils/navigator.d.ts +11 -0
  125. package/dist/utils/payment.d.ts +14 -0
  126. package/dist/utils/routerMap/index.d.ts +11 -0
  127. package/dist/utils/showToast.d.ts +1 -0
  128. package/dist/utils/useImmutableCallback.d.ts +1 -0
  129. package/package.json +26 -0
@@ -0,0 +1 @@
1
+ export * from './useGoodsClassify';
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export declare function useGoodsClassify(): {
3
+ activeKey: string;
4
+ navList: any[];
5
+ flag: boolean;
6
+ setActiveKey: import("react").Dispatch<import("react").SetStateAction<string>>;
7
+ };
@@ -0,0 +1 @@
1
+ export * from './hooks';
@@ -0,0 +1,12 @@
1
+ export * from './useAddShopping';
2
+ export * from './useAddCoupon';
3
+ export * from './useGoodDetail';
4
+ export * from './useBanner';
5
+ export * from './useGoodCollection';
6
+ export * from './useGoodSku';
7
+ export * from './usePromotion';
8
+ export * from './useCoupon';
9
+ export * from './useEvaluate';
10
+ export * from './useGoodsShare';
11
+ export * from './useFootprint';
12
+ export * from './useGoodSpecAndPrice';
@@ -0,0 +1,4 @@
1
+ export declare const useAddCoupon: () => {
2
+ save: (params: any) => Promise<void>;
3
+ isPick: boolean;
4
+ };
@@ -0,0 +1,9 @@
1
+ import { actionName } from '../utils';
2
+ export declare function useAddShopping(goodsCode: string, skuInfo: Object, rsSkuDomainList: Array<any>, dispatchPageStore?: (...args: any[]) => void): {
3
+ closePopup: () => void;
4
+ addCardImpl: () => Promise<void>;
5
+ cashImpl: () => Promise<void>;
6
+ handleChooseSize: (...args: any[]) => any;
7
+ handleStep: (goodsNum: number, goodsMinnum: number, type: actionName) => void;
8
+ addShoppingImpl: () => void;
9
+ };
@@ -0,0 +1,4 @@
1
+ export declare const useBanner: (arr: Array<any>) => {
2
+ imgUrl: any;
3
+ link: string;
4
+ }[];
@@ -0,0 +1,40 @@
1
+ /// <reference types="react" />
2
+ export declare const computedParams: (rsSkuDomainList: any[] | undefined, skuCode: string) => {
3
+ skuCode?: undefined;
4
+ skuNo?: undefined;
5
+ classtreeCode?: undefined;
6
+ brandCode?: undefined;
7
+ pntreeCode?: undefined;
8
+ memberCode?: undefined;
9
+ } | {
10
+ skuCode: string;
11
+ skuNo: any;
12
+ classtreeCode: any;
13
+ brandCode: any;
14
+ pntreeCode: any;
15
+ memberCode: any;
16
+ };
17
+ export declare const initialCoupon: {
18
+ promotionBegintime: string;
19
+ pbName: string;
20
+ discName: string;
21
+ promotionCode: string;
22
+ promotionName: string;
23
+ couponOnceNums: number;
24
+ couponOnceNumd: number;
25
+ promotionEndtime: string;
26
+ };
27
+ export declare function useCoupon(result: Array<any>, skuCode: string): {
28
+ coupon: {
29
+ promotionBegintime: string;
30
+ pbName: string;
31
+ discName: string;
32
+ promotionCode: string;
33
+ promotionName: string;
34
+ couponOnceNums: number;
35
+ couponOnceNumd: number;
36
+ promotionEndtime: string;
37
+ }[];
38
+ visible: boolean;
39
+ setVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
40
+ };
@@ -0,0 +1 @@
1
+ export declare const useEvaluate: (goodsCode: string) => never[];
@@ -0,0 +1 @@
1
+ export declare const useGoodFootprint: (skuCode: string) => void;
@@ -0,0 +1,12 @@
1
+ export interface CollectProps {
2
+ skuCode: string;
3
+ dataPic: string;
4
+ goodsName: string;
5
+ pricesetNprice: number;
6
+ }
7
+ export declare function useGoodCollection({ skuCode, dataPic, goodsName, pricesetNprice }: CollectProps): {
8
+ handleCollect: () => Promise<void>;
9
+ collection: {
10
+ dataObj: string;
11
+ };
12
+ };
@@ -0,0 +1,40 @@
1
+ export declare const initialValue: {
2
+ rsGoodsFileDomainList: never[];
3
+ rsSpecValueDomainList: never[];
4
+ goodsRemark: string;
5
+ pricesetNprice: number;
6
+ goodsName: string;
7
+ dataPic: string;
8
+ goodsShowname: string;
9
+ goodsNum: number;
10
+ goodsCode: string;
11
+ skuNo: string;
12
+ classtreeCode: string;
13
+ brandCode: string;
14
+ pntreeCode: string;
15
+ memberCode: string;
16
+ goodsThdate: string;
17
+ goodsOdate: string;
18
+ goodsDayinfo: string;
19
+ rsSkuDomainList: never[];
20
+ };
21
+ export declare const useGoodDetail: (skuCode: string, scene?: string) => {
22
+ rsGoodsFileDomainList: never[];
23
+ rsSpecValueDomainList: never[];
24
+ goodsRemark: string;
25
+ pricesetNprice: number;
26
+ goodsName: string;
27
+ dataPic: string;
28
+ goodsShowname: string;
29
+ goodsNum: number;
30
+ goodsCode: string;
31
+ skuNo: string;
32
+ classtreeCode: string;
33
+ brandCode: string;
34
+ pntreeCode: string;
35
+ memberCode: string;
36
+ goodsThdate: string;
37
+ goodsOdate: string;
38
+ goodsDayinfo: string;
39
+ rsSkuDomainList: never[];
40
+ };
@@ -0,0 +1,9 @@
1
+ interface SkuItemType {
2
+ skuName: string;
3
+ skuOption: Array<any>;
4
+ }
5
+ export declare function useGoodSku(rsSpecValueDomainList: Array<any>, rsSkuDomainList: Array<any>): {
6
+ skuList: SkuItemType[];
7
+ spec: string[];
8
+ };
9
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare const useGoodSpecAndPrice: (rsSkuDomainList?: Array<any>) => {
2
+ spec: any;
3
+ goodInfo: any;
4
+ };
@@ -0,0 +1,3 @@
1
+ export declare const useGoodsShare: () => {
2
+ handleShare: () => void;
3
+ };
@@ -0,0 +1 @@
1
+ export declare function usePromotion(rsSkuDomainList: Array<any>, skuCode: string): never[];
@@ -0,0 +1,3 @@
1
+ export * from './store';
2
+ export * from './hooks';
3
+ export * from './utils';
@@ -0,0 +1,20 @@
1
+ export declare const goodStore: {
2
+ getState: () => {
3
+ count: number;
4
+ isNeedButton: boolean;
5
+ goodsNum: number;
6
+ spec: never[];
7
+ orderType: number;
8
+ offShelf: boolean;
9
+ };
10
+ setState: (newState: {
11
+ count: number;
12
+ isNeedButton: boolean;
13
+ goodsNum: number;
14
+ spec: never[];
15
+ orderType: number;
16
+ offShelf: boolean;
17
+ }) => void;
18
+ subscribe: (listener: any) => () => boolean;
19
+ };
20
+ export declare function useGoodSkuStore(selector?: (state: any) => any): any;
@@ -0,0 +1,25 @@
1
+ interface GoodsDetailType {
2
+ count: number;
3
+ spec: Array<never>;
4
+ price: number;
5
+ couponValue: number | string;
6
+ popupVisible: boolean;
7
+ goodsNum: number;
8
+ orderType: 1 | 0;
9
+ isNeedButton: boolean;
10
+ offShelf: boolean;
11
+ }
12
+ export type actionName = 'plus' | 'minus' | 'select' | 'popupImpl' | 'initGoodSku';
13
+ type ActionInterface = {
14
+ type: actionName;
15
+ payload?: Partial<GoodsDetailType>;
16
+ };
17
+ export declare function getGoodDetail(skuCode: string): any;
18
+ export declare function popupImplement(dispatchPageStore?: (...args: any[]) => void): {
19
+ dispatch: (action: ActionInterface) => void;
20
+ openPopup: () => void;
21
+ closePopup: () => void;
22
+ addCardPopup: () => void;
23
+ buyOpenPopup: () => void;
24
+ };
25
+ export {};
@@ -0,0 +1 @@
1
+ export * from './useGoodsList';
@@ -0,0 +1,17 @@
1
+ export interface FilterType {
2
+ sortField: string;
3
+ order?: string | undefined;
4
+ }
5
+ export interface ListType {
6
+ skuCode: string;
7
+ dataPic: string;
8
+ goodsName: string;
9
+ pricesetNprice: number;
10
+ pricesetMakeprice: number;
11
+ goodsNum: number;
12
+ }
13
+ export declare const useGoodsList: (classtreeCode: string, searchParam: string, filterParmas: FilterType) => {
14
+ loading: boolean;
15
+ getData: (...args: any[]) => any;
16
+ list: ListType[];
17
+ };
@@ -0,0 +1 @@
1
+ export * from './hooks';
@@ -0,0 +1,28 @@
1
+ export * from './goodsDetail';
2
+ export * from './addressDetail';
3
+ export * from './addressList';
4
+ export * from './cart';
5
+ export * from './cart-next';
6
+ export * from './couponList';
7
+ export * from './addressList';
8
+ export * from './goodsList';
9
+ export * from './paymentMode';
10
+ export * from './placeOrder';
11
+ export * from './placeOrderResult';
12
+ export * from './cube';
13
+ export * from './orderDetail';
14
+ export * from './order';
15
+ export * from './expressInfo';
16
+ export * from './goodsClassify';
17
+ export * from './collectionList';
18
+ export * from './evaluateDetail';
19
+ export * from './footprint';
20
+ export * from './notice';
21
+ export * from './noticeDetail';
22
+ export * from './articleDetail';
23
+ export * from './goods';
24
+ export * from './coupon';
25
+ export * from './goTop';
26
+ export * from './marketing';
27
+ export * from './afterSales';
28
+ export * from './account';
@@ -0,0 +1 @@
1
+ export * from './useMarketingPromotion';
@@ -0,0 +1,6 @@
1
+ export declare const useMarketingPromotion: ({ params }: {
2
+ params: string;
3
+ }) => {
4
+ list: any[];
5
+ getData: () => Promise<void>;
6
+ };
@@ -0,0 +1 @@
1
+ export * from './hooks';
@@ -0,0 +1,4 @@
1
+ export declare function useNotice(num: number): {
2
+ content: any[];
3
+ navigator: (e: number) => void;
4
+ };
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const useNoticeDetail: (noticeId: string) => {
3
+ info: any;
4
+ setInfo: import("react").Dispatch<any>;
5
+ };
@@ -0,0 +1 @@
1
+ export * from './hooks';
@@ -0,0 +1,3 @@
1
+ export declare const result: {
2
+ goodsItem: number;
3
+ };
@@ -0,0 +1,7 @@
1
+ export interface OrderItemInter {
2
+ name: string;
3
+ code: string;
4
+ }
5
+ export declare const orderStatusList: Array<OrderItemInter>;
6
+ export declare const orderStatusImpl: (type: string | number) => string;
7
+ export declare const detailButton: any;
@@ -0,0 +1,3 @@
1
+ export * from './config';
2
+ export * from './useOrderOperate';
3
+ export * from './useOrderList';
@@ -0,0 +1,38 @@
1
+ export declare const orderType: {
2
+ contractBillcode: string;
3
+ goodsList: {
4
+ dataPic: string;
5
+ goodsName: string;
6
+ dataBmoney: number;
7
+ goodsCamount: number;
8
+ contractGoodsId: number;
9
+ dataState: number;
10
+ }[];
11
+ dataBmoney: number;
12
+ dataBnum: number;
13
+ dataState: number;
14
+ contractId: string;
15
+ contractAppraise: number;
16
+ };
17
+ export declare function useOrderList<T>(item: T, refreshNum: number): {
18
+ onScroll: (...args: any[]) => any;
19
+ data: {
20
+ contractBillcode: string;
21
+ goodsList: {
22
+ dataPic: string;
23
+ goodsName: string;
24
+ dataBmoney: number;
25
+ goodsCamount: number;
26
+ contractGoodsId: number;
27
+ dataState: number;
28
+ }[];
29
+ dataBmoney: number;
30
+ dataBnum: number;
31
+ dataState: number;
32
+ contractId: string;
33
+ contractAppraise: number;
34
+ }[];
35
+ loading: boolean;
36
+ init: (...args: any[]) => any;
37
+ countdownCancel: (contractId: string | number) => Promise<void>;
38
+ };
@@ -0,0 +1,4 @@
1
+ export declare function useOrderOperate<T>({ dataState, contractId, contractBillcode, init }: any): {
2
+ handlerImpl: (type: string) => void;
3
+ operateArray: any;
4
+ };
@@ -0,0 +1 @@
1
+ export * from './hooks';
@@ -0,0 +1 @@
1
+ export * from './useOrderDetail';
@@ -0,0 +1,25 @@
1
+ interface itemType {
2
+ contractBillcode: string;
3
+ skuCode: string;
4
+ }
5
+ export declare const useOrderDetail: (contractBillcode: string) => {
6
+ orderDetail: {
7
+ goodsList: never[];
8
+ dataState: string;
9
+ packageRemark: string;
10
+ goodsReceiptMem: string;
11
+ goodsReceiptPhone: string;
12
+ goodsReceiptArrdess: string;
13
+ dataBmoney: number;
14
+ goodsPmoney: number;
15
+ contractInmoney: number;
16
+ contractBillcode: string;
17
+ refundMoney: number;
18
+ gmtCreate: string;
19
+ goodsNum: number;
20
+ contractId: number;
21
+ };
22
+ status: string;
23
+ handleApplyBtn: (item: itemType, dataState: number | string) => Promise<void>;
24
+ };
25
+ export {};
@@ -0,0 +1 @@
1
+ export * from './hooks';
@@ -0,0 +1 @@
1
+ export * from './useOrderResult';
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ export declare function useOrderResult({ contractBillcode, contractBbillcode }: {
3
+ contractBillcode: string;
4
+ contractBbillcode: string;
5
+ }): {
6
+ paymentImpl: () => void;
7
+ channelList: never[];
8
+ handleRadio: (params: any) => void;
9
+ contract: import("react").MutableRefObject<{
10
+ dataBmoney: string;
11
+ contractBillcode: string;
12
+ }>;
13
+ loading: boolean;
14
+ };
@@ -0,0 +1 @@
1
+ export * from './hooks';
@@ -0,0 +1,6 @@
1
+ export * from './usePlaceOrder';
2
+ export * from './useOrderInfo';
3
+ export * from './useOrderAddress';
4
+ export * from './useOrderGood';
5
+ export * from './useOrderCoupon';
6
+ export * from './useOrderPay';
@@ -0,0 +1,24 @@
1
+ export declare const addressInitial: {
2
+ provinceName: string;
3
+ cityName: string;
4
+ areaName: string;
5
+ addressDetail: string;
6
+ addressMember: string;
7
+ addressPhone: string;
8
+ addressDefault: string;
9
+ addressId: string;
10
+ areaCode: string;
11
+ userName: string;
12
+ };
13
+ export declare function useOrderAddress(refreshNum: string, goodsNum: number, skuId: string, shoppingGoodsId: string): {
14
+ provinceName: string;
15
+ cityName: string;
16
+ areaName: string;
17
+ addressDetail: string;
18
+ addressMember: string;
19
+ addressPhone: string;
20
+ addressDefault: string;
21
+ addressId: string;
22
+ areaCode: string;
23
+ userName: string;
24
+ };
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ export declare const useOrderCoupon: (shoppingGoodsList?: Array<any>) => {
3
+ coupon: {
4
+ promotionCode: string;
5
+ promotionName: string;
6
+ discAmount: number;
7
+ }[];
8
+ visible: boolean;
9
+ selectCoupon: string;
10
+ onChange: (e: any) => void;
11
+ setVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
12
+ };
@@ -0,0 +1,57 @@
1
+ /// <reference types="react" />
2
+ export declare const orderGoodValue: {
3
+ shoppingGoodsId: string;
4
+ goodsNum: number;
5
+ skuId: string;
6
+ refreshNum: number;
7
+ };
8
+ export declare const goodListIntialValue: {
9
+ dataPic: string;
10
+ goodsName: string;
11
+ goodsCamount: number;
12
+ skuName: string;
13
+ pricesetNprice: number;
14
+ };
15
+ export declare const initialValueOrder: {
16
+ contractSettlOpno: number;
17
+ shoppingCountPrice: number;
18
+ totalDiscountPrice: number;
19
+ accountsSumPrice: number;
20
+ discount: number;
21
+ freight: number;
22
+ comDisMoney: number;
23
+ copyComDisMoney: number;
24
+ shoppingType: string;
25
+ promotionCode: string;
26
+ promotionCodes: string;
27
+ };
28
+ export declare const useOrderGood: ({ shoppingGoodsId, goodsNum, skuId }: Partial<typeof orderGoodValue>) => {
29
+ amount: number;
30
+ list: {
31
+ dataPic: string;
32
+ goodsName: string;
33
+ goodsCamount: number;
34
+ skuName: string;
35
+ pricesetNprice: number;
36
+ }[];
37
+ shoppingGoodsList: any[];
38
+ payState: {
39
+ contractSettlOpno: number;
40
+ shoppingCountPrice: number;
41
+ totalDiscountPrice: number;
42
+ accountsSumPrice: number;
43
+ discount: number;
44
+ freight: number;
45
+ comDisMoney: number;
46
+ copyComDisMoney: number;
47
+ shoppingType: string;
48
+ promotionCode: string;
49
+ promotionCodes: string;
50
+ }[];
51
+ ocContractSettlList: import("react").MutableRefObject<any[]>;
52
+ disCount: any;
53
+ payPrice: number;
54
+ orderStoreInfo: any;
55
+ freight: any;
56
+ rebMoney: import("react").MutableRefObject<number>;
57
+ };
@@ -0,0 +1,5 @@
1
+ import { initialValueOrder } from './useOrderGood';
2
+ export declare function useOrderInfo(payState: Array<typeof initialValueOrder>): {
3
+ shoppingCountPrice: number;
4
+ comDisMoney: number;
5
+ };
@@ -0,0 +1,11 @@
1
+ import { goodListIntialValue, initialValueOrder } from './useOrderGood';
2
+ export declare function useOrderPay({ ocContractSettlList, payState, list }: {
3
+ payState: Array<typeof initialValueOrder>;
4
+ list: Array<typeof goodListIntialValue>;
5
+ ocContractSettlList: {
6
+ current: Array<any>;
7
+ };
8
+ }, skuId?: string, goodsNum?: number, shoppingGoodsId?: string): {
9
+ savePayPrice: () => Promise<void>;
10
+ loading: boolean;
11
+ };
@@ -0,0 +1,47 @@
1
+ /// <reference types="react" />
2
+ interface PaymentOrderType {
3
+ skuId?: string;
4
+ goodsNum?: number;
5
+ shoppingGoodsId?: string;
6
+ }
7
+ export declare const goodListMock: {
8
+ dataPic: string;
9
+ goodsName: string;
10
+ goodsCamount: number;
11
+ skuName: string;
12
+ pricesetNprice: number;
13
+ };
14
+ export declare function usePlaceOrder({ skuId, goodsNum, shoppingGoodsId }: PaymentOrderType, refreshNum: number, aId: String): {
15
+ savePayPrice: () => void;
16
+ address: {
17
+ provinceName: string;
18
+ cityName: string;
19
+ areaName: string;
20
+ addressDetail: string;
21
+ addressMember: string;
22
+ addressPhone: string;
23
+ addressDefault: string;
24
+ };
25
+ list: import("react").MutableRefObject<{
26
+ dataPic: string;
27
+ goodsName: string;
28
+ goodsCamount: number;
29
+ skuName: string;
30
+ pricesetNprice: number;
31
+ }[]>;
32
+ payState: import("react").MutableRefObject<{
33
+ contractSettlOpno: number;
34
+ promotionCodes: null;
35
+ shoppingCountPrice: number;
36
+ totalDiscountPrice: number;
37
+ accountsSumPrice: number;
38
+ discount: number;
39
+ freight: number;
40
+ comDisMoney: number;
41
+ copyComDisMoney: number;
42
+ }>;
43
+ coupon: never[];
44
+ confirm: (couponItem: any) => void;
45
+ amount: number;
46
+ };
47
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './hooks';
2
+ export * from './store';
@@ -0,0 +1,31 @@
1
+ export declare const initalOrderValue: {
2
+ contractSettlBlance: string;
3
+ contractPmode: string;
4
+ contractSettlGmoney: number;
5
+ contractSettlPmoney: number;
6
+ contractSettlOpno: string;
7
+ contractSettlOpemo: string;
8
+ freight: number;
9
+ };
10
+ export declare const orderStore: {
11
+ getState: () => Partial<{
12
+ contractSettlBlance: string;
13
+ contractPmode: string;
14
+ contractSettlGmoney: number;
15
+ contractSettlPmoney: number;
16
+ contractSettlOpno: string;
17
+ contractSettlOpemo: string;
18
+ freight: number;
19
+ }>;
20
+ setState: (newState: Partial<{
21
+ contractSettlBlance: string;
22
+ contractPmode: string;
23
+ contractSettlGmoney: number;
24
+ contractSettlPmoney: number;
25
+ contractSettlOpno: string;
26
+ contractSettlOpemo: string;
27
+ freight: number;
28
+ }>) => void;
29
+ subscribe: (listener: any) => () => boolean;
30
+ };
31
+ export declare function useSyncOrderStore(selector?: (state: any) => any): any;
@@ -0,0 +1 @@
1
+ export * from './useOrderResult';
@@ -0,0 +1,4 @@
1
+ export declare function useOrderResultResult(code: string): {
2
+ result: any;
3
+ loading: boolean;
4
+ };