@pisell/private-materials 3.3.99 → 3.3.100
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 +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +11 -11
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +11 -11
- package/es/businessModel/SalesModel/index.d.ts +0 -1
- package/es/components/Sales/Cart/index.js +5 -1
- package/es/components/Sales/Cart/utils.d.ts +40 -0
- package/es/components/Sales/Cart/utils.js +167 -0
- package/es/components/Sales/Checkout/index.d.ts +4 -0
- package/es/components/Sales/Checkout/index.js +52 -8
- package/es/components/Sales/Checkout/serve.d.ts +13 -0
- package/es/components/Sales/Checkout/serve.js +16 -2
- package/es/components/Sales/Checkout/utils.js +7 -1
- package/es/components/Sales/Summary/index.d.ts +10 -0
- package/es/components/Sales/Summary/index.js +17 -2
- package/es/components/Sales/Summary/serve.d.ts +1 -0
- package/es/components/Sales/Summary/serve.js +6 -0
- package/es/components/Sales/Summary/utils.d.ts +15 -0
- package/es/components/Sales/Summary/utils.js +43 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
- package/es/components/appointmentBooking/components/Content/index.js +15 -1
- package/es/components/appointmentBooking/components/Content/index.less +1 -1
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
- package/es/components/appointmentBooking/components/Deposit/index.js +27 -7
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Services/index.js +23 -27
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +25 -20
- package/es/components/appointmentBooking/deposit/index.js +4 -2
- package/es/components/appointmentBooking/index.js +14 -0
- package/es/components/appointmentBooking/index.less +1 -1
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/es/components/booking/components/voucher/index.js +2 -2
- 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/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/hooks/useInfoHolder.js +8 -1
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/es/components/booking/info/service/like/index.d.ts +0 -1
- package/es/components/booking/info/service2/Lists.d.ts +0 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/materiels/holder/index.d.ts +0 -1
- 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/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/const.d.ts +4 -1
- package/es/components/eftposPay/const.js +3 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/hooks.js +3 -1
- package/es/components/eftposPay/index.js +1 -1
- package/es/components/eftposPay/linkly/const.d.ts +23 -0
- package/es/components/eftposPay/linkly/const.js +82 -0
- package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -0
- package/es/components/eftposPay/linkly/hooks/index.js +2 -0
- package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
- package/es/components/eftposPay/linkly/hooks/normal.js +321 -0
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +273 -0
- package/es/components/eftposPay/linkly/index.d.ts +2 -0
- package/es/components/eftposPay/linkly/index.js +197 -0
- package/es/components/eftposPay/linkly/service.d.ts +32 -0
- package/es/components/eftposPay/linkly/service.js +81 -0
- package/es/components/eftposPay/manufacturer.d.ts +1 -0
- package/es/components/eftposPay/manufacturer.js +4 -0
- package/es/components/eftposPay/pay.d.ts +1 -1
- package/es/components/eftposPay/pay.js +6 -2
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +29 -17
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.js +17 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.js +10 -6
- package/es/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/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/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/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/bookingDetailModal/index.js +3 -1
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/es/components/eventBooking/locales.d.ts +24 -0
- package/es/components/eventBooking/locales.js +27 -3
- 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/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/index.js +5 -4
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
- 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/index.d.ts +0 -1
- package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- 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/addService.js +1 -1
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -1
- package/es/components/ticketBooking/components/ticketBooking/index.js +120 -1
- package/es/components/ticketBooking/locales.d.ts +164 -146
- package/es/components/ticketBooking/locales.js +195 -147
- package/es/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
- package/es/components/ticketBooking/utils/formatProductMessage.js +62 -0
- package/es/components/ticketBooking/utils/formatTime.d.ts +31 -0
- package/es/components/ticketBooking/utils/formatTime.js +144 -0
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/lib/businessModel/SalesModel/index.d.ts +0 -1
- package/lib/components/Sales/Cart/index.js +1 -0
- package/lib/components/Sales/Cart/utils.d.ts +40 -0
- package/lib/components/Sales/Cart/utils.js +117 -0
- package/lib/components/Sales/Checkout/index.d.ts +4 -0
- package/lib/components/Sales/Checkout/index.js +39 -7
- package/lib/components/Sales/Checkout/serve.d.ts +13 -0
- package/lib/components/Sales/Checkout/serve.js +7 -2
- package/lib/components/Sales/Checkout/utils.js +2 -0
- package/lib/components/Sales/Summary/index.d.ts +10 -0
- package/lib/components/Sales/Summary/index.js +7 -1
- package/lib/components/Sales/Summary/serve.d.ts +1 -0
- package/lib/components/Sales/Summary/serve.js +32 -0
- package/lib/components/Sales/Summary/utils.d.ts +15 -0
- package/lib/components/Sales/Summary/utils.js +30 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
- package/lib/components/appointmentBooking/components/Content/index.js +6 -1
- package/lib/components/appointmentBooking/components/Content/index.less +1 -1
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +6 -0
- package/lib/components/appointmentBooking/components/Deposit/index.js +36 -4
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Services/index.js +6 -11
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +8 -4
- package/lib/components/appointmentBooking/deposit/index.js +4 -2
- package/lib/components/appointmentBooking/index.js +11 -0
- package/lib/components/appointmentBooking/index.less +1 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
- package/lib/components/booking/components/voucher/index.js +2 -2
- 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/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/hooks/useInfoHolder.js +6 -1
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/service/editService/BookingList/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/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/materiels/holder/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/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/const.d.ts +4 -1
- package/lib/components/eftposPay/const.js +2 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/hooks.js +11 -4
- package/lib/components/eftposPay/index.js +1 -1
- package/lib/components/eftposPay/linkly/const.d.ts +23 -0
- package/lib/components/eftposPay/linkly/const.js +102 -0
- package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -0
- package/lib/components/eftposPay/linkly/hooks/index.js +25 -0
- package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
- package/lib/components/eftposPay/linkly/hooks/normal.js +242 -0
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +222 -0
- package/lib/components/eftposPay/linkly/index.d.ts +2 -0
- package/lib/components/eftposPay/linkly/index.js +208 -0
- package/lib/components/eftposPay/linkly/service.d.ts +32 -0
- package/lib/components/eftposPay/linkly/service.js +55 -0
- package/lib/components/eftposPay/manufacturer.d.ts +1 -0
- package/lib/components/eftposPay/manufacturer.js +6 -0
- package/lib/components/eftposPay/pay.d.ts +1 -1
- package/lib/components/eftposPay/pay.js +13 -2
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +16 -3
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +2 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.js +55 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.js +8 -5
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.js +4 -2
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/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/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/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/bookingDetailModal/index.js +1 -1
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/lib/components/eventBooking/locales.d.ts +24 -0
- package/lib/components/eventBooking/locales.js +27 -3
- 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/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/index.js +10 -9
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -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/shoppingCart/components/Cart/Product.d.ts +0 -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/addService.js +1 -1
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.js +120 -1
- package/lib/components/ticketBooking/locales.d.ts +164 -146
- package/lib/components/ticketBooking/locales.js +22 -4
- package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
- package/lib/components/ticketBooking/utils/formatProductMessage.js +84 -0
- package/lib/components/ticketBooking/utils/formatTime.d.ts +31 -0
- package/lib/components/ticketBooking/utils/formatTime.js +139 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/package.json +4 -4
|
@@ -10,7 +10,7 @@ import { getPayParams } from "./helper";
|
|
|
10
10
|
import Manual from "./component/manual";
|
|
11
11
|
import Signature from "./component/signature";
|
|
12
12
|
import { StatusEnum, PayRouteEnum, ClientEnum } from "./const";
|
|
13
|
-
import { Payo, Windcave, Tyro } from "./manufacturer";
|
|
13
|
+
import { Payo, Windcave, Tyro, Linkly } from "./manufacturer";
|
|
14
14
|
import { useContextData, useDispatch, updateStatus, backUpProduction, updateComponent, backUpFree, updateState } from "./store";
|
|
15
15
|
import "./index.less";
|
|
16
16
|
|
|
@@ -150,7 +150,7 @@ var Pay = function Pay(_ref) {
|
|
|
150
150
|
}
|
|
151
151
|
};
|
|
152
152
|
}, []);
|
|
153
|
-
|
|
153
|
+
console.log('data =>>>>>> ', data);
|
|
154
154
|
return /*#__PURE__*/React.createElement(React.Fragment, null, data.render ? /*#__PURE__*/React.createElement("div", {
|
|
155
155
|
className: "pisell-lowcode__eft-pay-box ".concat(className),
|
|
156
156
|
style: data.type === 'step' ? {} : {
|
|
@@ -178,6 +178,10 @@ var Pay = function Pay(_ref) {
|
|
|
178
178
|
onChange: onChange,
|
|
179
179
|
key: data.key,
|
|
180
180
|
formatAmount: formatAmount
|
|
181
|
+
}) : null, data.eftpos === 'linkly' ? /*#__PURE__*/React.createElement(Linkly, {
|
|
182
|
+
key: data.key,
|
|
183
|
+
api: api,
|
|
184
|
+
onChange: onChange
|
|
181
185
|
}) : null) : null, data.type === PayRouteEnum.Unset && Comm ? /*#__PURE__*/React.createElement(Comm, {
|
|
182
186
|
onChange: onChange,
|
|
183
187
|
api: api,
|
|
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
|
|
|
174
174
|
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
|
175
175
|
type: EActionTypes;
|
|
176
176
|
payload: {
|
|
177
|
-
status: "
|
|
177
|
+
status: "loading" | "success" | "warn" | "fail" | "question";
|
|
178
178
|
};
|
|
179
179
|
};
|
|
180
180
|
/**
|
|
@@ -295,9 +295,9 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
295
295
|
name?: string | undefined;
|
|
296
296
|
symbol?: string | undefined;
|
|
297
297
|
amount?: string | number | undefined;
|
|
298
|
-
mode?: "
|
|
298
|
+
mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
|
|
299
299
|
order_id?: string | number | undefined;
|
|
300
|
-
eftpos?: "
|
|
300
|
+
eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
|
|
301
301
|
action?: "amount" | "pay" | "deviceList" | undefined;
|
|
302
302
|
key?: number | undefined;
|
|
303
303
|
step?: number | undefined;
|
|
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
308
308
|
net?: boolean | undefined;
|
|
309
309
|
component?: string | undefined;
|
|
310
310
|
form?: string | undefined;
|
|
311
|
-
status?: "
|
|
311
|
+
status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
|
312
312
|
warn?: string | undefined;
|
|
313
313
|
steps?: {
|
|
314
314
|
/** 用于重置当前步骤 */
|
|
@@ -16,7 +16,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
16
16
|
import React, { useMemo, useState } from 'react';
|
|
17
17
|
import { locales } from '@pisell/utils';
|
|
18
18
|
import { Button, PisellToast } from '@pisell/materials';
|
|
19
|
-
import { useCart, useHolder, useStep, useCheckout, useSales, useCustomer } from "../../../../../Sales";
|
|
19
|
+
import { useCart, useHolder, useStep, useCheckout, useSales, useCustomer, useSummary } from "../../../../../Sales";
|
|
20
20
|
import { formatValues, getFormParams } from "../../../../../Sales/Checkout/utils";
|
|
21
21
|
import OrderProductModal from "../../OrderProductModal/index";
|
|
22
22
|
import EmptyHolderModal from "../../EmptyHolderModal";
|
|
@@ -24,6 +24,7 @@ import { getProductPrice } from "../../../../../Sales/Event/serve";
|
|
|
24
24
|
import { useRequest } from 'ahooks';
|
|
25
25
|
import useEngineContext from "../../../../../../hooks/useEngineContext";
|
|
26
26
|
import "./index.less";
|
|
27
|
+
import { Toast } from "../../../../../appointmentBooking/utils";
|
|
27
28
|
var ContinueButton = function ContinueButton() {
|
|
28
29
|
var _context$appHelper, _cartData$cartItems;
|
|
29
30
|
var _useSales = useSales(),
|
|
@@ -43,10 +44,14 @@ var ContinueButton = function ContinueButton() {
|
|
|
43
44
|
onCheckout = _useCheckout.onCheckout,
|
|
44
45
|
createBooking = _useCheckout.createBooking,
|
|
45
46
|
onCheckBeforeBooking = _useCheckout.onCheckBeforeBooking,
|
|
46
|
-
checkBeforeBooking = _useCheckout.checkBeforeBooking
|
|
47
|
+
checkBeforeBooking = _useCheckout.checkBeforeBooking,
|
|
48
|
+
freePay = _useCheckout.freePay;
|
|
47
49
|
var _useCustomer = useCustomer(),
|
|
48
50
|
openLoginModal = _useCustomer.openLoginModal,
|
|
49
51
|
isLogin = _useCustomer.isLogin;
|
|
52
|
+
var _useSummary = useSummary(),
|
|
53
|
+
deposit = _useSummary.deposit,
|
|
54
|
+
isAgreeDepositPolicy = _useSummary.isAgreeDepositPolicy;
|
|
50
55
|
|
|
51
56
|
// 下单之前是否检测失败
|
|
52
57
|
var _useState = useState(false),
|
|
@@ -384,41 +389,48 @@ var ContinueButton = function ContinueButton() {
|
|
|
384
389
|
*/
|
|
385
390
|
var handleContinue = /*#__PURE__*/function () {
|
|
386
391
|
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
387
|
-
var value, checkRes, emptyHolders;
|
|
392
|
+
var _deposit$protocols, value, checkRes, emptyHolders;
|
|
388
393
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
389
394
|
while (1) switch (_context6.prev = _context6.next) {
|
|
390
395
|
case 0:
|
|
391
396
|
if (!isLastStep) {
|
|
392
|
-
_context6.next =
|
|
397
|
+
_context6.next = 17;
|
|
398
|
+
break;
|
|
399
|
+
}
|
|
400
|
+
value = formatValues(data); // 如果未同意定金政策,则提示
|
|
401
|
+
if (!(deposit !== null && deposit !== void 0 && deposit.hasDeposit && (deposit === null || deposit === void 0 || (_deposit$protocols = deposit.protocols) === null || _deposit$protocols === void 0 ? void 0 : _deposit$protocols.length) > 0 && !isAgreeDepositPolicy)) {
|
|
402
|
+
_context6.next = 5;
|
|
393
403
|
break;
|
|
394
404
|
}
|
|
395
|
-
|
|
396
|
-
_context6.
|
|
405
|
+
Toast(locales.getText('pisell2.appointment.deposit.agree.policy'));
|
|
406
|
+
return _context6.abrupt("return");
|
|
407
|
+
case 5:
|
|
408
|
+
_context6.next = 7;
|
|
397
409
|
return onCheckBeforeBooking(value);
|
|
398
|
-
case
|
|
410
|
+
case 7:
|
|
399
411
|
checkRes = _context6.sent;
|
|
400
412
|
if (!((checkRes === null || checkRes === void 0 ? void 0 : checkRes.result) === false)) {
|
|
401
|
-
_context6.next =
|
|
413
|
+
_context6.next = 12;
|
|
402
414
|
break;
|
|
403
415
|
}
|
|
404
416
|
setCheckedNumber(checkRes === null || checkRes === void 0 ? void 0 : checkRes.num);
|
|
405
417
|
setOpenCheckout(true);
|
|
406
418
|
return _context6.abrupt("return");
|
|
407
|
-
case
|
|
419
|
+
case 12:
|
|
408
420
|
// 验证holder是否为空
|
|
409
421
|
emptyHolders = getWithoutCartItemsHolderNames();
|
|
410
422
|
if (!((emptyHolders === null || emptyHolders === void 0 ? void 0 : emptyHolders.length) > 0)) {
|
|
411
|
-
_context6.next =
|
|
423
|
+
_context6.next = 15;
|
|
412
424
|
break;
|
|
413
425
|
}
|
|
414
426
|
return _context6.abrupt("return", setOpenEmptyHolder(true));
|
|
415
|
-
case
|
|
427
|
+
case 15:
|
|
416
428
|
// 关闭购物车弹窗
|
|
417
429
|
onCloseCart();
|
|
418
430
|
return _context6.abrupt("return", handleCheckout());
|
|
419
|
-
case
|
|
431
|
+
case 17:
|
|
420
432
|
if (isLogin()) {
|
|
421
|
-
_context6.next =
|
|
433
|
+
_context6.next = 20;
|
|
422
434
|
break;
|
|
423
435
|
}
|
|
424
436
|
onCloseCart();
|
|
@@ -448,9 +460,9 @@ var ContinueButton = function ContinueButton() {
|
|
|
448
460
|
return callback;
|
|
449
461
|
}()
|
|
450
462
|
}));
|
|
451
|
-
case
|
|
463
|
+
case 20:
|
|
452
464
|
handleHolder();
|
|
453
|
-
case
|
|
465
|
+
case 21:
|
|
454
466
|
case "end":
|
|
455
467
|
return _context6.stop();
|
|
456
468
|
}
|
|
@@ -487,8 +499,8 @@ var ContinueButton = function ContinueButton() {
|
|
|
487
499
|
*/
|
|
488
500
|
var confirmLoading = useMemo(function () {
|
|
489
501
|
if (!isLastStep) return false;
|
|
490
|
-
return (createBooking === null || createBooking === void 0 ? void 0 : createBooking.loading) || (checkBeforeBooking === null || checkBeforeBooking === void 0 ? void 0 : checkBeforeBooking.loading);
|
|
491
|
-
}, [isLastStep, createBooking === null || createBooking === void 0 ? void 0 : createBooking.loading, checkBeforeBooking === null || checkBeforeBooking === void 0 ? void 0 : checkBeforeBooking.loading]);
|
|
502
|
+
return (createBooking === null || createBooking === void 0 ? void 0 : createBooking.loading) || (checkBeforeBooking === null || checkBeforeBooking === void 0 ? void 0 : checkBeforeBooking.loading) || (freePay === null || freePay === void 0 ? void 0 : freePay.loading);
|
|
503
|
+
}, [isLastStep, createBooking === null || createBooking === void 0 ? void 0 : createBooking.loading, checkBeforeBooking === null || checkBeforeBooking === void 0 ? void 0 : checkBeforeBooking.loading, freePay === null || freePay === void 0 ? void 0 : freePay.loading]);
|
|
492
504
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
|
|
493
505
|
disabled: !(cartData !== null && cartData !== void 0 && (_cartData$cartItems = cartData.cartItems) !== null && _cartData$cartItems !== void 0 && _cartData$cartItems.length),
|
|
494
506
|
size: "large",
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useSummary } from "../../../../../Sales";
|
|
3
|
+
import { DepositContent } from "../../../../../appointmentBooking/components/Deposit";
|
|
4
|
+
var Deposit = function Deposit() {
|
|
5
|
+
var _useSummary = useSummary(),
|
|
6
|
+
deposit = _useSummary.deposit,
|
|
7
|
+
isAgreeDepositPolicy = _useSummary.isAgreeDepositPolicy,
|
|
8
|
+
setIsAgreeDepositPolicy = _useSummary.setIsAgreeDepositPolicy,
|
|
9
|
+
getDepositProtocol = _useSummary.getDepositProtocol;
|
|
10
|
+
return /*#__PURE__*/React.createElement(DepositContent, {
|
|
11
|
+
isAgreeDepositPolicy: !!isAgreeDepositPolicy,
|
|
12
|
+
setIsAgreeDepositPolicy: setIsAgreeDepositPolicy,
|
|
13
|
+
deposit: deposit,
|
|
14
|
+
depositProtocolRequest: getDepositProtocol
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
export default Deposit;
|
|
@@ -5,21 +5,25 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { locales } from '@pisell/utils';
|
|
7
7
|
import { PisellText } from '@pisell/materials';
|
|
8
|
-
import { useSummary } from "../../../../../Sales";
|
|
8
|
+
import { useCart, useSummary } from "../../../../../Sales";
|
|
9
9
|
import useEngineContext from "../../../../../../hooks/useEngineContext";
|
|
10
10
|
import "./index.less";
|
|
11
11
|
import classNames from 'classnames';
|
|
12
12
|
var Total = function Total(_ref) {
|
|
13
|
-
var _context$appHelper, _context$appHelper$ge, _context$appHelper2, _context$appHelper2$g;
|
|
13
|
+
var _context$appHelper, _context$appHelper$ge, _cartData$cartItems, _cartData$cartItems2, _context$appHelper2, _context$appHelper2$g;
|
|
14
14
|
var className = _ref.className,
|
|
15
15
|
isFooter = _ref.isFooter;
|
|
16
|
+
var _useCart = useCart(),
|
|
17
|
+
cartData = _useCart.cartData;
|
|
16
18
|
var _useSummary = useSummary(),
|
|
17
19
|
taxTitle = _useSummary.taxTitle,
|
|
18
20
|
totalTaxFee = _useSummary.totalTaxFee,
|
|
19
21
|
isPriceIncludeTax = _useSummary.isPriceIncludeTax,
|
|
20
|
-
total = _useSummary.total
|
|
22
|
+
total = _useSummary.total,
|
|
23
|
+
deposit = _useSummary.deposit;
|
|
21
24
|
var context = useEngineContext();
|
|
22
|
-
console.log(taxTitle, isPriceIncludeTax, totalTaxFee, total, context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 || (_context$appHelper$ge = _context$appHelper.getSymbolic) === null || _context$appHelper$ge === void 0 ? void 0 : _context$appHelper$ge.call(_context$appHelper), 'wh97978');
|
|
25
|
+
console.log(taxTitle, isPriceIncludeTax, totalTaxFee, total, context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 || (_context$appHelper$ge = _context$appHelper.getSymbolic) === null || _context$appHelper$ge === void 0 ? void 0 : _context$appHelper$ge.call(_context$appHelper), deposit, 'wh97978');
|
|
26
|
+
var showDeposit = (cartData === null || cartData === void 0 || (_cartData$cartItems = cartData.cartItems) === null || _cartData$cartItems === void 0 ? void 0 : _cartData$cartItems.length) > 0 && (deposit === null || deposit === void 0 ? void 0 : deposit.hasDeposit);
|
|
23
27
|
return /*#__PURE__*/React.createElement("div", {
|
|
24
28
|
className: "event-total-wrap ".concat(className)
|
|
25
29
|
}, !isPriceIncludeTax && Number(totalTaxFee) > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
@@ -31,8 +35,8 @@ var Total = function Total(_ref) {
|
|
|
31
35
|
className: classNames('event-total', _defineProperty({}, ['total-gst-wrap'], !isPriceIncludeTax && Number(totalTaxFee) > 0))
|
|
32
36
|
}, /*#__PURE__*/React.createElement("div", {
|
|
33
37
|
className: "left"
|
|
34
|
-
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.event.total'), isFooter ? ': ' : ''), isFooter ? /*#__PURE__*/React.createElement(PisellText.Amount, {
|
|
35
|
-
value: total,
|
|
38
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, isFooter && showDeposit ? locales.getText('pisell2.appointment.deposit') : locales.getText('pisell2.event.total'), isFooter ? ': ' : ''), isFooter ? /*#__PURE__*/React.createElement(PisellText.Amount, {
|
|
39
|
+
value: (cartData === null || cartData === void 0 || (_cartData$cartItems2 = cartData.cartItems) === null || _cartData$cartItems2 === void 0 ? void 0 : _cartData$cartItems2.length) > 0 && deposit !== null && deposit !== void 0 && deposit.hasDeposit ? deposit === null || deposit === void 0 ? void 0 : deposit.total : total,
|
|
36
40
|
showCurrencySymbol: true,
|
|
37
41
|
className: "event-amount"
|
|
38
42
|
}) : null), isPriceIncludeTax && Number(totalTaxFee) > 0 ? /*#__PURE__*/React.createElement("span", {
|
|
@@ -5,8 +5,10 @@ import { useCart, useHolder, useSummary, useStep } from "../../../../../Sales";
|
|
|
5
5
|
import SelectHolderModal from "../../SelectHolderModal";
|
|
6
6
|
import ContinueButton from "../ContinueButton";
|
|
7
7
|
import Total from "./Total";
|
|
8
|
+
import Deposit from "../Deposit";
|
|
8
9
|
import "./index.less";
|
|
9
10
|
var CartItem = function CartItem() {
|
|
11
|
+
var _cartData$cartItems;
|
|
10
12
|
var _useHolder = useHolder(),
|
|
11
13
|
open = _useHolder.open,
|
|
12
14
|
holderData = _useHolder.holderData,
|
|
@@ -17,7 +19,7 @@ var CartItem = function CartItem() {
|
|
|
17
19
|
cartData = _useCart.cartData,
|
|
18
20
|
addNoteToCartItem = _useCart.addNoteToCartItem;
|
|
19
21
|
var _useSummary = useSummary(),
|
|
20
|
-
|
|
22
|
+
deposit = _useSummary.deposit;
|
|
21
23
|
var _useStep = useStep(),
|
|
22
24
|
isLastStep = _useStep.isLastStep;
|
|
23
25
|
var handleClickCard = function handleClickCard(e, type, key) {
|
|
@@ -56,7 +58,7 @@ var CartItem = function CartItem() {
|
|
|
56
58
|
}
|
|
57
59
|
})), /*#__PURE__*/React.createElement("div", {
|
|
58
60
|
className: "event-footer"
|
|
59
|
-
}, /*#__PURE__*/React.createElement(Total, null), /*#__PURE__*/React.createElement(ContinueButton, null))), /*#__PURE__*/React.createElement(SelectHolderModal, {
|
|
61
|
+
}, /*#__PURE__*/React.createElement(Total, null), (cartData === null || cartData === void 0 || (_cartData$cartItems = cartData.cartItems) === null || _cartData$cartItems === void 0 ? void 0 : _cartData$cartItems.length) > 0 && deposit !== null && deposit !== void 0 && deposit.hasDeposit ? /*#__PURE__*/React.createElement(Deposit, null) : null, /*#__PURE__*/React.createElement(ContinueButton, null))), /*#__PURE__*/React.createElement(SelectHolderModal, {
|
|
60
62
|
open: open
|
|
61
63
|
}));
|
|
62
64
|
};
|
|
@@ -304,7 +304,9 @@ var BookingDetailModal = function BookingDetailModal(props) {
|
|
|
304
304
|
utils === null || utils === void 0 || utils.action({
|
|
305
305
|
type: 'pisell1.productDetail',
|
|
306
306
|
data: {
|
|
307
|
-
detail: _objectSpread({}, (bookingOption === null || bookingOption === void 0 ? void 0 : bookingOption._originData) || {}),
|
|
307
|
+
detail: _objectSpread(_objectSpread({}, (bookingOption === null || bookingOption === void 0 ? void 0 : bookingOption._originData) || {}), {}, {
|
|
308
|
+
open_deposit: 1
|
|
309
|
+
}),
|
|
308
310
|
isOS: false
|
|
309
311
|
},
|
|
310
312
|
callback: function callback(data) {
|
|
@@ -71,6 +71,14 @@ declare const _default: {
|
|
|
71
71
|
'pisell2.event.capacity.limit.reached.tip': string;
|
|
72
72
|
'pisell2.event.schedule.item.expand': string;
|
|
73
73
|
'pisell2.event.schedule.item.collapse': string;
|
|
74
|
+
'pisell2.appointment.deposit': string;
|
|
75
|
+
'pisell2.appointment.deposit.agreed': string;
|
|
76
|
+
'pisell2.appointment.deposit.agree.policy': string;
|
|
77
|
+
'pisell2.appointment.deposit.and': string;
|
|
78
|
+
'pisell2.appointment.deposit.amount.tip1': string;
|
|
79
|
+
'pisell2.appointment.deposit.amount.tip2': string;
|
|
80
|
+
'pisell2.appointment.deposit.close': string;
|
|
81
|
+
'pisell2.appointment.booking.empty.data': string;
|
|
74
82
|
};
|
|
75
83
|
'zh-CN': {
|
|
76
84
|
'pisell2.event.calendar.limit.unavailable': string;
|
|
@@ -144,6 +152,14 @@ declare const _default: {
|
|
|
144
152
|
'pisell2.event.capacity.limit.reached.tip': string;
|
|
145
153
|
'pisell2.event.schedule.item.expand': string;
|
|
146
154
|
'pisell2.event.schedule.item.collapse': string;
|
|
155
|
+
'pisell2.appointment.deposit': string;
|
|
156
|
+
'pisell2.appointment.deposit.agreed': string;
|
|
157
|
+
'pisell2.appointment.deposit.agree.policy': string;
|
|
158
|
+
'pisell2.appointment.deposit.and': string;
|
|
159
|
+
'pisell2.appointment.deposit.amount.tip1': string;
|
|
160
|
+
'pisell2.appointment.deposit.amount.tip2': string;
|
|
161
|
+
'pisell2.appointment.deposit.close': string;
|
|
162
|
+
'pisell2.appointment.booking.empty.data': string;
|
|
147
163
|
};
|
|
148
164
|
'zh-HK': {
|
|
149
165
|
'pisell2.event.calendar.limit.unavailable': string;
|
|
@@ -217,6 +233,14 @@ declare const _default: {
|
|
|
217
233
|
'pisell2.event.capacity.limit.reached.tip': string;
|
|
218
234
|
'pisell2.event.schedule.item.expand': string;
|
|
219
235
|
'pisell2.event.schedule.item.collapse': string;
|
|
236
|
+
'pisell2.appointment.deposit': string;
|
|
237
|
+
'pisell2.appointment.deposit.agreed': string;
|
|
238
|
+
'pisell2.appointment.deposit.agree.policy': string;
|
|
239
|
+
'pisell2.appointment.deposit.and': string;
|
|
240
|
+
'pisell2.appointment.deposit.amount.tip1': string;
|
|
241
|
+
'pisell2.appointment.deposit.amount.tip2': string;
|
|
242
|
+
'pisell2.appointment.deposit.close': string;
|
|
243
|
+
'pisell2.appointment.booking.empty.data': string;
|
|
220
244
|
};
|
|
221
245
|
};
|
|
222
246
|
export default _default;
|
|
@@ -82,7 +82,15 @@ export default {
|
|
|
82
82
|
'pisell2.event.capacity.limit.reached.title': 'Capacity limit reached',
|
|
83
83
|
'pisell2.event.capacity.limit.reached.tip': 'One or more events in your cart are no longer available due to full capacity. Please remove unavailable events from your cart to complete checkout.',
|
|
84
84
|
'pisell2.event.schedule.item.expand': 'See more',
|
|
85
|
-
'pisell2.event.schedule.item.collapse': 'See less'
|
|
85
|
+
'pisell2.event.schedule.item.collapse': 'See less',
|
|
86
|
+
'pisell2.appointment.deposit': 'Deposit',
|
|
87
|
+
'pisell2.appointment.deposit.agreed': 'I have read and agree to the ',
|
|
88
|
+
'pisell2.appointment.deposit.agree.policy': 'You need to agree the policy to proceed',
|
|
89
|
+
'pisell2.appointment.deposit.and': ' & ',
|
|
90
|
+
'pisell2.appointment.deposit.amount.tip1': ' needs to be paid as deposit.',
|
|
91
|
+
'pisell2.appointment.deposit.amount.tip2': ' ',
|
|
92
|
+
'pisell2.appointment.deposit.close': 'Close',
|
|
93
|
+
'pisell2.appointment.booking.empty.data': 'No data'
|
|
86
94
|
},
|
|
87
95
|
'zh-CN': {
|
|
88
96
|
'pisell2.event.calendar.limit.unavailable': '不可预约',
|
|
@@ -167,7 +175,15 @@ export default {
|
|
|
167
175
|
'pisell2.event.capacity.limit.reached.title': '活动名额已满',
|
|
168
176
|
'pisell2.event.capacity.limit.reached.tip': '购物车中有一个或多个活动已达预约上限,请将已满额的活动从购物车中移除后再完成结算。',
|
|
169
177
|
'pisell2.event.schedule.item.expand': '查看更多',
|
|
170
|
-
'pisell2.event.schedule.item.collapse': '收起'
|
|
178
|
+
'pisell2.event.schedule.item.collapse': '收起',
|
|
179
|
+
'pisell2.appointment.deposit': '定金',
|
|
180
|
+
'pisell2.appointment.deposit.agreed': '我已阅读并同意 ',
|
|
181
|
+
'pisell2.appointment.deposit.agree.policy': '您需要同意协议才能继续',
|
|
182
|
+
'pisell2.appointment.deposit.and': ' 和 ',
|
|
183
|
+
'pisell2.appointment.deposit.amount.tip1': '请支付 ',
|
|
184
|
+
'pisell2.appointment.deposit.amount.tip2': ' 定金。',
|
|
185
|
+
'pisell2.appointment.deposit.close': '关闭',
|
|
186
|
+
'pisell2.appointment.booking.empty.data': '暂无数据'
|
|
171
187
|
},
|
|
172
188
|
'zh-HK': {
|
|
173
189
|
'pisell2.event.calendar.limit.unavailable': '不可預約',
|
|
@@ -252,6 +268,14 @@ export default {
|
|
|
252
268
|
'pisell2.event.capacity.limit.reached.title': '活動名額已滿',
|
|
253
269
|
'pisell2.event.capacity.limit.reached.tip': '購物車中有一個或多個活動已達預約上限,請將已滿額的活動從購物車中移除後再完成結算。',
|
|
254
270
|
'pisell2.event.schedule.item.expand': '查看更多',
|
|
255
|
-
'pisell2.event.schedule.item.collapse': '收起'
|
|
271
|
+
'pisell2.event.schedule.item.collapse': '收起',
|
|
272
|
+
'pisell2.appointment.deposit': '定金',
|
|
273
|
+
'pisell2.appointment.deposit.agreed': '我已閱讀並同意 ',
|
|
274
|
+
'pisell2.appointment.deposit.agree.policy': '您需要同意協議才能繼續',
|
|
275
|
+
'pisell2.appointment.deposit.and': ' 和 ',
|
|
276
|
+
'pisell2.appointment.deposit.amount.tip1': '請支付 ',
|
|
277
|
+
'pisell2.appointment.deposit.amount.tip2': ' 定金。',
|
|
278
|
+
'pisell2.appointment.deposit.close': '关闭',
|
|
279
|
+
'pisell2.appointment.booking.empty.data': '暫無數據'
|
|
256
280
|
}
|
|
257
281
|
};
|
|
@@ -35,7 +35,7 @@ var isOfflinePayment = function isOfflinePayment(type) {
|
|
|
35
35
|
return ['pisell.bank_deposit', 'pisell.offline_payment', 'pisell.other.cashmanual', 'pisell.custom_bank_transfer'].includes(type);
|
|
36
36
|
};
|
|
37
37
|
var PaymentMethods = function PaymentMethods(props, ref) {
|
|
38
|
-
var _context$appHelper;
|
|
38
|
+
var _context$appHelper, _interaction$utils, _interaction$utils$is;
|
|
39
39
|
var MWCreditCardRef = useRef(null);
|
|
40
40
|
var SuperPayAliPayH5Ref = useRef(null);
|
|
41
41
|
var StripePayRef = useRef(null);
|
|
@@ -118,10 +118,11 @@ var PaymentMethods = function PaymentMethods(props, ref) {
|
|
|
118
118
|
return _ref2.apply(this, arguments);
|
|
119
119
|
};
|
|
120
120
|
}();
|
|
121
|
+
console.log('paymentResult isAppEnv', interaction === null || interaction === void 0 || (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 || (_interaction$utils$is = _interaction$utils.isAppEnv) === null || _interaction$utils$is === void 0 ? void 0 : _interaction$utils$is.call(_interaction$utils), interaction, context);
|
|
121
122
|
useEffect(function () {
|
|
122
|
-
var _interaction$
|
|
123
|
-
console.log('paymentResult isAppEnv', interaction === null || interaction === void 0 || (_interaction$
|
|
124
|
-
if (interaction !== null && interaction !== void 0 && (_interaction$
|
|
123
|
+
var _interaction$utils2, _interaction$utils2$i, _interaction$utils3, _interaction$utils3$i;
|
|
124
|
+
console.log('paymentResult isAppEnv', interaction === null || interaction === void 0 || (_interaction$utils2 = interaction.utils) === null || _interaction$utils2 === void 0 || (_interaction$utils2$i = _interaction$utils2.isAppEnv) === null || _interaction$utils2$i === void 0 ? void 0 : _interaction$utils2$i.call(_interaction$utils2));
|
|
125
|
+
if (interaction !== null && interaction !== void 0 && (_interaction$utils3 = interaction.utils) !== null && _interaction$utils3 !== void 0 && (_interaction$utils3$i = _interaction$utils3.isAppEnv) !== null && _interaction$utils3$i !== void 0 && _interaction$utils3$i.call(_interaction$utils3)) {
|
|
125
126
|
interaction.utils.mountFunction('global', 'paymentResult', function (strResult) {
|
|
126
127
|
console.log('paymentResult', strResult);
|
|
127
128
|
if (!isJson(strResult)) return;
|