@pisell/private-materials 6.3.26 → 6.3.27
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 +1 -1
- package/build/lowcode/preview.js +146 -146
- 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 +8 -8
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/es/components/booking/forms/single/index.d.ts +1 -0
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/hooks/useClearCart.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/actions/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/booking/info2/service/actions/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/materiels/contacts/index.d.ts +1 -0
- package/es/components/booking/materiels/duration/index.d.ts +1 -0
- package/es/components/booking/materiels/holder/index.d.ts +1 -0
- package/es/components/booking/materiels/startTime/index.d.ts +1 -0
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/form/index.d.ts +1 -0
- package/es/components/eftpos/group/index.d.ts +1 -0
- package/es/components/eftpos/hooks.d.ts +1 -0
- package/es/components/eftpos/icon/apiKey.d.ts +1 -0
- package/es/components/eftpos/icon/device.d.ts +1 -0
- package/es/components/eftpos/index.d.ts +1 -0
- package/es/components/eftpos/pos.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +1 -0
- package/es/components/eftposPay/app.d.ts +1 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/index.d.ts +1 -0
- package/es/components/eftposPay/component/fail/network.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/manual/index.d.ts +1 -0
- package/es/components/eftposPay/component/signature/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/step.d.ts +1 -0
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/payo/config.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eftposPay/tip.d.ts +1 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/es/components/login/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/ApplePay/index.js +68 -35
- package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +70 -42
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +72 -41
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.d.ts +15 -0
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +143 -0
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +34 -0
- package/es/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
- package/es/components/pay/toC/PaymentMethods/hooks/index.js +126 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/pay/toC/index.js +3 -2
- package/es/components/pay/toC/locales.d.ts +9 -0
- package/es/components/pay/toC/locales.js +12 -3
- package/es/components/pay/toC/model.d.ts +10 -1
- package/es/components/pay/toC/serve.d.ts +5 -0
- package/es/components/pay/toC/serve.js +9 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/calendar/index.d.ts +1 -0
- package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/products/index.d.ts +1 -0
- package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/es/components/schedules/products/list/index.d.ts +1 -0
- package/es/components/schedules/resources/index.d.ts +1 -0
- package/es/components/schedules/resources/list/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/es/components/schedules/schedules/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/es/components/shoppingCart/index.d.ts +1 -0
- package/es/components/wallet/Detail/model.d.ts +13 -1
- package/es/components/wallet/DiscountCard/model.d.ts +14 -1
- package/es/components/wallet/PointCard/model.d.ts +13 -1
- package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/es/components/wallet/Voucher/model.d.ts +13 -1
- package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/es/components/wallet/model.d.ts +9 -1
- package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/es/hooks/usePaymentLogger.d.ts +1 -0
- package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/es/plus/saasRegister/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/lib/components/booking/forms/single/index.d.ts +1 -0
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
- package/lib/components/booking/materiels/duration/index.d.ts +1 -0
- package/lib/components/booking/materiels/holder/index.d.ts +1 -0
- package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/form/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.d.ts +1 -0
- package/lib/components/eftpos/hooks.d.ts +1 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
- package/lib/components/eftpos/icon/device.d.ts +1 -0
- package/lib/components/eftpos/index.d.ts +1 -0
- package/lib/components/eftpos/pos.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +1 -0
- package/lib/components/eftposPay/app.d.ts +1 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/step.d.ts +1 -0
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/payo/config.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eftposPay/tip.d.ts +1 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/lib/components/login/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/ApplePay/index.js +27 -7
- package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +32 -8
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +30 -4
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.d.ts +15 -0
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +88 -0
- package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +34 -0
- package/lib/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
- package/lib/components/pay/toC/PaymentMethods/hooks/index.js +90 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/pay/toC/index.js +2 -1
- package/lib/components/pay/toC/locales.d.ts +9 -0
- package/lib/components/pay/toC/locales.js +12 -3
- package/lib/components/pay/toC/model.d.ts +10 -1
- package/lib/components/pay/toC/serve.d.ts +5 -0
- package/lib/components/pay/toC/serve.js +3 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/calendar/index.d.ts +1 -0
- package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/products/index.d.ts +1 -0
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/lib/components/schedules/products/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/index.d.ts +1 -0
- package/lib/components/schedules/resources/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
- package/lib/components/schedules/schedules/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/lib/components/shoppingCart/index.d.ts +1 -0
- package/lib/components/wallet/Detail/model.d.ts +13 -1
- package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
- package/lib/components/wallet/PointCard/model.d.ts +13 -1
- package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/lib/components/wallet/Voucher/model.d.ts +13 -1
- package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/lib/components/wallet/model.d.ts +9 -1
- package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/hooks/usePaymentLogger.d.ts +1 -0
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/lib/plus/saasRegister/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/package.json +4 -4
|
@@ -43,18 +43,25 @@ var import_index = require("./index.less");
|
|
|
43
43
|
var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
|
|
44
44
|
var import_usePaymentLogger = __toESM(require("../../../../../hooks/usePaymentLogger"));
|
|
45
45
|
var import_utils2 = require("../../utils");
|
|
46
|
+
var import_hooks = require("../hooks");
|
|
47
|
+
var import_PaymentReturnContent = __toESM(require("../components/PaymentReturnContent"));
|
|
46
48
|
var SuperPayAliPayH5 = (props, ref) => {
|
|
47
|
-
var _a, _b;
|
|
49
|
+
var _a, _b, _c, _d;
|
|
48
50
|
const { state } = (0, import_react.useContext)(import_model.Context);
|
|
49
51
|
const { onChange } = props;
|
|
50
52
|
const [open, setOpen] = (0, import_react.useState)(false);
|
|
51
53
|
const [showSuccessBackButton, setShowSuccessBackButton] = (0, import_react.useState)(false);
|
|
54
|
+
const [statePayNumber, setStatePayNumber] = (0, import_react.useState)("");
|
|
52
55
|
const context = (0, import_useEngineContext.default)();
|
|
53
56
|
const { interaction } = (_a = context.appHelper) == null ? void 0 : _a.utils;
|
|
54
57
|
const paymentLogger = (0, import_usePaymentLogger.default)({
|
|
55
58
|
orderId: ((_b = state.payGroup) == null ? void 0 : _b.order_id) || "unknown",
|
|
56
59
|
step: "2"
|
|
57
60
|
});
|
|
61
|
+
const { isReturned, handleRedirect, resetState } = (0, import_hooks.usePaymentRedirect)({
|
|
62
|
+
orderId: (_c = state.payGroup) == null ? void 0 : _c.order_id,
|
|
63
|
+
paymentType: "aliPay"
|
|
64
|
+
});
|
|
58
65
|
const init = async ({ payGroup }) => {
|
|
59
66
|
var _a2, _b2;
|
|
60
67
|
paymentLogger.addLog({
|
|
@@ -68,7 +75,12 @@ var SuperPayAliPayH5 = (props, ref) => {
|
|
|
68
75
|
value: "检测到App环境,调用客户端支付"
|
|
69
76
|
});
|
|
70
77
|
paymentLogger.sendLogs("SuperPayAliPayH5App环境支付");
|
|
71
|
-
return (0, import_utils2.clientPayment)({
|
|
78
|
+
return (0, import_utils2.clientPayment)({
|
|
79
|
+
order_id: payGroup.order_id,
|
|
80
|
+
type: "aliPay",
|
|
81
|
+
values,
|
|
82
|
+
interaction
|
|
83
|
+
});
|
|
72
84
|
}
|
|
73
85
|
setOpen(true);
|
|
74
86
|
if (!values) {
|
|
@@ -97,13 +109,14 @@ var SuperPayAliPayH5 = (props, ref) => {
|
|
|
97
109
|
value: ""
|
|
98
110
|
});
|
|
99
111
|
(0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number);
|
|
112
|
+
setStatePayNumber(data == null ? void 0 : data.pay_number);
|
|
100
113
|
setShowSuccessBackButton(true);
|
|
101
114
|
paymentLogger.addLog({
|
|
102
115
|
key: "SuperPayAliPayH5准备跳转支付宝",
|
|
103
116
|
value: ""
|
|
104
117
|
});
|
|
105
118
|
paymentLogger.sendLogs("SuperPayAliPayH5跳转成功");
|
|
106
|
-
|
|
119
|
+
await handleRedirect(data == null ? void 0 : data.pay_url);
|
|
107
120
|
} else {
|
|
108
121
|
paymentLogger.addLog({
|
|
109
122
|
key: "SuperPayAliPayH5支付链接为空",
|
|
@@ -144,6 +157,10 @@ var SuperPayAliPayH5 = (props, ref) => {
|
|
|
144
157
|
key: "success"
|
|
145
158
|
});
|
|
146
159
|
};
|
|
160
|
+
const handleReturn = () => {
|
|
161
|
+
setOpen(false);
|
|
162
|
+
resetState();
|
|
163
|
+
};
|
|
147
164
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
148
165
|
import_materials.PisellModal,
|
|
149
166
|
{
|
|
@@ -154,13 +171,22 @@ var SuperPayAliPayH5 = (props, ref) => {
|
|
|
154
171
|
closable: false,
|
|
155
172
|
bodyStyle: { padding: 0 }
|
|
156
173
|
},
|
|
157
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "" }, /* @__PURE__ */ import_react.default.createElement(
|
|
174
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "" }, !isReturned && /* @__PURE__ */ import_react.default.createElement(
|
|
158
175
|
import_ThreedsLoading.default,
|
|
159
176
|
{
|
|
160
177
|
title: import_utils.locales.getText("tocPay.text.redirectingToAlipay"),
|
|
161
178
|
onSuccessBack: handleSuccessBack,
|
|
162
179
|
showSuccessBackButton
|
|
163
180
|
}
|
|
181
|
+
), isReturned && /* @__PURE__ */ import_react.default.createElement(
|
|
182
|
+
import_PaymentReturnContent.default,
|
|
183
|
+
{
|
|
184
|
+
pay_number: statePayNumber,
|
|
185
|
+
handleReturn,
|
|
186
|
+
state,
|
|
187
|
+
orderId: (_d = state.payGroup) == null ? void 0 : _d.order_id,
|
|
188
|
+
unique_payment_number: state.front_order_uuid
|
|
189
|
+
}
|
|
164
190
|
))
|
|
165
191
|
);
|
|
166
192
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface PaymentReturnContentProps {
|
|
4
|
+
orderId?: string;
|
|
5
|
+
unique_payment_number?: string;
|
|
6
|
+
state?: any;
|
|
7
|
+
handleReturn?: () => void;
|
|
8
|
+
pay_number?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 支付返回后展示的内容组件
|
|
12
|
+
* 当用户从外部支付页面返回时展示此组件
|
|
13
|
+
*/
|
|
14
|
+
declare const PaymentReturnContent: React.FC<PaymentReturnContentProps>;
|
|
15
|
+
export default PaymentReturnContent;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.tsx
|
|
30
|
+
var PaymentReturnContent_exports = {};
|
|
31
|
+
__export(PaymentReturnContent_exports, {
|
|
32
|
+
default: () => PaymentReturnContent_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(PaymentReturnContent_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_materials = require("@pisell/materials");
|
|
37
|
+
var import_utils = require("@pisell/utils");
|
|
38
|
+
var import_ahooks = require("ahooks");
|
|
39
|
+
var import_serve = require("../../../serve");
|
|
40
|
+
var import_usePrefix = __toESM(require("../../../../../../hooks/usePrefix"));
|
|
41
|
+
var import_index = require("./index.less");
|
|
42
|
+
var PaymentReturnContent = ({
|
|
43
|
+
orderId,
|
|
44
|
+
unique_payment_number,
|
|
45
|
+
state,
|
|
46
|
+
handleReturn,
|
|
47
|
+
pay_number
|
|
48
|
+
}) => {
|
|
49
|
+
const prefix = (0, import_usePrefix.default)();
|
|
50
|
+
const getPaymentIsPaid = (0, import_ahooks.useMemoizedFn)(async () => {
|
|
51
|
+
if (!unique_payment_number && !pay_number) {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
const { data } = await (0, import_serve.getPaymentResult)({
|
|
55
|
+
order_id: orderId,
|
|
56
|
+
pay_number,
|
|
57
|
+
unique_payment_number: pay_number ? void 0 : unique_payment_number
|
|
58
|
+
});
|
|
59
|
+
return (data == null ? void 0 : data.payment_status) === "paid";
|
|
60
|
+
});
|
|
61
|
+
const handleViewOrder = async () => {
|
|
62
|
+
var _a;
|
|
63
|
+
const isPaid = await getPaymentIsPaid();
|
|
64
|
+
if (!isPaid) {
|
|
65
|
+
(0, import_materials.PisellToast)({
|
|
66
|
+
content: import_utils.locales.getText("tocPay.text.paymentFailed")
|
|
67
|
+
});
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
(_a = state.payCallback) == null ? void 0 : _a.call(state, {
|
|
71
|
+
key: "success"
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
const handleGoBack = async () => {
|
|
75
|
+
var _a;
|
|
76
|
+
const isPaid = await getPaymentIsPaid();
|
|
77
|
+
if (!isPaid) {
|
|
78
|
+
handleReturn == null ? void 0 : handleReturn();
|
|
79
|
+
return;
|
|
80
|
+
} else {
|
|
81
|
+
(_a = state.payCallback) == null ? void 0 : _a.call(state, {
|
|
82
|
+
key: "success"
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "payment-return-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "payment-return-content-img" }, /* @__PURE__ */ import_react.default.createElement("img", { src: `${prefix}/payment-content.png`, alt: "success" })), /* @__PURE__ */ import_react.default.createElement("div", { className: "payment-return-content-buttons" }, /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { block: true, className: "payment-return-content-order-button", onClick: handleViewOrder }, import_utils.locales.getText("tocPay.text.paymentCompletedAndViewOrder")), /* @__PURE__ */ import_react.default.createElement(import_materials.Button, { block: true, onClick: handleGoBack }, import_utils.locales.getText("tocPay.text.returnAndSelectOtherPaymentMethod"))));
|
|
87
|
+
};
|
|
88
|
+
var PaymentReturnContent_default = PaymentReturnContent;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
.payment-return-content {
|
|
2
|
+
padding: 100px 46px 0;
|
|
3
|
+
|
|
4
|
+
.payment-return-content-img {
|
|
5
|
+
width: 100%;
|
|
6
|
+
margin-bottom: 60px;
|
|
7
|
+
min-height: 270px;
|
|
8
|
+
img {
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.payment-return-content-buttons {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
gap: 24px;
|
|
18
|
+
button {
|
|
19
|
+
border-radius: 40px;
|
|
20
|
+
span {
|
|
21
|
+
width: 100%;
|
|
22
|
+
text-overflow: ellipsis;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
.payment-return-content-order-button {
|
|
27
|
+
background: #7F56DA;
|
|
28
|
+
color: var(--Primary-700, #6941C6);
|
|
29
|
+
border: 1px solid var(--Primary-200, #E9D7FE);
|
|
30
|
+
background: var(--Primary-50, #F9F5FF);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface UsePaymentRedirectOptions {
|
|
2
|
+
orderId?: string;
|
|
3
|
+
paymentType: string;
|
|
4
|
+
onAfterReturn?: () => void;
|
|
5
|
+
}
|
|
6
|
+
export interface UsePaymentRedirectReturn {
|
|
7
|
+
isReturned: boolean;
|
|
8
|
+
handleRedirect: (url: string) => Promise<void>;
|
|
9
|
+
resetState: () => void;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 支付跳转 Hook
|
|
13
|
+
* 用于处理跳转到外部支付页面的逻辑,包括:
|
|
14
|
+
* 1. 保存跳转标记到 history state
|
|
15
|
+
* 2. 跳转到外部支付页面
|
|
16
|
+
* 3. 监听页面返回事件
|
|
17
|
+
* 4. 返回后更新状态
|
|
18
|
+
*/
|
|
19
|
+
export declare const usePaymentRedirect: (options: UsePaymentRedirectOptions) => UsePaymentRedirectReturn;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/pay/toC/PaymentMethods/hooks/index.tsx
|
|
20
|
+
var hooks_exports = {};
|
|
21
|
+
__export(hooks_exports, {
|
|
22
|
+
usePaymentRedirect: () => usePaymentRedirect
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(hooks_exports);
|
|
25
|
+
var import_ahooks = require("ahooks");
|
|
26
|
+
var import_react = require("react");
|
|
27
|
+
var usePaymentRedirect = (options) => {
|
|
28
|
+
const { orderId, paymentType, onAfterReturn } = options;
|
|
29
|
+
const [isReturned, setIsReturned] = (0, import_react.useState)(false);
|
|
30
|
+
const handleRedirect = (0, import_ahooks.useMemoizedFn)(
|
|
31
|
+
async (url) => {
|
|
32
|
+
try {
|
|
33
|
+
const currentState = window.history.state || {};
|
|
34
|
+
window.history.replaceState(
|
|
35
|
+
{
|
|
36
|
+
...currentState,
|
|
37
|
+
paymentRedirected: true,
|
|
38
|
+
paymentType,
|
|
39
|
+
orderId,
|
|
40
|
+
timestamp: Date.now()
|
|
41
|
+
},
|
|
42
|
+
"",
|
|
43
|
+
window.location.href
|
|
44
|
+
);
|
|
45
|
+
window.location.href = url;
|
|
46
|
+
} catch (error) {
|
|
47
|
+
throw error;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
const resetState = (0, import_ahooks.useMemoizedFn)(() => {
|
|
52
|
+
setIsReturned(false);
|
|
53
|
+
});
|
|
54
|
+
(0, import_react.useEffect)(() => {
|
|
55
|
+
const handlePageShow = (event) => {
|
|
56
|
+
if (!orderId) return;
|
|
57
|
+
const historyState = window.history.state;
|
|
58
|
+
if ((historyState == null ? void 0 : historyState.paymentRedirected) && (historyState == null ? void 0 : historyState.paymentType) === paymentType && (historyState == null ? void 0 : historyState.orderId) === orderId) {
|
|
59
|
+
console.log(
|
|
60
|
+
`检测到从 ${paymentType} 返回, event.persisted:`,
|
|
61
|
+
event.persisted
|
|
62
|
+
);
|
|
63
|
+
setIsReturned(true);
|
|
64
|
+
if (onAfterReturn) {
|
|
65
|
+
onAfterReturn();
|
|
66
|
+
}
|
|
67
|
+
const newState = { ...historyState };
|
|
68
|
+
delete newState.paymentRedirected;
|
|
69
|
+
delete newState.paymentType;
|
|
70
|
+
delete newState.timestamp;
|
|
71
|
+
delete newState.orderId;
|
|
72
|
+
window.history.replaceState(newState, "", window.location.href);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
handlePageShow({ persisted: false });
|
|
76
|
+
window.addEventListener("pageshow", handlePageShow);
|
|
77
|
+
return () => {
|
|
78
|
+
window.removeEventListener("pageshow", handlePageShow);
|
|
79
|
+
};
|
|
80
|
+
}, [orderId, paymentType]);
|
|
81
|
+
return {
|
|
82
|
+
isReturned,
|
|
83
|
+
handleRedirect,
|
|
84
|
+
resetState
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
88
|
+
0 && (module.exports = {
|
|
89
|
+
usePaymentRedirect
|
|
90
|
+
});
|
|
@@ -83,7 +83,8 @@ var ToCPay = (props, ref) => {
|
|
|
83
83
|
status: "init",
|
|
84
84
|
// 将支付回调储存在store, 方便其他模块调用
|
|
85
85
|
payCallback: props.callback,
|
|
86
|
-
history: (_a2 = context.appHelper.utils) == null ? void 0 : _a2.history
|
|
86
|
+
history: (_a2 = context.appHelper.utils) == null ? void 0 : _a2.history,
|
|
87
|
+
front_order_uuid: (0, import_utils.getUniqueId)("front_order_uuid_")
|
|
87
88
|
// 支付组
|
|
88
89
|
// payGroup: {
|
|
89
90
|
// order_id: initProps?.order?.order_id,
|
|
@@ -94,6 +94,9 @@ declare const _default: {
|
|
|
94
94
|
'tocPay.text.youCanSelectMultipleWalletPassesToCombineForPayment': (walletName: string) => string;
|
|
95
95
|
'tocPay.text.bestValueCombination': string;
|
|
96
96
|
'tocPay.text.viewDetail': string;
|
|
97
|
+
'tocPay.text.returnAndSelectOtherPaymentMethod': string;
|
|
98
|
+
'tocPay.text.paymentCompletedAndViewOrder': string;
|
|
99
|
+
'tocPay.text.paymentFailed': string;
|
|
97
100
|
};
|
|
98
101
|
'zh-CN': {
|
|
99
102
|
'tocPay.text.checkout': string;
|
|
@@ -189,6 +192,9 @@ declare const _default: {
|
|
|
189
192
|
'tocPay.text.youCanSelectMultipleWalletPassesToCombineForPayment': (walletName: string) => string;
|
|
190
193
|
'tocPay.text.bestValueCombination': string;
|
|
191
194
|
'tocPay.text.viewDetail': string;
|
|
195
|
+
'tocPay.text.returnAndSelectOtherPaymentMethod': string;
|
|
196
|
+
'tocPay.text.paymentCompletedAndViewOrder': string;
|
|
197
|
+
'tocPay.text.paymentFailed': string;
|
|
192
198
|
};
|
|
193
199
|
'zh-HK': {
|
|
194
200
|
'tocPay.text.checkout': string;
|
|
@@ -284,6 +290,9 @@ declare const _default: {
|
|
|
284
290
|
'tocPay.text.youCanSelectMultipleWalletPassesToCombineForPayment': (walletName: string) => string;
|
|
285
291
|
'tocPay.text.bestValueCombination': string;
|
|
286
292
|
'tocPay.text.viewDetail': string;
|
|
293
|
+
'tocPay.text.returnAndSelectOtherPaymentMethod': string;
|
|
294
|
+
'tocPay.text.paymentCompletedAndViewOrder': string;
|
|
295
|
+
'tocPay.text.paymentFailed': string;
|
|
287
296
|
};
|
|
288
297
|
};
|
|
289
298
|
export default _default;
|
|
@@ -117,7 +117,10 @@ var locales_default = {
|
|
|
117
117
|
"tocPay.text.multipleSelectionAvailable": "Multiple selection available",
|
|
118
118
|
"tocPay.text.youCanSelectMultipleWalletPassesToCombineForPayment": (walletName) => `You can select multiple ${walletName} to combine for payment`,
|
|
119
119
|
"tocPay.text.bestValueCombination": "Best value combination",
|
|
120
|
-
"tocPay.text.viewDetail": "View detail"
|
|
120
|
+
"tocPay.text.viewDetail": "View detail",
|
|
121
|
+
"tocPay.text.returnAndSelectOtherPaymentMethod": "Go Back / Choose Another Payment",
|
|
122
|
+
"tocPay.text.paymentCompletedAndViewOrder": "Payment Completed / View Order",
|
|
123
|
+
"tocPay.text.paymentFailed": "Not paid yet, please check if the payment is successful"
|
|
121
124
|
},
|
|
122
125
|
"zh-CN": {
|
|
123
126
|
"tocPay.text.checkout": "结账",
|
|
@@ -212,7 +215,10 @@ var locales_default = {
|
|
|
212
215
|
"tocPay.text.multipleSelectionAvailable": "可多选",
|
|
213
216
|
"tocPay.text.youCanSelectMultipleWalletPassesToCombineForPayment": (walletName) => `您可以选择多个${walletName}进行组合付款`,
|
|
214
217
|
"tocPay.text.bestValueCombination": "最佳组合",
|
|
215
|
-
"tocPay.text.viewDetail": "查看详情"
|
|
218
|
+
"tocPay.text.viewDetail": "查看详情",
|
|
219
|
+
"tocPay.text.returnAndSelectOtherPaymentMethod": "返回 / 选择其他支付方式",
|
|
220
|
+
"tocPay.text.paymentCompletedAndViewOrder": "支付完成 / 查看订单",
|
|
221
|
+
"tocPay.text.paymentFailed": "未支付完成,请检查是否支付成功"
|
|
216
222
|
},
|
|
217
223
|
"zh-HK": {
|
|
218
224
|
"tocPay.text.checkout": "結帳",
|
|
@@ -307,6 +313,9 @@ var locales_default = {
|
|
|
307
313
|
"tocPay.text.multipleSelectionAvailable": "可多選",
|
|
308
314
|
"tocPay.text.youCanSelectMultipleWalletPassesToCombineForPayment": (walletName) => `您可以選擇多個${walletName}進行組合付款`,
|
|
309
315
|
"tocPay.text.bestValueCombination": "最佳組合",
|
|
310
|
-
"tocPay.text.viewDetail": "查看詳情"
|
|
316
|
+
"tocPay.text.viewDetail": "查看詳情",
|
|
317
|
+
"tocPay.text.returnAndSelectOtherPaymentMethod": "返回 / 選擇其他支付方式",
|
|
318
|
+
"tocPay.text.paymentCompletedAndViewOrder": "支付完成 / 查看訂單",
|
|
319
|
+
"tocPay.text.paymentFailed": "未支付完成,请检查是否支付成功"
|
|
311
320
|
}
|
|
312
321
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
export interface FormState {
|
|
2
3
|
platform: 'pc' | 'h5' | '' | undefined;
|
|
3
4
|
order: any;
|
|
@@ -27,5 +28,13 @@ export interface PayGroup {
|
|
|
27
28
|
payment_priority?: string[];
|
|
28
29
|
pay_number?: string;
|
|
29
30
|
_order: any;
|
|
31
|
+
front_order_uuid?: string;
|
|
30
32
|
}
|
|
31
|
-
export declare const Provider: any, Context:
|
|
33
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
34
|
+
state: FormState;
|
|
35
|
+
} & {
|
|
36
|
+
dispatch: (params: {
|
|
37
|
+
type: string;
|
|
38
|
+
payload: any;
|
|
39
|
+
}) => void;
|
|
40
|
+
}>;
|
|
@@ -21,6 +21,7 @@ var serve_exports = {};
|
|
|
21
21
|
__export(serve_exports, {
|
|
22
22
|
getPaymentInit: () => getPaymentInit,
|
|
23
23
|
getPaymentList: () => getPaymentList,
|
|
24
|
+
getPaymentResult: () => getPaymentResult,
|
|
24
25
|
getPaymentsAndWalletPass: () => getPaymentsAndWalletPass,
|
|
25
26
|
getWalletNameAndPopupStatus: () => getWalletNameAndPopupStatus
|
|
26
27
|
});
|
|
@@ -75,10 +76,12 @@ var getWalletNameAndPopupStatus = async (values) => {
|
|
|
75
76
|
const { data } = await import_utils.request.getRequest().get("/h5/wallet/setting", values);
|
|
76
77
|
return data;
|
|
77
78
|
};
|
|
79
|
+
var getPaymentResult = (values) => import_utils.request.getRequest().get(`/h5/pay/order/payment/result`, values);
|
|
78
80
|
// Annotate the CommonJS export names for ESM import in node:
|
|
79
81
|
0 && (module.exports = {
|
|
80
82
|
getPaymentInit,
|
|
81
83
|
getPaymentList,
|
|
84
|
+
getPaymentResult,
|
|
82
85
|
getPaymentsAndWalletPass,
|
|
83
86
|
getWalletNameAndPopupStatus
|
|
84
87
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
|
2
3
|
import dayjs from "dayjs";
|
|
3
4
|
export interface FormState {
|
|
@@ -68,4 +69,11 @@ export interface FormState {
|
|
|
68
69
|
};
|
|
69
70
|
setGlobalState: Function | null;
|
|
70
71
|
}
|
|
71
|
-
export declare const Provider: any, Context:
|
|
72
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
73
|
+
state: FormState;
|
|
74
|
+
} & {
|
|
75
|
+
dispatch: (params: {
|
|
76
|
+
type: string;
|
|
77
|
+
payload: any;
|
|
78
|
+
}) => void;
|
|
79
|
+
}>;
|