@pisell/private-materials 6.4.55 → 6.4.57
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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +7 -7
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/es/components/booking/components/actionButtons/index.js +15 -7
- package/es/components/booking/components/footer/amount.js +1 -1
- package/es/components/booking/components/footer/index.js +2 -2
- package/es/components/booking/components/footer/utils.js +8 -1
- package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
- package/es/components/booking/components/voucher/index.js +23 -19
- package/es/components/booking/forms/footer.d.ts +0 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/es/components/booking/forms/single/index.d.ts +0 -1
- package/es/components/booking/info2/cartClientCard/index.js +7 -3
- package/es/components/booking/materiels/contacts/index.d.ts +0 -1
- package/es/components/checkout/PaymentModal.js +34 -28
- package/es/components/checkout/hooks/useWalletPass.js +36 -21
- package/es/components/eftpos/form/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftpos/index.d.ts +0 -1
- package/es/components/eftpos/pos.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +0 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/es/components/eftposPay/component/fail/index.d.ts +0 -1
- package/es/components/eftposPay/component/fail/network.d.ts +0 -1
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/es/components/eftposPay/component/manual/index.d.ts +0 -1
- package/es/components/eftposPay/component/signature/index.d.ts +0 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/pay.d.ts +0 -1
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/es/components/list/List.js +957 -0
- package/es/components/list/List.less +2 -0
- package/es/components/list/ResponsiveWrapper.js +130 -0
- package/es/components/list/TestResponsiveWrapper.js +816 -0
- package/es/components/list/TestResponsiveWrapper.less +968 -0
- package/es/components/list/components/EmptyState/EmptyState.js +75 -0
- package/es/components/list/components/EmptyState/EmptyState.less +121 -0
- package/es/components/list/components/EmptyState/index.js +1 -0
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.js +39 -0
- package/es/components/list/components/ListItemSkeleton/ListItemSkeleton.less +29 -0
- package/es/components/list/components/ListItemSkeleton/index.js +2 -0
- package/es/components/list/components/Pagination/Pagination.js +240 -0
- package/es/components/list/components/Pagination/Pagination.less +439 -0
- package/es/components/list/components/Pagination/index.js +1 -0
- package/es/components/list/components/ScrollLoader/ScrollLoader.js +18 -0
- package/es/components/list/components/ScrollLoader/ScrollLoader.less +3 -0
- package/es/components/list/components/ScrollLoader/index.js +1 -0
- package/es/components/list/components/Tab/Tab.js +43 -0
- package/es/components/list/components/Tab/Tab.less +139 -0
- package/es/components/list/components/Tab/index.js +1 -0
- package/es/components/list/components/Tab/types.js +1 -0
- package/es/components/list/components/TabSkeleton/TabSkeleton.js +28 -0
- package/es/components/list/components/TabSkeleton/TabSkeleton.less +38 -0
- package/es/components/list/components/TabSkeleton/index.js +2 -0
- package/es/components/list/components/WaterfallList/WaterfallList.js +191 -0
- package/es/components/list/components/WaterfallList/WaterfallList.less +201 -0
- package/es/components/list/components/WaterfallList/index.js +1 -0
- package/es/components/list/examples/GroupedListExample.js +207 -0
- package/es/components/list/hooks/index.js +3 -0
- package/es/components/list/hooks/useDevice.js +102 -0
- package/es/components/list/hooks/useListState.js +176 -0
- package/es/components/list/hooks/useWaterfall.js +161 -0
- package/es/components/list/index.js +7 -0
- package/es/components/list/locales.js +107 -0
- package/es/components/list/styles/base.less +39 -0
- package/es/components/list/styles/content.less +416 -0
- package/es/components/list/styles/floatButton.less +107 -0
- package/es/components/list/styles/footer.less +49 -0
- package/es/components/list/styles/header.less +69 -0
- package/es/components/list/styles/responsive.less +166 -0
- package/es/components/list/types.js +1 -0
- package/es/components/list/utils/getText.js +150 -0
- package/es/components/list/utils/index.js +5 -0
- package/es/components/pay/toB/store/hooks.js +19 -5
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/schedules/resources/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/schedules/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/es/components/shoppingCart/index.d.ts +0 -1
- package/es/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +143 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.js +7 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +41 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/types.js +273 -0
- package/es/components/ticketBooking/components/ProductDisplayAdapter/utils.js +130 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +20 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +46 -11
- package/es/components/ticketBooking/components/addServiceVariant/index.js +4 -2
- package/es/components/ticketBooking/components/menuBar/index.js +40 -17
- package/es/components/ticketBooking/components/menuBar/index.less +27 -1
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +6 -1
- package/es/components/ticketBooking/components/ticketBooking/index.js +66 -23
- package/es/components/ticketBooking/components/timeBar/index.less +1 -0
- package/es/components/ticketBooking/context/IsActiveContext.js +37 -0
- package/es/components/ticketBooking/context/OsKeyContext.js +37 -0
- package/es/components/ticketBooking/context/index.js +2 -0
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.js +13 -1
- package/es/components/ticketBooking/hooks/pisellos/index.js +2 -1
- package/es/components/ticketBooking/hooks/pisellos/useActiveExecute.js +50 -0
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.js +12 -4
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +43 -9
- package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.js +5 -2
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.js +7 -2
- package/es/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +17 -0
- package/es/components/ticketBooking/index.d.ts +6 -0
- package/es/components/ticketBooking/index.js +86 -11
- package/es/components/ticketBooking/utils/index.js +50 -1
- package/es/components/ticketBooking/utils/productCache.js +184 -0
- package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
- package/es/index.js +3 -1
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.js +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.less +8 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.js +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.less +17 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.js +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.less +17 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.js +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.less +17 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.js +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.less +2 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.js +100 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Action/index.less +8 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.js +32 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.less +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.js +239 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.less +44 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.js +34 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.less +14 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.js +33 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.less +30 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +75 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.less +46 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.js +39 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.less +9 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.js +53 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Cover/index.less +31 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.js +31 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.less +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.js +58 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.less +11 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.js +85 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.less +24 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.js +121 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Price/index.less +57 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.js +95 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.less +18 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.js +31 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.less +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.js +47 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.less +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.js +34 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.less +13 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.js +95 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Tags/index.less +18 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.js +31 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.less +3 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.js +34 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/Title/index.less +13 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.js +39 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.less +22 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.js +20 -0
- package/es/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.less +20 -0
- package/es/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.js +55 -0
- package/es/plus/productSelect/ProductCard/SkuCard/index.js +38 -0
- package/es/plus/productSelect/ProductCard/SkuCard/locales.js +41 -0
- package/es/plus/productSelect/ProductCard/SkuCard/status.js +481 -0
- package/es/plus/productSelect/ProductCard/SkuCard/type.js +1 -0
- package/es/plus/productSelect/ProductCard/SkuCard/utils.js +21 -0
- package/es/plus/productSelect/components/pisellPriceText/index.js +7 -5
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/lib/components/booking/components/actionButtons/index.js +22 -15
- package/lib/components/booking/components/footer/amount.js +1 -1
- package/lib/components/booking/components/footer/index.js +2 -2
- package/lib/components/booking/components/footer/utils.js +8 -1
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
- package/lib/components/booking/components/voucher/index.js +33 -40
- package/lib/components/booking/forms/footer.d.ts +0 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/lib/components/booking/forms/single/index.d.ts +0 -1
- package/lib/components/booking/info2/cartClientCard/index.js +7 -3
- package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
- package/lib/components/checkout/PaymentModal.js +20 -16
- package/lib/components/checkout/hooks/useWalletPass.js +57 -45
- package/lib/components/eftpos/form/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftpos/index.d.ts +0 -1
- package/lib/components/eftpos/pos.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
- package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/pay.d.ts +0 -1
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/lib/components/list/List.js +771 -0
- package/lib/components/list/List.less +2 -0
- package/lib/components/list/ResponsiveWrapper.js +145 -0
- package/lib/components/list/TestResponsiveWrapper.js +493 -0
- package/lib/components/list/TestResponsiveWrapper.less +968 -0
- package/lib/components/list/components/EmptyState/EmptyState.js +75 -0
- package/lib/components/list/components/EmptyState/EmptyState.less +121 -0
- package/lib/components/list/components/EmptyState/index.js +35 -0
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.js +75 -0
- package/lib/components/list/components/ListItemSkeleton/ListItemSkeleton.less +29 -0
- package/lib/components/list/components/ListItemSkeleton/index.js +41 -0
- package/lib/components/list/components/Pagination/Pagination.js +205 -0
- package/lib/components/list/components/Pagination/Pagination.less +439 -0
- package/lib/components/list/components/Pagination/index.js +35 -0
- package/lib/components/list/components/ScrollLoader/ScrollLoader.js +37 -0
- package/lib/components/list/components/ScrollLoader/ScrollLoader.less +3 -0
- package/lib/components/list/components/ScrollLoader/index.js +35 -0
- package/lib/components/list/components/Tab/Tab.js +72 -0
- package/lib/components/list/components/Tab/Tab.less +139 -0
- package/lib/components/list/components/Tab/index.js +35 -0
- package/lib/components/list/components/Tab/types.js +17 -0
- package/lib/components/list/components/TabSkeleton/TabSkeleton.js +61 -0
- package/lib/components/list/components/TabSkeleton/TabSkeleton.less +38 -0
- package/lib/components/list/components/TabSkeleton/index.js +41 -0
- package/lib/components/list/components/WaterfallList/WaterfallList.js +178 -0
- package/lib/components/list/components/WaterfallList/WaterfallList.less +201 -0
- package/lib/components/list/components/WaterfallList/index.js +35 -0
- package/lib/components/list/examples/GroupedListExample.js +210 -0
- package/lib/components/list/hooks/index.js +47 -0
- package/lib/components/list/hooks/useDevice.js +96 -0
- package/lib/components/list/hooks/useListState.js +149 -0
- package/lib/components/list/hooks/useWaterfall.js +124 -0
- package/lib/components/list/index.js +60 -0
- package/lib/components/list/locales.js +113 -0
- package/lib/components/list/styles/base.less +39 -0
- package/lib/components/list/styles/content.less +416 -0
- package/lib/components/list/styles/floatButton.less +107 -0
- package/lib/components/list/styles/footer.less +49 -0
- package/lib/components/list/styles/header.less +69 -0
- package/lib/components/list/styles/responsive.less +166 -0
- package/lib/components/list/types.js +17 -0
- package/lib/components/list/utils/getText.js +95 -0
- package/lib/components/list/utils/index.js +43 -0
- package/lib/components/pay/toB/store/hooks.js +16 -8
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/schedules/resources/index.d.ts +0 -1
- package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/schedules/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/lib/components/shoppingCart/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/ProductDisplayAdapter.js +165 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.js +45 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +41 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/types.js +247 -0
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/utils.js +100 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +20 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +45 -11
- package/lib/components/ticketBooking/components/addServiceVariant/index.js +3 -2
- package/lib/components/ticketBooking/components/menuBar/index.js +24 -18
- package/lib/components/ticketBooking/components/menuBar/index.less +27 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +6 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.js +56 -25
- package/lib/components/ticketBooking/components/timeBar/index.less +1 -0
- package/lib/components/ticketBooking/context/IsActiveContext.js +56 -0
- package/lib/components/ticketBooking/context/OsKeyContext.js +56 -0
- package/lib/components/ticketBooking/context/index.js +44 -0
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.js +5 -1
- package/lib/components/ticketBooking/hooks/pisellos/index.js +3 -1
- package/lib/components/ticketBooking/hooks/pisellos/useActiveExecute.js +47 -0
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.js +17 -10
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +26 -4
- package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.js +4 -2
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.js +6 -2
- package/lib/components/ticketBooking/hooks/pisellos/useShopDiscountModule.js +37 -0
- package/lib/components/ticketBooking/index.d.ts +6 -0
- package/lib/components/ticketBooking/index.js +64 -8
- package/lib/components/ticketBooking/utils/index.js +70 -2
- package/lib/components/ticketBooking/utils/productCache.js +144 -0
- package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
- package/lib/index.js +6 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.js +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA1/index.less +8 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.js +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA2/index.less +17 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.js +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA5/index.less +17 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.js +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardA9/index.less +17 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.js +42 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/SkuCardCustom/index.less +2 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.js +129 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Action/index.less +8 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.js +52 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.less +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.js +178 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardCom/index.less +44 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.js +52 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.less +14 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.js +63 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMoreText/index.less +30 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.js +131 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardWrapper/index.less +46 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.js +62 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.less +9 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.js +78 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Cover/index.less +31 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.js +51 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.less +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.js +94 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Favorite/index.less +11 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.js +115 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.less +24 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.js +139 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Price/index.less +57 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.js +97 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Promotions/index.less +18 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.js +51 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.less +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.js +58 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.less +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.js +56 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/SubTitle/index.less +13 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.js +97 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Tags/index.less +18 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.js +51 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.less +3 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.js +56 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Title/index.less +13 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.js +58 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/TooltipTags/index.less +22 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.js +49 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/components/WarningLists/index.less +20 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/hooks/useDynamicComponents.js +83 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/index.js +68 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/locales.js +65 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/status.js +501 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/type.js +17 -0
- package/lib/plus/productSelect/ProductCard/SkuCard/utils.js +37 -0
- package/lib/plus/productSelect/components/pisellPriceText/index.js +6 -5
- package/lowcode/sku-card/meta.ts +1812 -0
- package/lowcode/sku-card/snippets.ts +372 -0
- package/lowcode/sku-list/meta.ts +410 -0
- package/package.json +1 -1
- package/es/components/booking/components/actionButtons/index.d.ts +0 -31
- package/es/components/booking/components/footer/index.d.ts +0 -11
- package/es/components/booking/components/voucher/index.d.ts +0 -3
- package/es/components/booking/info2/cartClientCard/index.d.ts +0 -6
- package/es/components/checkout/hooks/useWalletPass.d.ts +0 -40
- package/es/components/pay/toB/store/hooks.d.ts +0 -15
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/es/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -1
- package/es/components/ticketBooking/hooks/pisellos/index.d.ts +0 -3
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/es/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +0 -5
- package/es/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +0 -5
- package/es/components/ticketBooking/utils/index.d.ts +0 -62
- package/es/index.d.ts +0 -63
- package/es/plus/productSelect/components/pisellPriceText/index.d.ts +0 -12
- package/lib/components/booking/components/actionButtons/index.d.ts +0 -31
- package/lib/components/booking/components/footer/index.d.ts +0 -11
- package/lib/components/booking/components/voucher/index.d.ts +0 -3
- package/lib/components/booking/info2/cartClientCard/index.d.ts +0 -6
- package/lib/components/checkout/hooks/useWalletPass.d.ts +0 -40
- package/lib/components/pay/toB/store/hooks.d.ts +0 -15
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -6
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/lib/components/ticketBooking/hooks/pisellos/bookingTicket.d.ts +0 -1
- package/lib/components/ticketBooking/hooks/pisellos/index.d.ts +0 -3
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/lib/components/ticketBooking/hooks/pisellos/useScanCustomer.d.ts +0 -5
- package/lib/components/ticketBooking/hooks/pisellos/useScanGlobal.d.ts +0 -5
- package/lib/components/ticketBooking/utils/index.d.ts +0 -62
- package/lib/index.d.ts +0 -63
- package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +0 -12
|
@@ -32,6 +32,8 @@ import { useMemoizedFn } from 'ahooks';
|
|
|
32
32
|
import useEngineContext, { usePisellOS } from "../../../../hooks/useEngineContext";
|
|
33
33
|
import useScanManager from "../../../ticketBooking/hooks/pisellos/useScanManager";
|
|
34
34
|
import { DiscountKeyboard } from "../../../../pro/priceKeyboard";
|
|
35
|
+
import { useActiveExecute, useBookingTicket } from "../../../ticketBooking/hooks/pisellos";
|
|
36
|
+
import { useShopDiscountModule } from "../../../ticketBooking/hooks/pisellos/useShopDiscountModule";
|
|
35
37
|
// Toast 内容包装器,统一设置行高
|
|
36
38
|
var createToastContent = function createToastContent(text) {
|
|
37
39
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -61,13 +63,17 @@ var ActionButtons = function ActionButtons(_ref) {
|
|
|
61
63
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
62
64
|
showVoucherModal = _useState8[0],
|
|
63
65
|
setShowVoucherModal = _useState8[1];
|
|
66
|
+
var _useActiveExecute = useActiveExecute(),
|
|
67
|
+
executeIfActive = _useActiveExecute.executeIfActive;
|
|
64
68
|
var context = useEngineContext();
|
|
65
69
|
var _context$appHelper$ut = (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils,
|
|
66
70
|
getData = _context$appHelper$ut.getData,
|
|
67
71
|
pisellosAllModule = _context$appHelper$ut.pisellosAllModule;
|
|
68
72
|
var Toast = useToast();
|
|
69
73
|
var pisellOS = usePisellOS();
|
|
74
|
+
var bookingTicket = useBookingTicket();
|
|
70
75
|
var ScheduleModule = pisellosAllModule.ScheduleModule;
|
|
76
|
+
var shopDiscount = useShopDiscountModule();
|
|
71
77
|
|
|
72
78
|
// 将选中的客户数据传递给状态管理
|
|
73
79
|
var changeCustomerToGlobalState = useMemoizedFn(function (value) {
|
|
@@ -88,7 +94,7 @@ var ActionButtons = function ActionButtons(_ref) {
|
|
|
88
94
|
|
|
89
95
|
// 监听客户选择变化,清空手动折扣
|
|
90
96
|
useEffect(function () {
|
|
91
|
-
if (!
|
|
97
|
+
if (!bookingTicket) return;
|
|
92
98
|
var handleCustomerSelected = function handleCustomerSelected() {
|
|
93
99
|
// 当客户选择改变时,清空 shop_discount
|
|
94
100
|
dispatch({
|
|
@@ -98,15 +104,16 @@ var ActionButtons = function ActionButtons(_ref) {
|
|
|
98
104
|
}
|
|
99
105
|
});
|
|
100
106
|
};
|
|
107
|
+
var wrappedHandleCustomerSelected = executeIfActive(handleCustomerSelected);
|
|
101
108
|
|
|
102
109
|
// 监听客户选择事件
|
|
103
|
-
|
|
110
|
+
bookingTicket.effectsOn('onCustomerSelected', wrappedHandleCustomerSelected);
|
|
104
111
|
|
|
105
112
|
// 清理函数
|
|
106
113
|
return function () {
|
|
107
|
-
|
|
114
|
+
bookingTicket.effectsOff('onCustomerSelected', wrappedHandleCustomerSelected);
|
|
108
115
|
};
|
|
109
|
-
}, [dispatch,
|
|
116
|
+
}, [dispatch, bookingTicket]);
|
|
110
117
|
|
|
111
118
|
// 同步获取金额计算所需配置
|
|
112
119
|
var getDataFromHost = function getDataFromHost() {
|
|
@@ -222,13 +229,14 @@ var ActionButtons = function ActionButtons(_ref) {
|
|
|
222
229
|
var _context$appHelper2;
|
|
223
230
|
var _ref2 = ((_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.utils) || {},
|
|
224
231
|
pisellos = _ref2.pisellos;
|
|
225
|
-
if (!pisellos) return;
|
|
232
|
+
if (!pisellos || !shopDiscount) return;
|
|
226
233
|
var onDiscountListChange = function onDiscountListChange(discount) {
|
|
227
234
|
setDiscountList(discount);
|
|
228
235
|
};
|
|
229
|
-
|
|
236
|
+
var wrappedHandler = executeIfActive(onDiscountListChange);
|
|
237
|
+
shopDiscount.effectsOn('onDiscountListChange', wrappedHandler);
|
|
230
238
|
return function () {
|
|
231
|
-
|
|
239
|
+
shopDiscount.effectsOff('onDiscountListChange', wrappedHandler);
|
|
232
240
|
};
|
|
233
241
|
}, [(_context$appHelper3 = context.appHelper) === null || _context$appHelper3 === void 0 ? void 0 : _context$appHelper3.utils]);
|
|
234
242
|
|
|
@@ -285,7 +285,7 @@ var getTax = function getTax(state, options) {
|
|
|
285
285
|
if (!isEdit) {
|
|
286
286
|
var _state$bookingDetail2;
|
|
287
287
|
return {
|
|
288
|
-
tax: Number((_state$bookingDetail2 = state.bookingDetail) === null || _state$bookingDetail2 === void 0 ? void 0 : _state$bookingDetail2.tax_fee)
|
|
288
|
+
tax: Number((_state$bookingDetail2 = state.bookingDetail) === null || _state$bookingDetail2 === void 0 ? void 0 : _state$bookingDetail2.tax_fee) || 0
|
|
289
289
|
};
|
|
290
290
|
}
|
|
291
291
|
var totalOriginTax = new Decimal(0);
|
|
@@ -46,7 +46,7 @@ import { Iconfont } from '@pisell/materials';
|
|
|
46
46
|
import { useCustomer } from "../../../ticketBooking/hooks/pisellos/useCustomer";
|
|
47
47
|
import { useDebounceEffect, useDebounceFn, useMemoizedFn } from 'ahooks';
|
|
48
48
|
import { cloneDeep } from 'lodash';
|
|
49
|
-
import {
|
|
49
|
+
import { useShopDiscountModule } from "../../../ticketBooking/hooks/pisellos/useShopDiscountModule";
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
* @title: 底部
|
|
@@ -1734,7 +1734,7 @@ var Footer = function Footer(props) {
|
|
|
1734
1734
|
changeCustomerToGlobalState: changeCustomerToGlobalState
|
|
1735
1735
|
}),
|
|
1736
1736
|
selectCustomer = _useCustomer.selectCustomer;
|
|
1737
|
-
var shopDiscount =
|
|
1737
|
+
var shopDiscount = useShopDiscountModule();
|
|
1738
1738
|
var _useScanManager2 = useScanManager(),
|
|
1739
1739
|
clearAllScanListenersTaskQueue = _useScanManager2.clearAllScanListenersTaskQueue;
|
|
1740
1740
|
// 清空所有内容并重置购物车
|
|
@@ -15,6 +15,7 @@ import { isArr, locales, sendWarningLog, getUniqueId } from '@pisell/utils';
|
|
|
15
15
|
import { PisellToast } from "@pisell/materials";
|
|
16
16
|
import { getClientName } from "../../../../plus/clientName/utils";
|
|
17
17
|
import { cloneDeep } from 'lodash';
|
|
18
|
+
import Decimal from 'decimal.js';
|
|
18
19
|
var formatNote = function formatNote(data) {
|
|
19
20
|
var _data$notes;
|
|
20
21
|
return ((_data$notes = data.notes) === null || _data$notes === void 0 ? void 0 : _data$notes.orderNote) || "";
|
|
@@ -100,6 +101,10 @@ export var formatProductBundle = function formatProductBundle(bundle) {
|
|
|
100
101
|
}
|
|
101
102
|
} catch (error) {}
|
|
102
103
|
return bundle.map(function (d) {
|
|
104
|
+
var option = formatProductOption(d.option);
|
|
105
|
+
var option_price = option.reduce(function (temp, item) {
|
|
106
|
+
return temp + Number(item.num) * item.custom_add_price;
|
|
107
|
+
}, 0);
|
|
103
108
|
return {
|
|
104
109
|
"bundle_group_id": d.group_id,
|
|
105
110
|
"bundle_id": d.id,
|
|
@@ -112,7 +117,9 @@ export var formatProductBundle = function formatProductBundle(bundle) {
|
|
|
112
117
|
// checkout 2.0 新增
|
|
113
118
|
"price_type": d === null || d === void 0 ? void 0 : d.price_type,
|
|
114
119
|
// checkout 2.0 新增
|
|
115
|
-
"
|
|
120
|
+
"custom_price": new Decimal(d === null || d === void 0 ? void 0 : d.price).sub(option_price).toNumber().toFixed(2),
|
|
121
|
+
"custom_price_type": d === null || d === void 0 ? void 0 : d.price_type,
|
|
122
|
+
"option": option
|
|
116
123
|
};
|
|
117
124
|
});
|
|
118
125
|
};
|
|
@@ -28,8 +28,9 @@ import { useIsBooking4Shop } from "../../hooks/useIsBooking4Shop";
|
|
|
28
28
|
import "./index.less";
|
|
29
29
|
import { useMemoizedFn, useDebounceFn, useDebounceEffect } from 'ahooks';
|
|
30
30
|
import { getServiceAddons } from "./utils";
|
|
31
|
-
import { useCustomer } from "../../../ticketBooking/hooks/pisellos";
|
|
31
|
+
import { useActiveExecute, useCustomer } from "../../../ticketBooking/hooks/pisellos";
|
|
32
32
|
import { getClientVariantClose } from "../../info/clientVariant/utils";
|
|
33
|
+
import { useShopDiscountModule } from "../../../ticketBooking/hooks/pisellos/useShopDiscountModule";
|
|
33
34
|
var ShopDiscountHooks = {
|
|
34
35
|
onInited: 'shopDiscount:onInited',
|
|
35
36
|
onDestroy: 'shopDiscount:onDestroy',
|
|
@@ -66,7 +67,9 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
66
67
|
var serviceValueRef = useRef(state.service.value);
|
|
67
68
|
var addonsValueRef = useRef(state.addons.value);
|
|
68
69
|
var isBooking4Shop = useIsBooking4Shop(state);
|
|
69
|
-
var shopDiscount =
|
|
70
|
+
var shopDiscount = useShopDiscountModule();
|
|
71
|
+
var _useActiveExecute = useActiveExecute(),
|
|
72
|
+
executeIfActive = _useActiveExecute.executeIfActive;
|
|
70
73
|
services = state.service;
|
|
71
74
|
|
|
72
75
|
// 将选中的客户数据传递给状态管理
|
|
@@ -95,7 +98,7 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
95
98
|
|
|
96
99
|
// 设置productList
|
|
97
100
|
useEffect(function () {
|
|
98
|
-
if (isBooking4Shop) {
|
|
101
|
+
if (isBooking4Shop && shopDiscount) {
|
|
99
102
|
shopDiscount.setProductList([].concat(_toConsumableArray(state.service.value), _toConsumableArray(state.addons.value)));
|
|
100
103
|
}
|
|
101
104
|
}, [state.service.value, state.addons.value, isBooking4Shop]);
|
|
@@ -122,9 +125,10 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
122
125
|
onScanCode(e.detail.code);
|
|
123
126
|
});
|
|
124
127
|
useEffect(function () {
|
|
125
|
-
|
|
128
|
+
var wrappedOnScanWallPassCode = executeIfActive(onScanWallPassCode);
|
|
129
|
+
window.addEventListener('onScanWallPassCode', wrappedOnScanWallPassCode);
|
|
126
130
|
return function () {
|
|
127
|
-
window.removeEventListener('onScanWallPassCode',
|
|
131
|
+
window.removeEventListener('onScanWallPassCode', wrappedOnScanWallPassCode);
|
|
128
132
|
};
|
|
129
133
|
}, []);
|
|
130
134
|
var addonsMemo = useMemo(function () {
|
|
@@ -174,12 +178,11 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
174
178
|
run();
|
|
175
179
|
}, [JSON.stringify(serviceMemo), JSON.stringify(addonsMemo), isBooking4Shop]);
|
|
176
180
|
useEffect(function () {
|
|
177
|
-
if (
|
|
178
|
-
var
|
|
179
|
-
|
|
181
|
+
if (shopDiscount) {
|
|
182
|
+
var wrappedHandler = executeIfActive(fn);
|
|
183
|
+
shopDiscount === null || shopDiscount === void 0 || shopDiscount.effectsOn("onSelectedDiscountListChange", wrappedHandler);
|
|
180
184
|
return function () {
|
|
181
|
-
|
|
182
|
-
pisellos === null || pisellos === void 0 || (_pisellos$effects2 = pisellos.effects) === null || _pisellos$effects2 === void 0 || _pisellos$effects2.off("shopDiscount:onSelectedDiscountListChange", fn);
|
|
185
|
+
shopDiscount === null || shopDiscount === void 0 || shopDiscount.effectsOff("onSelectedDiscountListChange", wrappedHandler);
|
|
183
186
|
};
|
|
184
187
|
}
|
|
185
188
|
}, []);
|
|
@@ -195,7 +198,7 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
195
198
|
|
|
196
199
|
// 监听customer变化
|
|
197
200
|
useEffect(function () {
|
|
198
|
-
if (!isBooking4Shop) return;
|
|
201
|
+
if (!isBooking4Shop || !shopDiscount) return;
|
|
199
202
|
var onScanCustomerChange = function onScanCustomerChange(customer) {
|
|
200
203
|
var clientVariantClose = getClientVariantClose();
|
|
201
204
|
if (clientVariantClose) {
|
|
@@ -206,14 +209,17 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
206
209
|
var onDiscountListChange = function onDiscountListChange(discount) {
|
|
207
210
|
setDisCountList(discount);
|
|
208
211
|
};
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
+
var wrappedOnScanCustomerChangeHandler = executeIfActive(onScanCustomerChange);
|
|
213
|
+
var wrappedOnDiscountListChangeHandler = executeIfActive(onDiscountListChange);
|
|
214
|
+
var wrappedFn = executeIfActive(fn);
|
|
215
|
+
shopDiscount.effectsOn('onScanCustomerChange', wrappedOnScanCustomerChangeHandler);
|
|
216
|
+
shopDiscount.effectsOn('onLoadPrepareCalcResult', wrappedFn);
|
|
217
|
+
shopDiscount.effectsOn('onDiscountListChange', wrappedOnDiscountListChangeHandler);
|
|
212
218
|
return function () {
|
|
213
219
|
shopDiscount.clear();
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
220
|
+
shopDiscount.effectsOff('onScanCustomerChange', wrappedOnScanCustomerChangeHandler);
|
|
221
|
+
shopDiscount.effectsOff('onLoadPrepareCalcResult', wrappedFn);
|
|
222
|
+
shopDiscount.effectsOff('onDiscountListChange', wrappedOnDiscountListChangeHandler);
|
|
217
223
|
};
|
|
218
224
|
}, [state.bookingId, isBooking4Shop, fn]);
|
|
219
225
|
var productListToValue = useMemoizedFn(function (list, edit) {
|
|
@@ -282,7 +288,6 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
282
288
|
}();
|
|
283
289
|
var availableData = useMemo(function () {
|
|
284
290
|
if (!isBooking4Shop) return [];
|
|
285
|
-
var shopDiscount = pisellos.getModule('shopDiscount');
|
|
286
291
|
return discountList.filter(function (item) {
|
|
287
292
|
return !!item.isAvailable;
|
|
288
293
|
}).map(function (discount) {
|
|
@@ -325,7 +330,6 @@ var VoucherCard = function VoucherCard(props) {
|
|
|
325
330
|
dataSource: (_state$service2 = state.service) !== null && _state$service2 !== void 0 && (_state$service2 = _state$service2.value) !== null && _state$service2 !== void 0 && _state$service2.length ? availableData : [],
|
|
326
331
|
mixedSort: mixedSort,
|
|
327
332
|
onChange: function onChange(val) {
|
|
328
|
-
var shopDiscount = pisellos.getModule('shopDiscount');
|
|
329
333
|
var detail = shopDiscount.setDiscountSelected({
|
|
330
334
|
discountId: val.id,
|
|
331
335
|
isSelected: val.isSelected
|
|
@@ -29,6 +29,7 @@ import useTranslationOriginal from "../../../../hooks/useTranslationOriginal";
|
|
|
29
29
|
import useEngineContext from "../../../../hooks/useEngineContext";
|
|
30
30
|
import { Context } from "../../info/model";
|
|
31
31
|
import "./index.less";
|
|
32
|
+
import { useIsActive } from "../../../ticketBooking/context/IsActiveContext";
|
|
32
33
|
|
|
33
34
|
// 导出类型
|
|
34
35
|
|
|
@@ -60,6 +61,7 @@ var CartClientCard = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
60
61
|
keyword = _useState8[0],
|
|
61
62
|
setKeyword = _useState8[1];
|
|
62
63
|
var keywordRef = useRef('');
|
|
64
|
+
var isActive = useIsActive();
|
|
63
65
|
keywordRef.current = keyword;
|
|
64
66
|
var Toast = useToast();
|
|
65
67
|
var _useScanCustomer = useScanCustomer(),
|
|
@@ -315,13 +317,15 @@ var CartClientCard = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
315
317
|
setPendingCustomer(null);
|
|
316
318
|
};
|
|
317
319
|
useMemo(function () {
|
|
318
|
-
|
|
319
|
-
|
|
320
|
+
if (isActive) {
|
|
321
|
+
setHandleSetClient(handleSetClient);
|
|
322
|
+
}
|
|
323
|
+
}, [isActive]);
|
|
320
324
|
useEffect(function () {
|
|
321
325
|
return function () {
|
|
322
326
|
setHandleSetClient(null);
|
|
323
327
|
};
|
|
324
|
-
}, []);
|
|
328
|
+
}, [isActive]);
|
|
325
329
|
var tags = useMemo(function () {
|
|
326
330
|
var _latest_wallet_detail;
|
|
327
331
|
if (!selectedCustomer) return;
|
|
@@ -47,6 +47,7 @@ import { getShopWalletPassId, reorderPaymentMethodList } from "./utils";
|
|
|
47
47
|
import usePaymentLogger from "./hooks/usePaymentLogger";
|
|
48
48
|
import { Button } from 'antd';
|
|
49
49
|
import { DiscountKeyboard } from "../../pro/priceKeyboard";
|
|
50
|
+
import { useActiveExecute } from "../ticketBooking/hooks/pisellos";
|
|
50
51
|
|
|
51
52
|
// Checkout 模块的事件常量
|
|
52
53
|
var CheckoutHooks = {
|
|
@@ -98,6 +99,8 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
98
99
|
pisellosAllModule = utils.pisellosAllModule,
|
|
99
100
|
interaction = utils.interaction;
|
|
100
101
|
var Toast = useToast();
|
|
102
|
+
var _useActiveExecute = useActiveExecute(),
|
|
103
|
+
executeIfActive = _useActiveExecute.executeIfActive;
|
|
101
104
|
// const paymentResultToast = usePaymentResultToast();
|
|
102
105
|
|
|
103
106
|
var checkoutRef = useRef(null);
|
|
@@ -253,7 +256,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
253
256
|
var onPaymentOptionClick = /*#__PURE__*/function () {
|
|
254
257
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(method) {
|
|
255
258
|
var _method$totalAmount;
|
|
256
|
-
var _ref4, id, code, name, type, finalAmount, eftposCodes, mx51Code, payType, _paymentMethodsRef$cu, data, isSynced, _orderId, _method$metadata, service_charge, _interaction$utils2, _interaction$utils2$p;
|
|
259
|
+
var _ref4, id, code, name, type, finalAmount, eftposCodes, mx51Code, payType, _paymentMethodsRef$cu, data, isSynced, _Toast$loading, _orderId, _method$metadata, service_charge, _interaction$utils2, _interaction$utils2$p;
|
|
257
260
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
258
261
|
while (1) switch (_context2.prev = _context2.next) {
|
|
259
262
|
case 0:
|
|
@@ -268,7 +271,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
268
271
|
payType = 'mx51';
|
|
269
272
|
}
|
|
270
273
|
if (!payType) {
|
|
271
|
-
_context2.next =
|
|
274
|
+
_context2.next = 24;
|
|
272
275
|
break;
|
|
273
276
|
}
|
|
274
277
|
_context2.next = 9;
|
|
@@ -276,24 +279,25 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
276
279
|
case 9:
|
|
277
280
|
isSynced = _context2.sent;
|
|
278
281
|
if (isSynced) {
|
|
279
|
-
_context2.next =
|
|
282
|
+
_context2.next = 17;
|
|
280
283
|
break;
|
|
281
284
|
}
|
|
282
|
-
|
|
285
|
+
Toast === null || Toast === void 0 || (_Toast$loading = Toast.loading) === null || _Toast$loading === void 0 || _Toast$loading.call(Toast);
|
|
286
|
+
_context2.next = 14;
|
|
283
287
|
return checkoutModule.manualSyncOrderAsync();
|
|
284
|
-
case
|
|
288
|
+
case 14:
|
|
285
289
|
data = _context2.sent;
|
|
286
|
-
_context2.next =
|
|
290
|
+
_context2.next = 21;
|
|
287
291
|
break;
|
|
288
|
-
case
|
|
289
|
-
_context2.next =
|
|
292
|
+
case 17:
|
|
293
|
+
_context2.next = 19;
|
|
290
294
|
return checkoutModule.getCurrentOrderId();
|
|
291
|
-
case
|
|
295
|
+
case 19:
|
|
292
296
|
_orderId = _context2.sent;
|
|
293
297
|
data = {
|
|
294
298
|
orderId: _orderId
|
|
295
299
|
};
|
|
296
|
-
case
|
|
300
|
+
case 21:
|
|
297
301
|
(_paymentMethodsRef$cu = paymentMethodsRef.current) === null || _paymentMethodsRef$cu === void 0 || _paymentMethodsRef$cu.onPay(payType, {
|
|
298
302
|
source: 'normal',
|
|
299
303
|
data: {
|
|
@@ -357,9 +361,9 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
357
361
|
}
|
|
358
362
|
}
|
|
359
363
|
});
|
|
360
|
-
_context2.next =
|
|
364
|
+
_context2.next = 29;
|
|
361
365
|
break;
|
|
362
|
-
case
|
|
366
|
+
case 24:
|
|
363
367
|
service_charge = null;
|
|
364
368
|
if (method !== null && method !== void 0 && method.fixed || method !== null && method !== void 0 && method.percentage) {
|
|
365
369
|
service_charge = {
|
|
@@ -384,7 +388,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
384
388
|
});
|
|
385
389
|
}
|
|
386
390
|
// 从支付方式列表中查找现金支付方式
|
|
387
|
-
_context2.next =
|
|
391
|
+
_context2.next = 29;
|
|
388
392
|
return checkoutModule === null || checkoutModule === void 0 ? void 0 : checkoutModule.addPaymentItemAsync({
|
|
389
393
|
amount: finalAmount,
|
|
390
394
|
/** 支付类型,跟支付列表上对应的支付方式保持一致 */
|
|
@@ -400,7 +404,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
400
404
|
/** 支付手续费 */
|
|
401
405
|
service_charge: service_charge
|
|
402
406
|
});
|
|
403
|
-
case
|
|
407
|
+
case 29:
|
|
404
408
|
case "end":
|
|
405
409
|
return _context2.stop();
|
|
406
410
|
}
|
|
@@ -490,7 +494,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
490
494
|
try {
|
|
491
495
|
var core = checkoutModule.core;
|
|
492
496
|
if (core.effects && typeof core.effects.on === 'function') {
|
|
493
|
-
var unsubscribe = core.effects.on(CheckoutHooks.OnStateAmountChanged, /*#__PURE__*/function () {
|
|
497
|
+
var unsubscribe = core.effects.on(CheckoutHooks.OnStateAmountChanged, executeIfActive( /*#__PURE__*/function () {
|
|
494
498
|
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(data) {
|
|
495
499
|
var _Toast$success, _Toast$success2, items;
|
|
496
500
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
@@ -520,17 +524,17 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
520
524
|
return function (_x4) {
|
|
521
525
|
return _ref7.apply(this, arguments);
|
|
522
526
|
};
|
|
523
|
-
}());
|
|
524
|
-
var amountChangedUnsubscribe = core.effects.on(CheckoutHooks.OnBalanceDueAmountChanged, function (data) {
|
|
527
|
+
}()));
|
|
528
|
+
var amountChangedUnsubscribe = core.effects.on(CheckoutHooks.OnBalanceDueAmountChanged, executeIfActive(function (data) {
|
|
525
529
|
setBalanceDueAmount(data.newAmount);
|
|
526
530
|
setBalanceDueTotalAmount(data.totalAmount || '0');
|
|
527
|
-
});
|
|
528
|
-
var orderSubmitStartUnsubscribe = core.effects.on(CheckoutHooks.OnOrderSubmitStart, function () {
|
|
529
|
-
var _Toast$
|
|
531
|
+
}));
|
|
532
|
+
var orderSubmitStartUnsubscribe = core.effects.on(CheckoutHooks.OnOrderSubmitStart, executeIfActive(function () {
|
|
533
|
+
var _Toast$loading2;
|
|
530
534
|
setSyncingLock(true);
|
|
531
|
-
Toast === null || Toast === void 0 || (_Toast$
|
|
532
|
-
});
|
|
533
|
-
var orderSubmitEndUnsubscribe = core.effects.on(CheckoutHooks.OnOrderSubmitEnd, function (res) {
|
|
535
|
+
Toast === null || Toast === void 0 || (_Toast$loading2 = Toast.loading) === null || _Toast$loading2 === void 0 || _Toast$loading2.call(Toast);
|
|
536
|
+
}));
|
|
537
|
+
var orderSubmitEndUnsubscribe = core.effects.on(CheckoutHooks.OnOrderSubmitEnd, executeIfActive(function (res) {
|
|
534
538
|
setSyncingLock(false);
|
|
535
539
|
if (res.success) {
|
|
536
540
|
var _Toast$hide;
|
|
@@ -546,7 +550,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
546
550
|
Toast === null || Toast === void 0 || Toast.fail(locales.getText('pisell2.checkout.order-sync-failed') || 'Order sync failed');
|
|
547
551
|
}
|
|
548
552
|
}
|
|
549
|
-
});
|
|
553
|
+
}));
|
|
550
554
|
|
|
551
555
|
// const orderSyncFailedUnsubscribe = core.effects.on(
|
|
552
556
|
// CheckoutHooks.OnOrderSyncFailed,
|
|
@@ -555,7 +559,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
555
559
|
// Toast?.fail(locales.getText('pisell2.checkout.order-sync-failed') || 'Order sync failed');
|
|
556
560
|
// }
|
|
557
561
|
// );
|
|
558
|
-
var orderPaymentAddedUnsubscribe = core.effects.on(CheckoutHooks.OnOrderPaymentAdded, /*#__PURE__*/function () {
|
|
562
|
+
var orderPaymentAddedUnsubscribe = core.effects.on(CheckoutHooks.OnOrderPaymentAdded, executeIfActive( /*#__PURE__*/function () {
|
|
559
563
|
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(data) {
|
|
560
564
|
var orderInfo, balanceDueAmount, autoCloseConfig, _paymentItems, _totalAmount, serviceChargeTotal, paymentMethodName, isCashPayment, _interaction$utils3, _interaction$utils3$p;
|
|
561
565
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
@@ -645,7 +649,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
645
649
|
return function (_x5) {
|
|
646
650
|
return _ref8.apply(this, arguments);
|
|
647
651
|
};
|
|
648
|
-
}());
|
|
652
|
+
}()));
|
|
649
653
|
return function () {
|
|
650
654
|
if (unsubscribe && typeof unsubscribe === 'function') {
|
|
651
655
|
unsubscribe();
|
|
@@ -1404,6 +1408,8 @@ var PaymentModal = function PaymentModal(_ref18) {
|
|
|
1404
1408
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
1405
1409
|
currentEditOrderId = _useState36[0],
|
|
1406
1410
|
_setCurrentEditOrderId = _useState36[1];
|
|
1411
|
+
var _useActiveExecute2 = useActiveExecute(),
|
|
1412
|
+
executeIfActive = _useActiveExecute2.executeIfActive;
|
|
1407
1413
|
var Toast = useToast();
|
|
1408
1414
|
|
|
1409
1415
|
// 重试处理函数(逻辑由用户自己实现)
|
|
@@ -2078,7 +2084,7 @@ var PaymentModal = function PaymentModal(_ref18) {
|
|
|
2078
2084
|
unsubscribeRef.current = undefined;
|
|
2079
2085
|
}
|
|
2080
2086
|
// 监听订单同步完成,同步完成后显示订单完成 toast,关闭当前弹窗
|
|
2081
|
-
unsubscribeRef.current = checkout.core.effects.on('checkout:onOrderSynced', /*#__PURE__*/function () {
|
|
2087
|
+
unsubscribeRef.current = checkout.core.effects.on('checkout:onOrderSynced', executeIfActive( /*#__PURE__*/function () {
|
|
2082
2088
|
var _ref29 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(data) {
|
|
2083
2089
|
var _data$response, _responseData$payment2;
|
|
2084
2090
|
var currentOrderId, responseData, paymentStatus, orderTotalAmount, gapAmount, currentChangeGivenAmount, failureReason, _responseData$payment3, params, statusClassName, autoCloseConfig, enabledAutoPrint, _interaction$utils6, _interaction$utils6$a, _orderInfo3, paymentResult;
|
|
@@ -2223,7 +2229,7 @@ var PaymentModal = function PaymentModal(_ref18) {
|
|
|
2223
2229
|
return function (_x17) {
|
|
2224
2230
|
return _ref29.apply(this, arguments);
|
|
2225
2231
|
};
|
|
2226
|
-
}());
|
|
2232
|
+
}()));
|
|
2227
2233
|
_context23.next = 42;
|
|
2228
2234
|
break;
|
|
2229
2235
|
case 25:
|
|
@@ -27,6 +27,8 @@ import { usePisellOS } from "../../../hooks/useEngineContext";
|
|
|
27
27
|
import { formatDiscountWalletData, formatMachineCodeServer2CardList, isSameContent } from "../components/WalletPassModule/utils";
|
|
28
28
|
import usePaymentLogger from "./usePaymentLogger";
|
|
29
29
|
import { isWalkIn } from "../../booking/utils";
|
|
30
|
+
import { useActiveExecute } from "../../ticketBooking/hooks/pisellos";
|
|
31
|
+
import { useShopDiscountModule } from "../../ticketBooking/hooks/pisellos/useShopDiscountModule";
|
|
30
32
|
|
|
31
33
|
/**
|
|
32
34
|
* 自定义Hook:使用WalletPass功能
|
|
@@ -36,6 +38,8 @@ export var useWalletPass = function useWalletPass(props) {
|
|
|
36
38
|
customAmount = props.customAmount,
|
|
37
39
|
clientId = props.clientId;
|
|
38
40
|
var logger = usePaymentLogger();
|
|
41
|
+
var _useActiveExecute = useActiveExecute(),
|
|
42
|
+
executeIfActive = _useActiveExecute.executeIfActive;
|
|
39
43
|
|
|
40
44
|
// 钱包推荐列表
|
|
41
45
|
var _useState = useState([]),
|
|
@@ -114,7 +118,7 @@ export var useWalletPass = function useWalletPass(props) {
|
|
|
114
118
|
|
|
115
119
|
// 获取checkout模块
|
|
116
120
|
var checkoutModule = pisellos.getModule('checkout');
|
|
117
|
-
var shopDiscount =
|
|
121
|
+
var shopDiscount = useShopDiscountModule();
|
|
118
122
|
var paymentModule = checkoutModule === null || checkoutModule === void 0 ? void 0 : checkoutModule.payment;
|
|
119
123
|
var setWalletSelect = useMemoizedFn(function (data) {
|
|
120
124
|
setSelectedWallet(data);
|
|
@@ -515,30 +519,41 @@ export var useWalletPass = function useWalletPass(props) {
|
|
|
515
519
|
if (!paymentModule) return;
|
|
516
520
|
var core = pisellos; // 获取core实例
|
|
517
521
|
|
|
522
|
+
// checkout 单实例,执行时判断是否active
|
|
523
|
+
var wrappedHandlePaymentStarted = executeIfActive(handlePaymentStarted);
|
|
524
|
+
var wrappedOnOrderCreated = executeIfActive(onOrderCreated);
|
|
525
|
+
var wrappedHandleWalletRecommendListUpdated = executeIfActive(handleWalletRecommendListUpdated);
|
|
526
|
+
var wrappedHandleUserIdentificationCodesUpdated = executeIfActive(handleUserIdentificationCodesUpdated);
|
|
527
|
+
var wrappedHandleWalletCacheCleared = executeIfActive(handleWalletCacheCleared);
|
|
528
|
+
var wrappedHandleSearchIdentificationCodeCompleted = executeIfActive(handleSearchIdentificationCodeCompleted);
|
|
529
|
+
var wrappedHandleWalletInitializationStarted = executeIfActive(handleWalletInitializationStarted);
|
|
530
|
+
var wrappedHandleWalletInitializationCompleted = executeIfActive(handleWalletInitializationCompleted);
|
|
531
|
+
var wrappedHandleWalletInitializationFailed = executeIfActive(handleWalletInitializationFailed);
|
|
518
532
|
// 注册事件监听器
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
533
|
+
paymentModule.effectsOn('onWalletRecommendListUpdated', wrappedHandleWalletRecommendListUpdated);
|
|
534
|
+
// checkout 单实例,执行时判断是否active
|
|
535
|
+
checkoutModule.effectsOn('onPaymentStarted', wrappedHandlePaymentStarted);
|
|
536
|
+
checkoutModule.effectsOn('onPaymentItemAdded', wrappedHandlePaymentStarted);
|
|
537
|
+
paymentModule.effectsOn('onUserIdentificationCodesUpdated', wrappedHandleUserIdentificationCodesUpdated);
|
|
538
|
+
paymentModule.effectsOn('onWalletCacheCleared', wrappedHandleWalletCacheCleared);
|
|
539
|
+
paymentModule.effectsOn('onSearchIdentificationCodeCompleted', wrappedHandleSearchIdentificationCodeCompleted);
|
|
540
|
+
checkoutModule.effectsOn('onWalletDataInitialized', wrappedOnOrderCreated);
|
|
541
|
+
paymentModule.effectsOn('onWalletInitializationStarted', wrappedHandleWalletInitializationStarted);
|
|
542
|
+
paymentModule.effectsOn('onWalletInitializationCompleted', wrappedHandleWalletInitializationCompleted);
|
|
543
|
+
paymentModule.effectsOn('onWalletInitializationFailed', wrappedHandleWalletInitializationFailed);
|
|
529
544
|
|
|
530
545
|
// 清理事件监听器
|
|
531
546
|
return function () {
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
547
|
+
paymentModule.effectsOff('onWalletRecommendListUpdated', wrappedHandleWalletRecommendListUpdated);
|
|
548
|
+
checkoutModule.effectsOff('onPaymentStarted', wrappedHandlePaymentStarted);
|
|
549
|
+
checkoutModule.effectsOff('onPaymentItemAdded', wrappedHandlePaymentStarted);
|
|
550
|
+
paymentModule.effectsOff('onUserIdentificationCodesUpdated', wrappedHandleUserIdentificationCodesUpdated);
|
|
551
|
+
paymentModule.effectsOff('onWalletCacheCleared', wrappedHandleWalletCacheCleared);
|
|
552
|
+
paymentModule.effectsOff('onSearchIdentificationCodeCompleted', wrappedHandleSearchIdentificationCodeCompleted);
|
|
553
|
+
checkoutModule.effectsOff('onWalletDataInitialized', wrappedOnOrderCreated);
|
|
554
|
+
paymentModule.effectsOff('onWalletInitializationStarted', wrappedHandleWalletInitializationStarted);
|
|
555
|
+
paymentModule.effectsOff('onWalletInitializationCompleted', wrappedHandleWalletInitializationCompleted);
|
|
556
|
+
paymentModule.effectsOff('onWalletInitializationFailed', wrappedHandleWalletInitializationFailed);
|
|
542
557
|
};
|
|
543
558
|
}, [paymentModule]);
|
|
544
559
|
|