@pisell/private-materials 6.3.10 → 6.3.12
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 +13 -13
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/appointmentBooking/components/ConfirmInformation/index.js +27 -3
- package/es/components/appointmentBooking/components/Content/index.js +3 -3
- package/es/components/appointmentBooking/components/Voucher/index.js +6 -5
- package/es/components/appointmentBooking/hooks.js +4 -2
- package/es/components/appointmentBooking/index.js +10 -0
- package/es/components/booking/addons/index.js +12 -8
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
- package/es/components/booking/components/browserSelect/index.js +1 -1
- package/es/components/booking/components/footer/index.js +19 -9
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/es/components/booking/components/voucher/index.js +8 -5
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/service/like/index.d.ts +0 -1
- package/es/components/booking/info/service/like/index.js +1 -1
- package/es/components/booking/info/service2/Lists.d.ts +0 -1
- package/es/components/booking/info2/service/addService/utils.js +16 -1
- package/es/components/booking/materiels/holder/index.d.ts +0 -1
- package/es/components/booking/materiels/startTime/index.d.ts +0 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/index.js +11 -11
- package/es/components/booking/notes/model.js +5 -5
- package/es/components/booking/payments/model.js +5 -5
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftpos/deviceList/index.d.ts +0 -1
- package/es/components/eftpos/form/index.d.ts +0 -1
- package/es/components/eftpos/group/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftpos/icon/apiKey.d.ts +0 -1
- package/es/components/eftpos/icon/device.d.ts +0 -1
- package/es/components/eftpos/receipt/index.d.ts +0 -1
- package/es/components/eftpos/surcharge/index.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/app.d.ts +0 -1
- package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/es/components/eftposPay/component/step/index.d.ts +0 -1
- package/es/components/eftposPay/component/step/step.d.ts +0 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +3 -3
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +34 -8
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/es/components/eventBooking/components/progressBar/index.js +0 -20
- package/es/components/listComponent/index.js +5 -5
- package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +7 -20
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +2 -12
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +24 -31
- package/es/components/pay/toC/utils.d.ts +1 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/es/components/productExtension/card/index.js +3 -3
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -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/Forms/index.js +12 -12
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
- package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
- package/es/components/productExtension/server.js +2 -2
- package/es/components/ruleSetting/ruleBorder/index.js +1 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/es/components/schedules/calendar/index.js +4 -4
- package/es/components/schedules/calendar/serve.js +2 -2
- package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/index.js +5 -5
- package/es/components/schedules/components/CurrentDay/serve.js +2 -2
- package/es/components/schedules/components/DropdownSort/index.js +1 -1
- package/es/components/schedules/components/ResourceList/index.js +1 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/es/components/schedules/components/Search/index.js +5 -5
- package/es/components/schedules/model.js +5 -5
- package/es/components/schedules/openHours/index.js +1 -1
- package/es/components/schedules/openHours/serve.js +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/schedules/products/serve.js +2 -2
- package/es/components/schedules/products/utils.js +5 -5
- package/es/components/schedules/resources/detail/detailContent.js +2 -2
- package/es/components/schedules/resources/detail/index.js +10 -10
- package/es/components/schedules/resources/list/index.js +2 -2
- package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/index.js +1 -1
- package/es/components/schedules/resources/serve.js +2 -2
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
- package/es/components/schedules/utils.d.ts +1 -1
- package/es/components/schedules/utils.js +4 -4
- package/es/components/selectModal/index.js +2 -2
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/es/components/wallet/Detail/index.js +250 -64
- package/es/components/wallet/Detail/locales.d.ts +51 -0
- package/es/components/wallet/Detail/locales.js +57 -3
- package/es/components/wallet/Detail/serve.js +5 -1
- package/es/components/wallet/components/UsageRules/index.d.ts +23 -0
- package/es/components/wallet/components/UsageRules/index.js +147 -0
- package/es/components/wallet/components/UsageRules/index.less +157 -0
- package/es/components/wallet/components/WalletCard.js +2 -3
- package/es/components/wallet/components/index.d.ts +1 -0
- package/es/components/wallet/components/index.js +2 -1
- package/es/hooks/useComponents.js +1 -1
- package/es/index.d.ts +3 -0
- package/es/index.js +4 -1
- package/es/plus/productSelect/ProductCard/index.less +5 -22
- package/es/plus/productSelect/components/pisellPriceText/index.d.ts +1 -0
- package/es/plus/productSelect/components/pisellPriceText/index.js +1 -0
- package/es/plus/productSelect/components/pisellPriceText/index.less +4 -0
- package/es/plus/saasCreateOrganization/components/Header.d.ts +3 -0
- package/es/plus/saasCreateOrganization/components/Header.js +62 -0
- package/es/plus/saasCreateOrganization/index.d.ts +4 -0
- package/es/plus/saasCreateOrganization/index.js +15 -0
- package/es/plus/saasCreateOrganization/index.less +55 -0
- package/es/plus/saasCreateOrganization/locales.d.ts +15 -0
- package/es/plus/saasCreateOrganization/locales.js +14 -0
- package/es/plus/saasCreateOrganization/types.d.ts +69 -0
- package/es/plus/saasCreateOrganization/types.js +1 -0
- package/es/plus/saasLogin/index.d.ts +5 -0
- package/es/plus/saasLogin/index.js +165 -0
- package/es/plus/saasLogin/index.less +136 -0
- package/es/plus/saasLogin/locales.d.ts +51 -0
- package/es/plus/saasLogin/locales.js +50 -0
- package/es/plus/saasLogin/types.d.ts +62 -0
- package/es/plus/saasLogin/types.js +1 -0
- package/es/plus/saasLogin/utils.d.ts +35 -0
- package/es/plus/saasLogin/utils.js +31 -0
- package/es/plus/saasRegister/components/EntryEmail.d.ts +9 -0
- package/es/plus/saasRegister/components/EntryEmail.js +92 -0
- package/es/plus/saasRegister/components/EntryInfo.d.ts +9 -0
- package/es/plus/saasRegister/components/EntryInfo.js +145 -0
- package/es/plus/saasRegister/components/GoLogin.d.ts +4 -0
- package/es/plus/saasRegister/components/GoLogin.js +27 -0
- package/es/plus/saasRegister/components/Header.d.ts +3 -0
- package/es/plus/saasRegister/components/Header.js +62 -0
- package/es/plus/saasRegister/components/VerifyError.d.ts +8 -0
- package/es/plus/saasRegister/components/VerifyError.js +68 -0
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +5 -0
- package/es/plus/saasRegister/components/VerifyingLink.js +16 -0
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +7 -0
- package/es/plus/saasRegister/components/VertifyEmail.js +121 -0
- package/es/plus/saasRegister/index.d.ts +5 -0
- package/es/plus/saasRegister/index.js +246 -0
- package/es/plus/saasRegister/index.less +218 -0
- package/es/plus/saasRegister/locales.d.ts +117 -0
- package/es/plus/saasRegister/locales.js +116 -0
- package/es/plus/saasRegister/types.d.ts +114 -0
- package/es/plus/saasRegister/types.js +24 -0
- package/es/utils/index.d.ts +1 -1
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +22 -2
- package/lib/components/appointmentBooking/components/Content/index.js +2 -2
- package/lib/components/appointmentBooking/components/Voucher/index.js +2 -1
- package/lib/components/appointmentBooking/hooks.js +4 -2
- package/lib/components/appointmentBooking/index.js +6 -0
- package/lib/components/booking/addons/index.js +1 -11
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/footer/index.js +15 -8
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/lib/components/booking/components/voucher/index.js +3 -1
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/service/like/index.d.ts +0 -1
- package/lib/components/booking/info/service2/Lists.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/utils.js +15 -3
- package/lib/components/booking/materiels/holder/index.d.ts +0 -1
- package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftpos/deviceList/index.d.ts +0 -1
- package/lib/components/eftpos/form/index.d.ts +0 -1
- package/lib/components/eftpos/group/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
- package/lib/components/eftpos/icon/device.d.ts +0 -1
- package/lib/components/eftpos/receipt/index.d.ts +0 -1
- package/lib/components/eftpos/surcharge/index.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/app.d.ts +0 -1
- package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
- package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
- package/lib/components/eftposPay/component/step/index.d.ts +0 -1
- package/lib/components/eftposPay/component/step/step.d.ts +0 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +3 -3
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +30 -8
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
- package/lib/components/eventBooking/components/progressBar/index.js +0 -18
- package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +7 -11
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +2 -9
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +2 -6
- package/lib/components/pay/toC/utils.d.ts +1 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/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/schedules/calendar/calendarItem.d.ts +0 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/lib/components/wallet/Detail/index.js +128 -9
- package/lib/components/wallet/Detail/locales.d.ts +51 -0
- package/lib/components/wallet/Detail/locales.js +57 -3
- package/lib/components/wallet/Detail/serve.js +6 -1
- package/lib/components/wallet/components/UsageRules/index.d.ts +23 -0
- package/lib/components/wallet/components/UsageRules/index.js +113 -0
- package/lib/components/wallet/components/UsageRules/index.less +157 -0
- package/lib/components/wallet/components/WalletCard.js +1 -1
- package/lib/components/wallet/components/index.d.ts +1 -0
- package/lib/components/wallet/components/index.js +3 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +9 -0
- package/lib/plus/productSelect/ProductCard/index.less +5 -22
- package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +1 -0
- package/lib/plus/productSelect/components/pisellPriceText/index.js +1 -0
- package/lib/plus/productSelect/components/pisellPriceText/index.less +4 -0
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +3 -0
- package/lib/plus/saasCreateOrganization/components/Header.js +99 -0
- package/lib/plus/saasCreateOrganization/index.d.ts +4 -0
- package/lib/plus/saasCreateOrganization/index.js +47 -0
- package/lib/plus/saasCreateOrganization/index.less +55 -0
- package/lib/plus/saasCreateOrganization/locales.d.ts +15 -0
- package/lib/plus/saasCreateOrganization/locales.js +38 -0
- package/lib/plus/saasCreateOrganization/types.d.ts +69 -0
- package/lib/plus/saasCreateOrganization/types.js +17 -0
- package/lib/plus/saasLogin/index.d.ts +5 -0
- package/lib/plus/saasLogin/index.js +171 -0
- package/lib/plus/saasLogin/index.less +136 -0
- package/lib/plus/saasLogin/locales.d.ts +51 -0
- package/lib/plus/saasLogin/locales.js +74 -0
- package/lib/plus/saasLogin/types.d.ts +62 -0
- package/lib/plus/saasLogin/types.js +17 -0
- package/lib/plus/saasLogin/utils.d.ts +35 -0
- package/lib/plus/saasLogin/utils.js +50 -0
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +9 -0
- package/lib/plus/saasRegister/components/EntryEmail.js +92 -0
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +9 -0
- package/lib/plus/saasRegister/components/EntryInfo.js +128 -0
- package/lib/plus/saasRegister/components/GoLogin.d.ts +4 -0
- package/lib/plus/saasRegister/components/GoLogin.js +58 -0
- package/lib/plus/saasRegister/components/Header.d.ts +3 -0
- package/lib/plus/saasRegister/components/Header.js +99 -0
- package/lib/plus/saasRegister/components/VerifyError.d.ts +8 -0
- package/lib/plus/saasRegister/components/VerifyError.js +123 -0
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +5 -0
- package/lib/plus/saasRegister/components/VerifyingLink.js +44 -0
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +7 -0
- package/lib/plus/saasRegister/components/VertifyEmail.js +110 -0
- package/lib/plus/saasRegister/index.d.ts +5 -0
- package/lib/plus/saasRegister/index.js +205 -0
- package/lib/plus/saasRegister/index.less +218 -0
- package/lib/plus/saasRegister/locales.d.ts +117 -0
- package/lib/plus/saasRegister/locales.js +140 -0
- package/lib/plus/saasRegister/types.d.ts +114 -0
- package/lib/plus/saasRegister/types.js +54 -0
- package/lib/utils/index.d.ts +1 -1
- package/lowcode/saas-create-organization/meta.ts +214 -0
- package/lowcode/saas-create-organization/snippets.ts +25 -0
- package/lowcode/saas-login/meta.ts +370 -0
- package/lowcode/saas-login/snippets.ts +38 -0
- package/lowcode/saas-register/meta.ts +386 -0
- package/lowcode/saas-register/snippets.ts +31 -0
- package/package.json +5 -5
@@ -21,7 +21,7 @@ import useEngineContext from "./../../../hooks/useEngineContext";
|
|
21
21
|
import localeTexts from "./locales";
|
22
22
|
import { getAssetList, getDetailApi } from "./serve";
|
23
23
|
import { request } from "./../../../utils";
|
24
|
-
import { WalletBar, FooterButtons } from "../components";
|
24
|
+
import { WalletBar, FooterButtons, UsageRules } from "../components";
|
25
25
|
import "./index.less";
|
26
26
|
var Text = Typography.Text;
|
27
27
|
|
@@ -30,7 +30,7 @@ var Text = Typography.Text;
|
|
30
30
|
dayjs.extend(timezone);
|
31
31
|
dayjs.extend(utc);
|
32
32
|
var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
33
|
-
var _context$appHelper, _utils$getStore, _dvaStore$core, _context$appHelper2, _store$getState,
|
33
|
+
var _context$appHelper, _utils$getStore, _dvaStore$core, _context$appHelper2, _store$getState, _detail$machinecode_c;
|
34
34
|
var _props$detail = props.detail,
|
35
35
|
detail = _props$detail === void 0 ? {} : _props$detail,
|
36
36
|
_props$buttonGroupLis = props.buttonGroupList,
|
@@ -57,72 +57,218 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
57
57
|
product = _detail$product === void 0 ? {} : _detail$product;
|
58
58
|
var _ref = product || {},
|
59
59
|
_ref$description = _ref.description,
|
60
|
-
description = _ref$description === void 0 ? '' : _ref$description
|
60
|
+
description = _ref$description === void 0 ? '' : _ref$description,
|
61
|
+
_ref$extension_data = _ref.extension_data,
|
62
|
+
extension_data = _ref$extension_data === void 0 ? [] : _ref$extension_data,
|
63
|
+
_ref$customer_order_b = _ref.customer_order_behavior_count,
|
64
|
+
customer_order_behavior_count = _ref$customer_order_b === void 0 ? 0 : _ref$customer_order_b;
|
61
65
|
var context = useEngineContext();
|
62
|
-
|
63
|
-
|
66
|
+
|
67
|
+
// 单独存储从详情接口获取的字段
|
64
68
|
var _useState = useState([]),
|
65
69
|
_useState2 = _slicedToArray(_useState, 2),
|
66
|
-
|
67
|
-
|
68
|
-
var _useState3 = useState(
|
70
|
+
extensionData = _useState2[0],
|
71
|
+
setExtensionData = _useState2[1];
|
72
|
+
var _useState3 = useState(0),
|
69
73
|
_useState4 = _slicedToArray(_useState3, 2),
|
70
|
-
|
71
|
-
|
72
|
-
var _useState5 = useState(
|
74
|
+
customerOrderBehaviorCount = _useState4[0],
|
75
|
+
setCustomerOrderBehaviorCount = _useState4[1];
|
76
|
+
var _useState5 = useState(0),
|
73
77
|
_useState6 = _slicedToArray(_useState5, 2),
|
74
|
-
|
75
|
-
|
76
|
-
var _useState7 = useState(
|
78
|
+
totalOrderBehaviorCount = _useState6[0],
|
79
|
+
setTotalOrderBehaviorCount = _useState6[1];
|
80
|
+
var _useState7 = useState(0),
|
77
81
|
_useState8 = _slicedToArray(_useState7, 2),
|
78
|
-
|
79
|
-
|
80
|
-
var _useState9 = useState(
|
82
|
+
todayOrderBehaviorCount = _useState8[0],
|
83
|
+
setTodayOrderBehaviorCount = _useState8[1];
|
84
|
+
var _useState9 = useState(0),
|
81
85
|
_useState10 = _slicedToArray(_useState9, 2),
|
82
|
-
|
83
|
-
|
84
|
-
var _useState11 = useState(
|
86
|
+
weekOrderBehaviorCount = _useState10[0],
|
87
|
+
setWeekOrderBehaviorCount = _useState10[1];
|
88
|
+
var _useState11 = useState(0),
|
85
89
|
_useState12 = _slicedToArray(_useState11, 2),
|
86
|
-
|
87
|
-
|
88
|
-
|
90
|
+
monthOrderBehaviorCount = _useState12[0],
|
91
|
+
setMonthOrderBehaviorCount = _useState12[1];
|
92
|
+
|
93
|
+
// 存储使用规则相关的状态
|
94
|
+
var _useState13 = useState(null),
|
89
95
|
_useState14 = _slicedToArray(_useState13, 2),
|
90
|
-
|
91
|
-
|
92
|
-
var _useState15 = useState(
|
96
|
+
usageCreditsData = _useState14[0],
|
97
|
+
setUsageCreditsData = _useState14[1];
|
98
|
+
var _useState15 = useState(false),
|
93
99
|
_useState16 = _slicedToArray(_useState15, 2),
|
94
|
-
|
95
|
-
|
96
|
-
var _useState17 = useState(''),
|
97
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
98
|
-
google_wallet_url = _useState18[0],
|
99
|
-
setGoogleWalletUrl = _useState18[1];
|
100
|
-
var stateTimeUnix = 1723255863; //2024.8.10 时间戳
|
100
|
+
shouldShowUsageRules = _useState16[0],
|
101
|
+
setShouldShowUsageRules = _useState16[1];
|
101
102
|
|
102
|
-
|
103
|
+
// Generate usage rules from real data
|
104
|
+
var generateUsageRules = function generateUsageRules(creditsData) {
|
105
|
+
if (!creditsData) return [];
|
106
|
+
var rules = [];
|
107
|
+
|
108
|
+
// Add daily limit if exists
|
109
|
+
if (creditsData.max_per_day > 0) {
|
110
|
+
rules.push({
|
111
|
+
type: 'daily',
|
112
|
+
limit: creditsData.max_per_day,
|
113
|
+
description: '',
|
114
|
+
// Will be filled by localized text
|
115
|
+
resetTime: '' // Will be filled by localized text
|
116
|
+
});
|
117
|
+
}
|
118
|
+
|
119
|
+
// Add weekly limit if exists
|
120
|
+
if (creditsData.max_per_week > 0) {
|
121
|
+
rules.push({
|
122
|
+
type: 'weekly',
|
123
|
+
limit: creditsData.max_per_week,
|
124
|
+
description: '',
|
125
|
+
// Will be filled by localized text
|
126
|
+
resetTime: '' // Will be filled by localized text
|
127
|
+
});
|
128
|
+
}
|
129
|
+
|
130
|
+
// Add monthly limit if exists
|
131
|
+
if (creditsData.max_per_month > 0) {
|
132
|
+
rules.push({
|
133
|
+
type: 'monthly',
|
134
|
+
limit: creditsData.max_per_month,
|
135
|
+
description: '',
|
136
|
+
// Will be filled by localized text
|
137
|
+
resetTime: '' // Will be filled by localized text
|
138
|
+
});
|
139
|
+
}
|
140
|
+
return rules;
|
141
|
+
};
|
142
|
+
|
143
|
+
// Generate personal limit data
|
144
|
+
var generatePersonalLimit = function generatePersonalLimit(creditsData) {
|
145
|
+
var usedCount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
146
|
+
totalOrderBehaviorCount: 0,
|
147
|
+
customerOrderBehaviorCount: 0
|
148
|
+
};
|
149
|
+
if (!creditsData) return undefined;
|
150
|
+
var totalCredits = creditsData.total_credits || 0;
|
151
|
+
var perUserLimit = creditsData.per_user_limit || 0;
|
152
|
+
|
153
|
+
// 使用 total_credits 和 per_user_limit 中的较小值且非 0 的值作为总数
|
154
|
+
// 如果 totalCredits 是 0,则使用 perUserLimit
|
155
|
+
var total = 0;
|
156
|
+
if (totalCredits > 0 && perUserLimit > 0) {
|
157
|
+
total = Math.min(totalCredits, perUserLimit);
|
158
|
+
} else {
|
159
|
+
total = Math.max(totalCredits, perUserLimit);
|
160
|
+
}
|
161
|
+
// const total = Math.min(totalCredits, perUserLimit);
|
162
|
+
// const remaining = Math.max(0, total - usedCount.totalOrderBehaviorCount); // Ensure remaining is not negative
|
163
|
+
// 单张卡剩余多少
|
164
|
+
var total_remaining = 0;
|
165
|
+
if (totalCredits > 0) {
|
166
|
+
total_remaining = totalCredits - usedCount.totalOrderBehaviorCount;
|
167
|
+
}
|
168
|
+
// 个人剩余多少
|
169
|
+
var perUser_remaining = 0;
|
170
|
+
if (perUserLimit > 0) {
|
171
|
+
perUser_remaining = perUserLimit - usedCount.customerOrderBehaviorCount;
|
172
|
+
}
|
173
|
+
var remaining = 0;
|
174
|
+
if (total_remaining > 0 && perUser_remaining > 0) {
|
175
|
+
remaining = Math.min(total_remaining, perUser_remaining);
|
176
|
+
} else {
|
177
|
+
// 如果有一个是 0,还需要看是否是因为配置是 0 才导致的 0
|
178
|
+
// 先看总次数是不是剩余 0,是因为什么剩余 0
|
179
|
+
if (total_remaining === 0) {
|
180
|
+
if (totalCredits === 0) {
|
181
|
+
// 代表不限制总使用次数
|
182
|
+
remaining = perUser_remaining;
|
183
|
+
} else {
|
184
|
+
// 代表限制总使用次数,但是总使用次数为 0,则 remaining 为 0
|
185
|
+
remaining = 0;
|
186
|
+
}
|
187
|
+
} else {
|
188
|
+
// 如果剩余总使用次数大于 0,个人使用次数为 0,则 remaining 为 0
|
189
|
+
if (perUser_remaining === 0) {
|
190
|
+
remaining = 0;
|
191
|
+
}
|
192
|
+
}
|
193
|
+
}
|
194
|
+
return {
|
195
|
+
total: total,
|
196
|
+
remaining: remaining,
|
197
|
+
note: '' // Will be filled by localized text
|
198
|
+
};
|
199
|
+
};
|
200
|
+
|
201
|
+
// 简化:直接计算
|
202
|
+
var usageRules = generateUsageRules(usageCreditsData);
|
203
|
+
// 取出所有最大的非 0 的数
|
204
|
+
var personalLimit = generatePersonalLimit(usageCreditsData, {
|
205
|
+
totalOrderBehaviorCount: totalOrderBehaviorCount,
|
206
|
+
customerOrderBehaviorCount: customerOrderBehaviorCount
|
207
|
+
});
|
208
|
+
var utils = (context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {};
|
209
|
+
var dvaStore = utils === null || utils === void 0 || (_utils$getStore = utils.getStore) === null || _utils$getStore === void 0 || (_utils$getStore = _utils$getStore.call(utils)) === null || _utils$getStore === void 0 ? void 0 : _utils$getStore.getState();
|
210
|
+
var _useState17 = useState([]),
|
211
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
212
|
+
TimeLineData = _useState18[0],
|
213
|
+
setTimeLineData = _useState18[1];
|
214
|
+
var _useState19 = useState(false),
|
103
215
|
_useState20 = _slicedToArray(_useState19, 2),
|
104
|
-
|
105
|
-
|
106
|
-
var
|
107
|
-
var tabsRef = useRef();
|
108
|
-
var _useState21 = useState('detail'),
|
216
|
+
isShowtimeLineDetail = _useState20[0],
|
217
|
+
setIsShowtimeLineDetail = _useState20[1];
|
218
|
+
var _useState21 = useState(true),
|
109
219
|
_useState22 = _slicedToArray(_useState21, 2),
|
110
|
-
|
111
|
-
|
112
|
-
var _useState23 = useState(
|
220
|
+
isSpending = _useState22[0],
|
221
|
+
setIsSpending = _useState22[1];
|
222
|
+
var _useState23 = useState({}),
|
113
223
|
_useState24 = _slicedToArray(_useState23, 2),
|
114
|
-
|
115
|
-
|
116
|
-
var isUserClickRef = useRef(false);
|
117
|
-
var scrollTimeoutRef = useRef(null);
|
224
|
+
timeLineDetail = _useState24[0],
|
225
|
+
setTimeLineDetail = _useState24[1];
|
118
226
|
var _useState25 = useState(false),
|
119
227
|
_useState26 = _slicedToArray(_useState25, 2),
|
120
|
-
|
121
|
-
|
122
|
-
var _useState27 = useState(
|
228
|
+
wechatModalOpen = _useState26[0],
|
229
|
+
setWechatModalOpen = _useState26[1];
|
230
|
+
var _useState27 = useState(''),
|
123
231
|
_useState28 = _slicedToArray(_useState27, 2),
|
124
|
-
|
125
|
-
|
232
|
+
copyUrl = _useState28[0],
|
233
|
+
setCopyUrl = _useState28[1];
|
234
|
+
var _useState29 = useState(false),
|
235
|
+
_useState30 = _slicedToArray(_useState29, 2),
|
236
|
+
isLoading = _useState30[0],
|
237
|
+
setIsLoading = _useState30[1];
|
238
|
+
var _useState31 = useState(''),
|
239
|
+
_useState32 = _slicedToArray(_useState31, 2),
|
240
|
+
apple_wallet_url = _useState32[0],
|
241
|
+
setAppleWalletUrl = _useState32[1];
|
242
|
+
var _useState33 = useState(''),
|
243
|
+
_useState34 = _slicedToArray(_useState33, 2),
|
244
|
+
google_wallet_url = _useState34[0],
|
245
|
+
setGoogleWalletUrl = _useState34[1];
|
246
|
+
var stateTimeUnix = 1723255863; //2024.8.10 时间戳
|
247
|
+
|
248
|
+
var _useState35 = useState([]),
|
249
|
+
_useState36 = _slicedToArray(_useState35, 2),
|
250
|
+
listData = _useState36[0],
|
251
|
+
setListData = _useState36[1];
|
252
|
+
var modalContentRef = useRef(null);
|
253
|
+
var tabsRef = useRef();
|
254
|
+
var _useState37 = useState('detail'),
|
255
|
+
_useState38 = _slicedToArray(_useState37, 2),
|
256
|
+
activeTab = _useState38[0],
|
257
|
+
setActiveTab = _useState38[1];
|
258
|
+
var _useState39 = useState(false),
|
259
|
+
_useState40 = _slicedToArray(_useState39, 2),
|
260
|
+
isScrolling = _useState40[0],
|
261
|
+
setIsScrolling = _useState40[1];
|
262
|
+
var isUserClickRef = useRef(false);
|
263
|
+
var scrollTimeoutRef = useRef(null);
|
264
|
+
var _useState41 = useState(false),
|
265
|
+
_useState42 = _slicedToArray(_useState41, 2),
|
266
|
+
addWalletLoading = _useState42[0],
|
267
|
+
setAddWalletLoading = _useState42[1];
|
268
|
+
var _useState43 = useState(false),
|
269
|
+
_useState44 = _slicedToArray(_useState43, 2),
|
270
|
+
isAddingToWallet = _useState44[0],
|
271
|
+
setIsAddingToWallet = _useState44[1];
|
126
272
|
var anchorOptions = useMemo(function () {
|
127
273
|
// 始终包含detail选项
|
128
274
|
var options = [{
|
@@ -231,7 +377,7 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
231
377
|
};
|
232
378
|
var getDetail = /*#__PURE__*/function () {
|
233
379
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
234
|
-
var _yield$getDetailApi, _yield$getDetailApi$a, apple_wallet_url, _yield$getDetailApi$g, google_wallet_url;
|
380
|
+
var _yield$getDetailApi, _yield$getDetailApi$a, apple_wallet_url, _yield$getDetailApi$g, google_wallet_url, _yield$getDetailApi$e, extension_data, _yield$getDetailApi$c, customer_order_behavior_count, _yield$getDetailApi$t, total_order_behavior_count, _yield$getDetailApi$t2, today_order_behavior_count, _yield$getDetailApi$w, week_order_behavior_count, _yield$getDetailApi$m, month_order_behavior_count, usageCreditsItem;
|
235
381
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
236
382
|
while (1) switch (_context.prev = _context.next) {
|
237
383
|
case 0:
|
@@ -245,9 +391,46 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
245
391
|
apple_wallet_url = _yield$getDetailApi$a === void 0 ? '' : _yield$getDetailApi$a;
|
246
392
|
_yield$getDetailApi$g = _yield$getDetailApi.google_wallet_url;
|
247
393
|
google_wallet_url = _yield$getDetailApi$g === void 0 ? '' : _yield$getDetailApi$g;
|
394
|
+
_yield$getDetailApi$e = _yield$getDetailApi.extension_data;
|
395
|
+
extension_data = _yield$getDetailApi$e === void 0 ? [] : _yield$getDetailApi$e;
|
396
|
+
_yield$getDetailApi$c = _yield$getDetailApi.customer_order_behavior_count;
|
397
|
+
customer_order_behavior_count = _yield$getDetailApi$c === void 0 ? 0 : _yield$getDetailApi$c;
|
398
|
+
_yield$getDetailApi$t = _yield$getDetailApi.total_order_behavior_count;
|
399
|
+
total_order_behavior_count = _yield$getDetailApi$t === void 0 ? 0 : _yield$getDetailApi$t;
|
400
|
+
_yield$getDetailApi$t2 = _yield$getDetailApi.today_order_behavior_count;
|
401
|
+
today_order_behavior_count = _yield$getDetailApi$t2 === void 0 ? 0 : _yield$getDetailApi$t2;
|
402
|
+
_yield$getDetailApi$w = _yield$getDetailApi.week_order_behavior_count;
|
403
|
+
week_order_behavior_count = _yield$getDetailApi$w === void 0 ? 0 : _yield$getDetailApi$w;
|
404
|
+
_yield$getDetailApi$m = _yield$getDetailApi.month_order_behavior_count;
|
405
|
+
month_order_behavior_count = _yield$getDetailApi$m === void 0 ? 0 : _yield$getDetailApi$m;
|
248
406
|
setAppleWalletUrl(apple_wallet_url);
|
249
407
|
setGoogleWalletUrl(google_wallet_url);
|
250
|
-
|
408
|
+
|
409
|
+
// 存储从详情接口获取的字段
|
410
|
+
setExtensionData(extension_data);
|
411
|
+
setCustomerOrderBehaviorCount(customer_order_behavior_count);
|
412
|
+
setTotalOrderBehaviorCount(total_order_behavior_count);
|
413
|
+
setTodayOrderBehaviorCount(today_order_behavior_count);
|
414
|
+
setWeekOrderBehaviorCount(week_order_behavior_count);
|
415
|
+
setMonthOrderBehaviorCount(month_order_behavior_count);
|
416
|
+
|
417
|
+
// 处理使用规则数据
|
418
|
+
if (Array.isArray(extension_data) && extension_data.length > 0) {
|
419
|
+
usageCreditsItem = extension_data.find(function (item) {
|
420
|
+
return item.field_key === 'usage_credits';
|
421
|
+
});
|
422
|
+
if (usageCreditsItem !== null && usageCreditsItem !== void 0 && usageCreditsItem.value) {
|
423
|
+
setUsageCreditsData(usageCreditsItem.value);
|
424
|
+
setShouldShowUsageRules(true);
|
425
|
+
} else {
|
426
|
+
setUsageCreditsData(null);
|
427
|
+
setShouldShowUsageRules(false);
|
428
|
+
}
|
429
|
+
} else {
|
430
|
+
setUsageCreditsData(null);
|
431
|
+
setShouldShowUsageRules(false);
|
432
|
+
}
|
433
|
+
case 28:
|
251
434
|
case "end":
|
252
435
|
return _context.stop();
|
253
436
|
}
|
@@ -257,6 +440,8 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
257
440
|
return _ref3.apply(this, arguments);
|
258
441
|
};
|
259
442
|
}();
|
443
|
+
|
444
|
+
// 当切换商品卡时,获取新的详情数据
|
260
445
|
useEffect(function () {
|
261
446
|
if (detail.id) {
|
262
447
|
getDetail();
|
@@ -718,10 +903,10 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
718
903
|
|
719
904
|
// 添加ref用于获取容器元素
|
720
905
|
var detailWrapperRef = useRef(null);
|
721
|
-
var
|
722
|
-
|
723
|
-
contentHeight =
|
724
|
-
setContentHeight =
|
906
|
+
var _useState45 = useState(undefined),
|
907
|
+
_useState46 = _slicedToArray(_useState45, 2),
|
908
|
+
contentHeight = _useState46[0],
|
909
|
+
setContentHeight = _useState46[1];
|
725
910
|
|
726
911
|
// 添加锚点导航ref
|
727
912
|
var anchorWrapperRef = useRef(null);
|
@@ -817,7 +1002,7 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
817
1002
|
return /*#__PURE__*/React.createElement("div", {
|
818
1003
|
className: "wallet-detail".concat(platform === 'h5' ? ' wallet-detail-h5' : ' wallet-detail-pc', " ").concat(className || ''),
|
819
1004
|
ref: detailWrapperRef
|
820
|
-
}, (platform === 'h5' || showWalletBar) &&
|
1005
|
+
}, (platform === 'h5' || showWalletBar) && /*#__PURE__*/React.createElement("div", {
|
821
1006
|
className: "wallet-detail-header"
|
822
1007
|
}, /*#__PURE__*/React.createElement(WalletBar, {
|
823
1008
|
setup: "detail",
|
@@ -860,16 +1045,17 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
860
1045
|
valueColor: "#101828",
|
861
1046
|
backgroundColors: ['#fff'],
|
862
1047
|
isHasBorder: false
|
863
|
-
}), /*#__PURE__*/React.createElement("div", {
|
1048
|
+
}), description && /*#__PURE__*/React.createElement("div", {
|
864
1049
|
className: "wallet-detail-card-content-tip"
|
865
|
-
},
|
866
|
-
/*#__PURE__*/
|
867
|
-
// @ts-ignore 忽略TypeScript错误,React类型定义问题
|
868
|
-
React.createElement("div", {
|
1050
|
+
}, /*#__PURE__*/React.createElement("div", {
|
869
1051
|
dangerouslySetInnerHTML: {
|
870
1052
|
__html: description
|
871
1053
|
}
|
872
|
-
})
|
1054
|
+
})), shouldShowUsageRules && /*#__PURE__*/React.createElement(UsageRules, {
|
1055
|
+
locales: locales,
|
1056
|
+
rules: usageRules,
|
1057
|
+
personalLimit: personalLimit
|
1058
|
+
})), /*#__PURE__*/React.createElement("section", {
|
873
1059
|
className: "wallet-detail-card-content-section wallet-detail-card-content-section-timeline",
|
874
1060
|
"data-section": "activityLog"
|
875
1061
|
}, tag !== 'product_discount_card' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
@@ -29,6 +29,23 @@ declare const _default: {
|
|
29
29
|
'page.wallet.openedInBrowser': string;
|
30
30
|
'page.wallet.openFailed': string;
|
31
31
|
'page.wallet.loading': string;
|
32
|
+
'page.wallet.usageRules': string;
|
33
|
+
'page.wallet.usageRulesSubtitle': string;
|
34
|
+
'page.wallet.timeUsageLimits': string;
|
35
|
+
'page.wallet.totalQuantityControl': string;
|
36
|
+
'page.wallet.dailyLimit': string;
|
37
|
+
'page.wallet.weeklyLimit': string;
|
38
|
+
'page.wallet.monthlyLimit': string;
|
39
|
+
'page.wallet.personalLimit': string;
|
40
|
+
'page.wallet.dailyLimitDesc': string;
|
41
|
+
'page.wallet.weeklyLimitDesc': string;
|
42
|
+
'page.wallet.monthlyLimitDesc': string;
|
43
|
+
'page.wallet.monthlyLimitUnlimited': string;
|
44
|
+
'page.wallet.personalLimitDesc': string;
|
45
|
+
'page.wallet.dailyReset': string;
|
46
|
+
'page.wallet.weeklyReset': string;
|
47
|
+
'page.wallet.monthlyReset': string;
|
48
|
+
'page.wallet.voucherExpireNote': string;
|
32
49
|
};
|
33
50
|
'zh-CN': {
|
34
51
|
'page.wallet.copyTitle': string;
|
@@ -60,6 +77,23 @@ declare const _default: {
|
|
60
77
|
'page.wallet.openedInBrowser': string;
|
61
78
|
'page.wallet.openFailed': string;
|
62
79
|
'page.wallet.loading': string;
|
80
|
+
'page.wallet.usageRules': string;
|
81
|
+
'page.wallet.usageRulesSubtitle': string;
|
82
|
+
'page.wallet.timeUsageLimits': string;
|
83
|
+
'page.wallet.totalQuantityControl': string;
|
84
|
+
'page.wallet.dailyLimit': string;
|
85
|
+
'page.wallet.weeklyLimit': string;
|
86
|
+
'page.wallet.monthlyLimit': string;
|
87
|
+
'page.wallet.personalLimit': string;
|
88
|
+
'page.wallet.dailyLimitDesc': string;
|
89
|
+
'page.wallet.weeklyLimitDesc': string;
|
90
|
+
'page.wallet.monthlyLimitDesc': string;
|
91
|
+
'page.wallet.monthlyLimitUnlimited': string;
|
92
|
+
'page.wallet.personalLimitDesc': string;
|
93
|
+
'page.wallet.dailyReset': string;
|
94
|
+
'page.wallet.weeklyReset': string;
|
95
|
+
'page.wallet.monthlyReset': string;
|
96
|
+
'page.wallet.voucherExpireNote': string;
|
63
97
|
};
|
64
98
|
'zh-HK': {
|
65
99
|
'page.wallet.copyTitle': string;
|
@@ -91,6 +125,23 @@ declare const _default: {
|
|
91
125
|
'page.wallet.openedInBrowser': string;
|
92
126
|
'page.wallet.openFailed': string;
|
93
127
|
'page.wallet.loading': string;
|
128
|
+
'page.wallet.usageRules': string;
|
129
|
+
'page.wallet.usageRulesSubtitle': string;
|
130
|
+
'page.wallet.timeUsageLimits': string;
|
131
|
+
'page.wallet.totalQuantityControl': string;
|
132
|
+
'page.wallet.dailyLimit': string;
|
133
|
+
'page.wallet.weeklyLimit': string;
|
134
|
+
'page.wallet.monthlyLimit': string;
|
135
|
+
'page.wallet.personalLimit': string;
|
136
|
+
'page.wallet.dailyLimitDesc': string;
|
137
|
+
'page.wallet.weeklyLimitDesc': string;
|
138
|
+
'page.wallet.monthlyLimitDesc': string;
|
139
|
+
'page.wallet.monthlyLimitUnlimited': string;
|
140
|
+
'page.wallet.personalLimitDesc': string;
|
141
|
+
'page.wallet.dailyReset': string;
|
142
|
+
'page.wallet.weeklyReset': string;
|
143
|
+
'page.wallet.monthlyReset': string;
|
144
|
+
'page.wallet.voucherExpireNote': string;
|
94
145
|
};
|
95
146
|
};
|
96
147
|
export default _default;
|
@@ -31,7 +31,25 @@ export default {
|
|
31
31
|
'page.wallet.useAppleInstead': 'You are using an iOS device, would you like to use Apple Wallet instead of Google Wallet?',
|
32
32
|
'page.wallet.openedInBrowser': 'Opened in browser',
|
33
33
|
'page.wallet.openFailed': 'Failed to open wallet link',
|
34
|
-
'page.wallet.loading': 'Loading wallet...'
|
34
|
+
'page.wallet.loading': 'Loading wallet...',
|
35
|
+
// Usage Rules
|
36
|
+
'page.wallet.usageRules': 'Terms & Conditions',
|
37
|
+
'page.wallet.usageRulesSubtitle': 'Please read the following usage conditions carefully',
|
38
|
+
'page.wallet.timeUsageLimits': 'Time Window Restrictions',
|
39
|
+
'page.wallet.totalQuantityControl': 'Total Usage Control',
|
40
|
+
'page.wallet.dailyLimit': 'Daily Limit:',
|
41
|
+
'page.wallet.weeklyLimit': 'Weekly Limit:',
|
42
|
+
'page.wallet.monthlyLimit': 'Monthly Limit:',
|
43
|
+
'page.wallet.personalLimit': 'Personal Limit:',
|
44
|
+
'page.wallet.dailyLimitDesc': 'Maximum {limit} uses from 12:00 AM to 11:59 PM each day',
|
45
|
+
'page.wallet.weeklyLimitDesc': 'Maximum {limit} uses from Monday 12:00 AM to Sunday 11:59 PM',
|
46
|
+
'page.wallet.monthlyLimitDesc': 'Maximum {limit} uses from 1st 12:00 AM to end of month 11:59 PM',
|
47
|
+
'page.wallet.monthlyLimitUnlimited': 'Unlimited',
|
48
|
+
'page.wallet.personalLimitDesc': 'You can use this voucher maximum {total} times ({remaining} remaining)',
|
49
|
+
'page.wallet.dailyReset': 'Counter resets automatically at midnight',
|
50
|
+
'page.wallet.weeklyReset': 'Counter resets every Monday at midnight',
|
51
|
+
'page.wallet.monthlyReset': 'Counter resets on 1st of each month at midnight',
|
52
|
+
'page.wallet.voucherExpireNote': 'Voucher will automatically expire when limit is reached'
|
35
53
|
},
|
36
54
|
'zh-CN': {
|
37
55
|
// 简体中文翻译
|
@@ -65,7 +83,25 @@ export default {
|
|
65
83
|
'page.wallet.useAppleInstead': '您正在使用iOS设备,是否使用Apple Wallet代替Google Wallet?',
|
66
84
|
'page.wallet.openedInBrowser': '已在浏览器中打开',
|
67
85
|
'page.wallet.openFailed': '打开钱包链接失败',
|
68
|
-
'page.wallet.loading': '正在加载钱包...'
|
86
|
+
'page.wallet.loading': '正在加载钱包...',
|
87
|
+
// Usage Rules
|
88
|
+
'page.wallet.usageRules': '使用规则',
|
89
|
+
'page.wallet.usageRulesSubtitle': '请仔细阅读以下使用条件',
|
90
|
+
'page.wallet.timeUsageLimits': '时间使用限制',
|
91
|
+
'page.wallet.totalQuantityControl': '总量控制',
|
92
|
+
'page.wallet.dailyLimit': '每日限制:',
|
93
|
+
'page.wallet.weeklyLimit': '每周限制:',
|
94
|
+
'page.wallet.monthlyLimit': '每月限制:',
|
95
|
+
'page.wallet.personalLimit': '个人限额:',
|
96
|
+
'page.wallet.dailyLimitDesc': '每天0点-24点最多使用{limit}次',
|
97
|
+
'page.wallet.weeklyLimitDesc': '每周一0点-周日24点最多使用{limit}次',
|
98
|
+
'page.wallet.monthlyLimitDesc': '每月1号0点-月末24点最多使用{limit}次',
|
99
|
+
'page.wallet.monthlyLimitUnlimited': '无限制',
|
100
|
+
'page.wallet.personalLimitDesc': '您最多可使用此券{total}次(剩余{remaining}次)',
|
101
|
+
'page.wallet.dailyReset': '每天0点自动重置计数',
|
102
|
+
'page.wallet.weeklyReset': '每周一0点自动重置计数',
|
103
|
+
'page.wallet.monthlyReset': '每月1号0点自动重置计数',
|
104
|
+
'page.wallet.voucherExpireNote': '用完后此券将自动失效'
|
69
105
|
},
|
70
106
|
'zh-HK': {
|
71
107
|
// 繁体中文翻译
|
@@ -99,6 +135,24 @@ export default {
|
|
99
135
|
'page.wallet.useAppleInstead': '您正在使用iOS設備,是否使用Apple Wallet代替Google Wallet?',
|
100
136
|
'page.wallet.openedInBrowser': '已在瀏覽器中打開',
|
101
137
|
'page.wallet.openFailed': '打開錢包連結失敗',
|
102
|
-
'page.wallet.loading': '正在加載錢包...'
|
138
|
+
'page.wallet.loading': '正在加載錢包...',
|
139
|
+
// Usage Rules
|
140
|
+
'page.wallet.usageRules': '使用規則',
|
141
|
+
'page.wallet.usageRulesSubtitle': '請仔細閱讀以下使用條件',
|
142
|
+
'page.wallet.timeUsageLimits': '時間使用限制',
|
143
|
+
'page.wallet.totalQuantityControl': '總量控制',
|
144
|
+
'page.wallet.dailyLimit': '每日限制:',
|
145
|
+
'page.wallet.weeklyLimit': '每週限制:',
|
146
|
+
'page.wallet.monthlyLimit': '每月限制:',
|
147
|
+
'page.wallet.personalLimit': '個人限額:',
|
148
|
+
'page.wallet.dailyLimitDesc': '每天0點-24點最多使用{limit}次',
|
149
|
+
'page.wallet.weeklyLimitDesc': '每週一0點-週日24點最多使用{limit}次',
|
150
|
+
'page.wallet.monthlyLimitDesc': '每月1號0點-月末24點最多使用{limit}次',
|
151
|
+
'page.wallet.monthlyLimitUnlimited': '無限制',
|
152
|
+
'page.wallet.personalLimitDesc': '您最多可使用此券{total}次(剩餘{remaining}次)',
|
153
|
+
'page.wallet.dailyReset': '每天0點自動重置計數',
|
154
|
+
'page.wallet.weeklyReset': '每週一0點自動重置計數',
|
155
|
+
'page.wallet.monthlyReset': '每月1號0點自動重置計數',
|
156
|
+
'page.wallet.voucherExpireNote': '用完後此券將自動失效'
|
103
157
|
}
|
104
158
|
};
|
@@ -43,7 +43,11 @@ export var getDetailApi = /*#__PURE__*/function () {
|
|
43
43
|
while (1) switch (_context2.prev = _context2.next) {
|
44
44
|
case 0:
|
45
45
|
_context2.next = 2;
|
46
|
-
return request.getRequest().get("/h5/machinecode/lowcode/detail/".concat(params.id), {
|
46
|
+
return request.getRequest().get("/h5/machinecode/lowcode/detail/".concat(params.id), {
|
47
|
+
order_behavior_count: 1,
|
48
|
+
// 订单行为次数
|
49
|
+
order_behavior_count_customer: 1 // 客户订单行为次数
|
50
|
+
});
|
47
51
|
case 2:
|
48
52
|
_yield$request$getReq2 = _context2.sent;
|
49
53
|
data = _yield$request$getReq2.data;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import './index.less';
|
3
|
+
interface UsageRule {
|
4
|
+
type: 'daily' | 'weekly' | 'monthly';
|
5
|
+
limit: number;
|
6
|
+
description: string;
|
7
|
+
resetTime?: string;
|
8
|
+
}
|
9
|
+
interface UsageRulesProps {
|
10
|
+
className?: string;
|
11
|
+
style?: React.CSSProperties;
|
12
|
+
rules?: UsageRule[];
|
13
|
+
personalLimit?: {
|
14
|
+
total: number;
|
15
|
+
remaining: number;
|
16
|
+
note?: string;
|
17
|
+
};
|
18
|
+
locales?: {
|
19
|
+
getText: (key: string) => string;
|
20
|
+
};
|
21
|
+
}
|
22
|
+
declare function UsageRules({ className, style, rules, personalLimit, locales }: UsageRulesProps): JSX.Element;
|
23
|
+
export default UsageRules;
|