@pisell/private-materials 6.3.29 → 6.3.31
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 +9 -1
- package/build/lowcode/preview.js +144 -144
- 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/components/appointmentBooking/components/Cart/Item/index.js +3 -2
- package/es/components/appointmentBooking/components/ConfirmInformation/index.js +267 -76
- package/es/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
- package/es/components/appointmentBooking/hooks.js +30 -30
- package/es/components/appointmentBooking/locales.js +9 -6
- package/es/components/booking/components/TabProduct/index.d.ts +1 -0
- package/es/components/booking/components/footer/index.d.ts +1 -0
- package/es/components/booking/components/footer/index.js +4 -1
- package/es/components/booking/components/footer/utils.js +62 -46
- package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/es/components/booking/forms/table/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.js +2 -2
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/clientVariant/vertical/index.js +1 -1
- package/es/components/booking/info/main.js +3 -2
- package/es/components/booking/info/model.js +5 -0
- package/es/components/booking/info/service/like/index.d.ts +1 -0
- package/es/components/booking/info2/index.js +3 -2
- package/es/components/booking/info2/service/contactInfoMode/index.js +93 -0
- package/es/components/booking/locales.js +9 -3
- package/es/components/booking/model.js +3 -0
- package/es/components/eftpos/deviceList/index.d.ts +1 -0
- package/es/components/eftpos/form/index.d.ts +1 -0
- package/es/components/eftpos/group/index.d.ts +1 -0
- package/es/components/eftpos/hooks.d.ts +1 -0
- package/es/components/eftpos/icon/apiKey.d.ts +1 -0
- package/es/components/eftpos/icon/device.d.ts +1 -0
- package/es/components/eftpos/receipt/index.d.ts +1 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/es/components/eftposPay/component/step/index.d.ts +1 -0
- package/es/components/eftposPay/component/step/step.d.ts +1 -0
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/ApplePay/index.js +1 -1
- package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +1 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/es/index.d.ts +3 -0
- package/es/index.js +4 -1
- package/es/plus/clientName/index.js +18 -0
- package/es/plus/clientName/index.less +10 -0
- package/es/plus/clientName/type.js +1 -0
- package/es/plus/clientName/utils.js +18 -0
- package/es/plus/contactInfo/components/Avatar/index.js +30 -0
- package/es/plus/contactInfo/components/SwipeAction/index.js +360 -0
- package/es/plus/contactInfo/components/SwipeAction/index.less +74 -0
- package/es/plus/contactInfo/index.js +198 -0
- package/es/plus/contactInfo/index.less +621 -0
- package/es/plus/contactInfo/locales.js +14 -0
- package/es/plus/contactInfo/types.js +1 -0
- package/es/plus/contactInfo/utils.js +50 -0
- package/es/plus/contactInfoModal/ContactInfoContent.js +74 -0
- package/es/plus/contactInfoModal/index.js +154 -0
- package/es/plus/contactInfoModal/index.less +19 -0
- package/es/plus/contactInfoModal/locales.js +65 -0
- package/es/pro/Login2.0/AuthModal.d.ts +143 -0
- package/es/pro/Login2.0/AuthModal.js +624 -0
- package/es/pro/Login2.0/Login2.d.ts +61 -0
- package/es/pro/Login2.0/Login2.js +2157 -0
- package/es/pro/Login2.0/Register2.d.ts +65 -0
- package/es/pro/Login2.0/Register2.js +1501 -0
- package/es/pro/Login2.0/components/ForgotPasswordFlow.js +330 -0
- package/es/pro/Login2.0/components/LegalTerms.d.ts +8 -0
- package/es/pro/Login2.0/components/LegalTerms.js +51 -0
- package/es/pro/Login2.0/components/LegalTerms.less +74 -0
- package/es/pro/Login2.0/components/LoginCodeInput.js +207 -0
- package/es/pro/Login2.0/components/OAuthButtonGroup.js +55 -0
- package/es/pro/Login2.0/components/PhoneInput.js +414 -0
- package/es/pro/Login2.0/components/PhoneInput.less +148 -0
- package/es/pro/Login2.0/components/phoneValidation.js +228 -0
- package/es/pro/Login2.0/hooks/index.d.ts +2 -0
- package/es/pro/Login2.0/hooks/index.js +1 -0
- package/es/pro/Login2.0/hooks/usePasswordValidationRules.js +87 -0
- package/es/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
- package/es/pro/Login2.0/hooks/useRegisterFlow.js +158 -0
- package/es/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
- package/es/pro/Login2.0/hooks/useRegistrationMethods.js +31 -0
- package/es/pro/Login2.0/index.js +8 -0
- package/es/pro/Login2.0/index.less +993 -0
- package/es/pro/Login2.0/locales.js +622 -0
- package/es/pro/Login2.0/shared/Header.d.ts +11 -0
- package/es/pro/Login2.0/shared/Header.js +42 -0
- package/es/pro/Login2.0/shared/OAuthButtons.d.ts +11 -0
- package/es/pro/Login2.0/shared/OAuthButtons.js +59 -0
- package/es/pro/Login2.0/shared/registerFlow.js +171 -0
- package/es/pro/Login2.0/shared/types.d.ts +232 -0
- package/es/pro/Login2.0/shared/types.js +1 -0
- package/es/pro/Login2.0/steps/CodeInput.js +209 -0
- package/es/pro/Login2.0/steps/EmailAlreadyRegistered.js +35 -0
- package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.js +25 -0
- package/es/pro/Login2.0/steps/EmailLinkExpired.js +33 -0
- package/es/pro/Login2.0/steps/SetPassword.js +148 -0
- package/es/pro/Login2.0/steps/VerificationSuccess.js +35 -0
- package/es/pro/Login2.0/steps/VerifyingEmailLink.js +17 -0
- package/es/pro/Login2.0/steps/WaitEmailLink.js +54 -0
- package/es/pro/Login2.0/steps/index.js +11 -0
- package/es/pro/Login2.0/steps/steps.less +423 -0
- package/es/pro/Login2.0/types.js +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +5 -3
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +151 -13
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
- package/lib/components/appointmentBooking/hooks.js +73 -35
- package/lib/components/appointmentBooking/locales.js +6 -3
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
- package/lib/components/booking/components/footer/index.d.ts +1 -0
- package/lib/components/booking/components/footer/index.js +4 -1
- package/lib/components/booking/components/footer/utils.js +70 -38
- package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
- package/lib/components/booking/forms/table/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +1 -1
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/vertical/index.js +34 -17
- package/lib/components/booking/info/main.js +5 -4
- package/lib/components/booking/info/model.js +5 -0
- package/lib/components/booking/info/service/like/index.d.ts +1 -0
- package/lib/components/booking/info2/index.js +5 -4
- package/lib/components/booking/info2/service/contactInfoMode/index.js +104 -0
- package/lib/components/booking/locales.js +9 -3
- package/lib/components/booking/model.js +3 -0
- package/lib/components/eftpos/deviceList/index.d.ts +1 -0
- package/lib/components/eftpos/form/index.d.ts +1 -0
- package/lib/components/eftpos/group/index.d.ts +1 -0
- package/lib/components/eftpos/hooks.d.ts +1 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
- package/lib/components/eftpos/icon/device.d.ts +1 -0
- package/lib/components/eftpos/receipt/index.d.ts +1 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
- package/lib/components/eftposPay/component/step/index.d.ts +1 -0
- package/lib/components/eftposPay/component/step/step.d.ts +1 -0
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/ApplePay/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +1 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
- package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +13 -0
- package/lib/plus/clientName/index.js +53 -0
- package/lib/plus/clientName/index.less +10 -0
- package/lib/plus/clientName/type.js +17 -0
- package/lib/plus/clientName/utils.js +43 -0
- package/lib/plus/contactInfo/components/Avatar/index.js +56 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.js +373 -0
- package/lib/plus/contactInfo/components/SwipeAction/index.less +74 -0
- package/lib/plus/contactInfo/index.js +226 -0
- package/lib/plus/contactInfo/index.less +621 -0
- package/lib/plus/contactInfo/locales.js +38 -0
- package/lib/plus/contactInfo/types.js +17 -0
- package/lib/plus/contactInfo/utils.js +64 -0
- package/lib/plus/contactInfoModal/ContactInfoContent.js +129 -0
- package/lib/plus/contactInfoModal/index.js +138 -0
- package/lib/plus/contactInfoModal/index.less +19 -0
- package/lib/plus/contactInfoModal/locales.js +89 -0
- package/lib/pro/Login2.0/AuthModal.d.ts +143 -0
- package/lib/pro/Login2.0/AuthModal.js +498 -0
- package/lib/pro/Login2.0/Login2.d.ts +61 -0
- package/lib/pro/Login2.0/Login2.js +1468 -0
- package/lib/pro/Login2.0/Register2.d.ts +65 -0
- package/lib/pro/Login2.0/Register2.js +1062 -0
- package/lib/pro/Login2.0/components/ForgotPasswordFlow.js +213 -0
- package/lib/pro/Login2.0/components/LegalTerms.d.ts +8 -0
- package/lib/pro/Login2.0/components/LegalTerms.js +76 -0
- package/lib/pro/Login2.0/components/LegalTerms.less +74 -0
- package/lib/pro/Login2.0/components/LoginCodeInput.js +161 -0
- package/lib/pro/Login2.0/components/OAuthButtonGroup.js +87 -0
- package/lib/pro/Login2.0/components/PhoneInput.js +263 -0
- package/lib/pro/Login2.0/components/PhoneInput.less +148 -0
- package/lib/pro/Login2.0/components/phoneValidation.js +153 -0
- package/lib/pro/Login2.0/hooks/index.d.ts +2 -0
- package/lib/pro/Login2.0/hooks/index.js +29 -0
- package/lib/pro/Login2.0/hooks/usePasswordValidationRules.js +140 -0
- package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
- package/lib/pro/Login2.0/hooks/useRegisterFlow.js +149 -0
- package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
- package/lib/pro/Login2.0/hooks/useRegistrationMethods.js +51 -0
- package/lib/pro/Login2.0/index.js +45 -0
- package/lib/pro/Login2.0/index.less +993 -0
- package/lib/pro/Login2.0/locales.js +646 -0
- package/lib/pro/Login2.0/shared/Header.d.ts +11 -0
- package/lib/pro/Login2.0/shared/Header.js +81 -0
- package/lib/pro/Login2.0/shared/OAuthButtons.d.ts +11 -0
- package/lib/pro/Login2.0/shared/OAuthButtons.js +78 -0
- package/lib/pro/Login2.0/shared/registerFlow.js +235 -0
- package/lib/pro/Login2.0/shared/types.d.ts +232 -0
- package/lib/pro/Login2.0/shared/types.js +17 -0
- package/lib/pro/Login2.0/steps/CodeInput.js +160 -0
- package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.js +46 -0
- package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.js +51 -0
- package/lib/pro/Login2.0/steps/EmailLinkExpired.js +51 -0
- package/lib/pro/Login2.0/steps/SetPassword.js +131 -0
- package/lib/pro/Login2.0/steps/VerificationSuccess.js +49 -0
- package/lib/pro/Login2.0/steps/VerifyingEmailLink.js +41 -0
- package/lib/pro/Login2.0/steps/WaitEmailLink.js +67 -0
- package/lib/pro/Login2.0/steps/index.js +60 -0
- package/lib/pro/Login2.0/steps/steps.less +423 -0
- package/lib/pro/Login2.0/types.js +17 -0
- package/lowcode/authmodal/meta.ts +395 -0
- package/lowcode/contact-info/fragments/cardStyle.ts +68 -0
- package/lowcode/contact-info/fragments/nameStyle.ts +33 -0
- package/lowcode/contact-info/fragments/pisellAvatar.ts +103 -0
- package/lowcode/contact-info/fragments/textStyle.ts +33 -0
- package/lowcode/contact-info/meta.ts +199 -0
- package/lowcode/contact-info-modal/meta.ts +98 -0
- package/lowcode/login2/CONFIG.md +447 -0
- package/lowcode/login2/TEST_CONFIG.md +324 -0
- package/lowcode/login2/VERIFICATION_METHODS.md +364 -0
- package/lowcode/login2/meta.ts +560 -0
- package/lowcode/login2/snippets.ts +124 -0
- package/lowcode/register2/meta.ts +562 -0
- package/lowcode/register2/snippets.ts +257 -0
- package/package.json +7 -5
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/ConfirmInformation/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Services/index.d.ts +0 -4
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
- package/es/components/appointmentBooking/hooks.d.ts +0 -106
- package/es/components/appointmentBooking/locales.d.ts +0 -360
- package/es/components/booking/components/footer/utils.d.ts +0 -41
- package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -8
- package/es/components/booking/components/voucher/index.d.ts +0 -3
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -43
- package/es/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
- package/es/components/booking/info/main.d.ts +0 -12
- package/es/components/booking/info/model.d.ts +0 -14
- package/es/components/booking/info/service/editService/constants.d.ts +0 -1
- package/es/components/booking/info/service/editService/index.d.ts +0 -7
- package/es/components/booking/info2/index.d.ts +0 -12
- package/es/components/booking/info2/service/addService/index.d.ts +0 -11
- package/es/components/booking/locales.d.ts +0 -837
- package/es/components/booking/model.d.ts +0 -116
- package/es/components/eftposPay/component/fail/index.d.ts +0 -3
- package/es/components/index.d.ts +0 -22
- package/es/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +0 -9
- package/es/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/es/components/ruleSetting/locales.d.ts +0 -48
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -12
- package/es/components/ticketBooking/index.d.ts +0 -7
- package/es/plus/productSelect/ProductCard/index.d.ts +0 -47
- package/es/plus/productSelect/index.d.ts +0 -32
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Services/index.d.ts +0 -4
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
- package/lib/components/appointmentBooking/hooks.d.ts +0 -106
- package/lib/components/appointmentBooking/locales.d.ts +0 -360
- package/lib/components/booking/components/footer/utils.d.ts +0 -41
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -8
- package/lib/components/booking/components/voucher/index.d.ts +0 -3
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -43
- package/lib/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
- package/lib/components/booking/info/main.d.ts +0 -12
- package/lib/components/booking/info/model.d.ts +0 -14
- package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
- package/lib/components/booking/info/service/editService/index.d.ts +0 -7
- package/lib/components/booking/info2/index.d.ts +0 -12
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
- package/lib/components/booking/locales.d.ts +0 -837
- package/lib/components/booking/model.d.ts +0 -116
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -3
- package/lib/components/index.d.ts +0 -22
- package/lib/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +0 -9
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/lib/components/ruleSetting/locales.d.ts +0 -48
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -12
- package/lib/components/ticketBooking/index.d.ts +0 -7
- package/lib/plus/productSelect/ProductCard/index.d.ts +0 -47
- package/lib/plus/productSelect/index.d.ts +0 -32
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 注册步骤组件样式
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.register-step-container {
|
|
6
|
+
width: 100%;
|
|
7
|
+
min-height: 400px;
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
padding: 40px 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* 左上角返回按钮 */
|
|
15
|
+
.back-button-top {
|
|
16
|
+
position: absolute;
|
|
17
|
+
top: 2px;
|
|
18
|
+
left: 2px;
|
|
19
|
+
width: 40px;
|
|
20
|
+
height: 40px;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
background: transparent;
|
|
25
|
+
border: none;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
color: #344054;
|
|
28
|
+
transition: all 0.2s ease;
|
|
29
|
+
padding: 0;
|
|
30
|
+
.login-lm-drawer-popover & {
|
|
31
|
+
position: fixed;
|
|
32
|
+
top: 12px;
|
|
33
|
+
left: 12px;
|
|
34
|
+
}
|
|
35
|
+
.ant-modal-body & {
|
|
36
|
+
position: absolute;
|
|
37
|
+
left: -55px;
|
|
38
|
+
top: -14px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&:hover {
|
|
42
|
+
color: #101828;
|
|
43
|
+
background: #F9FAFB;
|
|
44
|
+
border-radius: 8px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:active {
|
|
48
|
+
color: #101828;
|
|
49
|
+
background: #F2F4F7;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.anticon {
|
|
53
|
+
font-size: 24px;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.register-step-content {
|
|
58
|
+
width: 100%;
|
|
59
|
+
text-align: center;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.register-step-title {
|
|
63
|
+
margin: 0 0 8px 0;
|
|
64
|
+
font-size: 16px;
|
|
65
|
+
font-weight: 600;
|
|
66
|
+
line-height: 32px;
|
|
67
|
+
color: #101828;
|
|
68
|
+
text-align: center;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.register-step-desc {
|
|
72
|
+
margin: 0 0 24px 0;
|
|
73
|
+
font-size: 14px;
|
|
74
|
+
font-weight: 400;
|
|
75
|
+
line-height: 24px;
|
|
76
|
+
color: #475467;
|
|
77
|
+
text-align: center;
|
|
78
|
+
}
|
|
79
|
+
.register-step-title-verify-email {
|
|
80
|
+
margin: 0 0 8px 0;
|
|
81
|
+
font-size: 16px;
|
|
82
|
+
font-weight: 600;
|
|
83
|
+
color: #101828;
|
|
84
|
+
text-align: center;
|
|
85
|
+
}
|
|
86
|
+
.register-step-desc-verify-email {
|
|
87
|
+
margin: 0 0 8px 0;
|
|
88
|
+
font-size: 14px;
|
|
89
|
+
font-weight: 400;
|
|
90
|
+
color: #475467;
|
|
91
|
+
text-align: center;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* 重发区域 */
|
|
95
|
+
.register-resend-section {
|
|
96
|
+
margin-top: 24px;
|
|
97
|
+
text-align: center;
|
|
98
|
+
font-size: 14px;
|
|
99
|
+
font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
100
|
+
line-height: 20px;
|
|
101
|
+
|
|
102
|
+
.resend-text {
|
|
103
|
+
color: #475467;
|
|
104
|
+
font-weight: 400;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.resend-link {
|
|
108
|
+
color: var(--theme-color, #7F56D9);
|
|
109
|
+
font-weight: 600;
|
|
110
|
+
background: transparent;
|
|
111
|
+
border: none;
|
|
112
|
+
cursor: pointer;
|
|
113
|
+
padding: 0;
|
|
114
|
+
text-decoration: none;
|
|
115
|
+
transition: all 0.2s ease;
|
|
116
|
+
|
|
117
|
+
&:hover:not(:disabled) {
|
|
118
|
+
opacity: 0.8;
|
|
119
|
+
text-decoration: underline;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&:active:not(:disabled) {
|
|
123
|
+
opacity: 0.6;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&:disabled {
|
|
127
|
+
opacity: 0.4;
|
|
128
|
+
cursor: not-allowed;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* 登录提示 */
|
|
134
|
+
.register-login-prompt {
|
|
135
|
+
margin-top: 32px;
|
|
136
|
+
text-align: center;
|
|
137
|
+
font-size: 14px;
|
|
138
|
+
font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
139
|
+
line-height: 20px;
|
|
140
|
+
|
|
141
|
+
.prompt-text {
|
|
142
|
+
color: #475467;
|
|
143
|
+
font-weight: 400;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.login-link {
|
|
147
|
+
color: var(--theme-color, #7F56D9);
|
|
148
|
+
font-weight: 600;
|
|
149
|
+
background: transparent;
|
|
150
|
+
border: none;
|
|
151
|
+
cursor: pointer;
|
|
152
|
+
padding: 0;
|
|
153
|
+
text-decoration: none;
|
|
154
|
+
transition: all 0.2s ease;
|
|
155
|
+
|
|
156
|
+
&:hover {
|
|
157
|
+
opacity: 0.8;
|
|
158
|
+
text-decoration: underline;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&:active {
|
|
162
|
+
opacity: 0.6;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/* 邮箱已注册提示消息 */
|
|
168
|
+
.email-already-registered-message {
|
|
169
|
+
margin: 0 0 32px 0;
|
|
170
|
+
font-size: 16px;
|
|
171
|
+
font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
172
|
+
font-weight: 600;
|
|
173
|
+
line-height: 24px;
|
|
174
|
+
color: #101828;
|
|
175
|
+
text-align: center;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/* 验证码输入 */
|
|
179
|
+
.code-input-group {
|
|
180
|
+
display: flex;
|
|
181
|
+
gap: 12px;
|
|
182
|
+
justify-content: center;
|
|
183
|
+
margin: 24px 0 24px 0;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.code-input-box {
|
|
187
|
+
width: 80px;
|
|
188
|
+
height: 80px;
|
|
189
|
+
font-size: 40px;
|
|
190
|
+
font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
191
|
+
font-weight: 600;
|
|
192
|
+
text-align: center;
|
|
193
|
+
color: var(--theme-color, #7F56D9);
|
|
194
|
+
background: #FFFFFF;
|
|
195
|
+
border: 2px solid #D0D5DD;
|
|
196
|
+
border-radius: 8px;
|
|
197
|
+
outline: none;
|
|
198
|
+
transition: all 0.2s ease;
|
|
199
|
+
|
|
200
|
+
&:focus {
|
|
201
|
+
border-color: var(--theme-color, #7F56D9);
|
|
202
|
+
box-shadow: 0px 0px 0px 4px rgba(127, 86, 217, 0.12);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&.has-value {
|
|
206
|
+
border-color: var(--theme-color, #7F56D9);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
&.has-error {
|
|
210
|
+
border-color: #ff4d4f;
|
|
211
|
+
box-shadow: 0px 0px 0px 4px rgba(255, 77, 79, 0.12);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
&:disabled {
|
|
215
|
+
background: #F9FAFB;
|
|
216
|
+
cursor: not-allowed;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.code-input-error {
|
|
221
|
+
color: #ff4d4f;
|
|
222
|
+
font-size: 14px;
|
|
223
|
+
margin-top: -20px;
|
|
224
|
+
margin-bottom: 24px;
|
|
225
|
+
text-align: left;
|
|
226
|
+
line-height: 22px;
|
|
227
|
+
min-height: 22px;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/* 按钮样式 */
|
|
231
|
+
.register-submit-btn {
|
|
232
|
+
height: 44px;
|
|
233
|
+
margin-bottom: 12px;
|
|
234
|
+
border-radius: 8px;
|
|
235
|
+
font-size: 16px;
|
|
236
|
+
font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
237
|
+
font-weight: 600;
|
|
238
|
+
background: var(--theme-color, #7F56D9);
|
|
239
|
+
border-color: var(--theme-color, #7F56D9);
|
|
240
|
+
|
|
241
|
+
&:hover:not(:disabled) {
|
|
242
|
+
background: var(--theme-color-hover, #6941C6);
|
|
243
|
+
border-color: var(--theme-color-hover, #6941C6);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
&:active:not(:disabled) {
|
|
247
|
+
background: var(--theme-color-active, #53389E);
|
|
248
|
+
border-color: var(--theme-color-active, #53389E);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.register-back-btn {
|
|
253
|
+
height: 44px;
|
|
254
|
+
border-radius: 8px;
|
|
255
|
+
font-size: 16px;
|
|
256
|
+
font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
257
|
+
font-weight: 600;
|
|
258
|
+
color: #344054;
|
|
259
|
+
border: 1px solid #D0D5DD;
|
|
260
|
+
background: #FFFFFF;
|
|
261
|
+
|
|
262
|
+
&:hover {
|
|
263
|
+
border-color: #98A2B3;
|
|
264
|
+
background: #F9FAFB;
|
|
265
|
+
color: #344054;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
&:active {
|
|
269
|
+
border-color: #667085;
|
|
270
|
+
background: #F2F4F7;
|
|
271
|
+
color: #344054;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/* 成功图标 */
|
|
276
|
+
.success-icon-wrapper {
|
|
277
|
+
margin: 0 auto 24px auto;
|
|
278
|
+
display: flex;
|
|
279
|
+
align-items: center;
|
|
280
|
+
justify-content: center;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/* 密码设置表单 */
|
|
284
|
+
.password-set-form {
|
|
285
|
+
margin-top: 32px;
|
|
286
|
+
|
|
287
|
+
.password-input {
|
|
288
|
+
height: 44px;
|
|
289
|
+
border-radius: 8px;
|
|
290
|
+
font-size: 16px;
|
|
291
|
+
|
|
292
|
+
input {
|
|
293
|
+
font-size: 16px;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.ant-input-password-icon {
|
|
297
|
+
color: #667085;
|
|
298
|
+
font-size: 20px;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.ant-form-item {
|
|
303
|
+
margin-bottom: 16px;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.ant-form-item-explain-error {
|
|
307
|
+
font-size: 14px;
|
|
308
|
+
line-height: 20px;
|
|
309
|
+
text-align: left;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/* 邮箱显示区域 */
|
|
314
|
+
.register-email-display {
|
|
315
|
+
display: flex;
|
|
316
|
+
align-items: center;
|
|
317
|
+
justify-content: center;
|
|
318
|
+
gap: 10px;
|
|
319
|
+
margin: 0 0 32px 0;
|
|
320
|
+
|
|
321
|
+
.email-text {
|
|
322
|
+
line-height: 24px;
|
|
323
|
+
color: #475467;
|
|
324
|
+
font-size: 14px;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.edit-email-btn {
|
|
328
|
+
display: flex;
|
|
329
|
+
align-items: center;
|
|
330
|
+
justify-content: center;
|
|
331
|
+
background: transparent;
|
|
332
|
+
border: none;
|
|
333
|
+
cursor: pointer;
|
|
334
|
+
padding: 0;
|
|
335
|
+
border-radius: 4px;
|
|
336
|
+
transition: all 0.2s ease;
|
|
337
|
+
|
|
338
|
+
&:hover {
|
|
339
|
+
background: #F9FAFB;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
&:active {
|
|
343
|
+
background: #F2F4F7;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/* 邮件链接验证页面 */
|
|
349
|
+
.verifying-email-link-page {
|
|
350
|
+
.register-step-content {
|
|
351
|
+
display: flex;
|
|
352
|
+
flex-direction: column;
|
|
353
|
+
align-items: center;
|
|
354
|
+
justify-content: center;
|
|
355
|
+
min-height: 400px;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.verifying-text {
|
|
359
|
+
margin-top: 24px;
|
|
360
|
+
font-size: 16px;
|
|
361
|
+
font-weight: 600;
|
|
362
|
+
line-height: 24px;
|
|
363
|
+
color: #101828;
|
|
364
|
+
text-align: center;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/* 邮件链接结果页面(过期、已使用) */
|
|
369
|
+
.email-link-expired-page,
|
|
370
|
+
.email-link-already-used-page {
|
|
371
|
+
.email-link-result-title {
|
|
372
|
+
margin: 0 0 12px 0;
|
|
373
|
+
font-size: 16px;
|
|
374
|
+
font-weight: 600;
|
|
375
|
+
line-height: 24px;
|
|
376
|
+
color: #101828;
|
|
377
|
+
text-align: center;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.email-link-result-desc {
|
|
381
|
+
margin: 0 0 32px 0;
|
|
382
|
+
font-size: 14px;
|
|
383
|
+
font-weight: 400;
|
|
384
|
+
line-height: 24px;
|
|
385
|
+
color: #475467;
|
|
386
|
+
text-align: center;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.register-footer-prompt {
|
|
390
|
+
margin-top: 32px;
|
|
391
|
+
text-align: center;
|
|
392
|
+
font-size: 14px;
|
|
393
|
+
font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
394
|
+
font-weight: 400;
|
|
395
|
+
line-height: 20px;
|
|
396
|
+
color: #475467;
|
|
397
|
+
|
|
398
|
+
.prompt-text {
|
|
399
|
+
color: #475467;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.prompt-link {
|
|
403
|
+
color: var(--theme-color, #7F56D9);
|
|
404
|
+
font-weight: 600;
|
|
405
|
+
cursor: pointer;
|
|
406
|
+
background: transparent;
|
|
407
|
+
border: none;
|
|
408
|
+
padding: 0;
|
|
409
|
+
text-decoration: none;
|
|
410
|
+
transition: all 0.2s ease;
|
|
411
|
+
|
|
412
|
+
&:hover {
|
|
413
|
+
opacity: 0.8;
|
|
414
|
+
text-decoration: underline;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
&:active {
|
|
418
|
+
opacity: 0.6;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -45,7 +45,7 @@ var import_Total = __toESM(require("./Total"));
|
|
|
45
45
|
var import_Deposit = __toESM(require("../../Deposit"));
|
|
46
46
|
var import_utils3 = require("../utils");
|
|
47
47
|
var import_index = require("./index.less");
|
|
48
|
-
var CartItem = ({ onNext }) => {
|
|
48
|
+
var CartItem = ({ onNext, renderContactInfo }) => {
|
|
49
49
|
var _a, _b, _c, _d, _e;
|
|
50
50
|
const appointmentBooking = (0, import_hooks.useAppointmentBooking)();
|
|
51
51
|
const {
|
|
@@ -152,7 +152,9 @@ var CartItem = ({ onNext }) => {
|
|
|
152
152
|
const products = (0, import_react.useMemo)(() => {
|
|
153
153
|
if (!(carts == null ? void 0 : carts.length)) return [];
|
|
154
154
|
carts.forEach((item) => {
|
|
155
|
-
item.isShowChangeHolder = !appointmentBooking.isTargetCartIdNormalProduct(
|
|
155
|
+
item.isShowChangeHolder = !appointmentBooking.isTargetCartIdNormalProduct(
|
|
156
|
+
item == null ? void 0 : item._id
|
|
157
|
+
);
|
|
156
158
|
});
|
|
157
159
|
if ((currentSelectedResources == null ? void 0 : currentSelectedResources.length) > 0) {
|
|
158
160
|
const newCarts = carts.map((item) => {
|
|
@@ -181,7 +183,7 @@ var CartItem = ({ onNext }) => {
|
|
|
181
183
|
{
|
|
182
184
|
className: `appointment-cart-item-wrap ${(0, import_utils.isMobile)() ? "appointment-cart-mobile-item-wrap" : ""}`
|
|
183
185
|
},
|
|
184
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "content" }, /* @__PURE__ */ import_react.default.createElement(
|
|
186
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "content" }, renderContactInfo ? renderContactInfo() : null, /* @__PURE__ */ import_react.default.createElement(
|
|
185
187
|
import_shoppingCart.default,
|
|
186
188
|
{
|
|
187
189
|
productParams: {
|
|
@@ -41,6 +41,9 @@ var import_Item = __toESM(require("../Cart/Item"));
|
|
|
41
41
|
var import_utils2 = require("../../utils");
|
|
42
42
|
var import_utils3 = require("./utils");
|
|
43
43
|
var import_index = require("./index.less");
|
|
44
|
+
var import_ContactInfoContent = __toESM(require("../../../../plus/contactInfoModal/ContactInfoContent"));
|
|
45
|
+
var import_antd = require("antd");
|
|
46
|
+
var import_useLoginUser = __toESM(require("../../../../hooks/useLoginUser"));
|
|
44
47
|
var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
|
|
45
48
|
var _a, _b;
|
|
46
49
|
const hasSubscribedRef = (0, import_react.useRef)(false);
|
|
@@ -49,7 +52,69 @@ var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
|
|
|
49
52
|
const utils = (0, import_hooks.contextUtils)();
|
|
50
53
|
const { pubsub } = context.appHelper.utils;
|
|
51
54
|
const { appointmentBooking, summary, isAgreeDepositPolicy, setLoading } = (0, import_context.useAppointmentBookingContext)();
|
|
52
|
-
const { isRetailTemplate } = (0, import_hooks.useAppointmentBookingSetting)();
|
|
55
|
+
const { isRetailTemplate, bookingSetting } = (0, import_hooks.useAppointmentBookingSetting)();
|
|
56
|
+
console.log(bookingSetting, "bookingSetting");
|
|
57
|
+
const [form] = import_antd.Form.useForm();
|
|
58
|
+
const userInfo = (0, import_useLoginUser.default)();
|
|
59
|
+
const getContactsInfo = async () => {
|
|
60
|
+
var _a2;
|
|
61
|
+
let contacts_info = null;
|
|
62
|
+
try {
|
|
63
|
+
const res = await ((_a2 = appointmentBooking == null ? void 0 : appointmentBooking.getContactInfo) == null ? void 0 : _a2.call(appointmentBooking, {
|
|
64
|
+
key: "contacts_info"
|
|
65
|
+
}));
|
|
66
|
+
if ((res == null ? void 0 : res.code) == 200 && (res == null ? void 0 : res.data)) {
|
|
67
|
+
contacts_info = res == null ? void 0 : res.data;
|
|
68
|
+
}
|
|
69
|
+
} catch (error) {
|
|
70
|
+
console.log("error", error);
|
|
71
|
+
contacts_info = null;
|
|
72
|
+
}
|
|
73
|
+
const transfromCountryCallingCode = (code) => {
|
|
74
|
+
if (!code) {
|
|
75
|
+
return "";
|
|
76
|
+
}
|
|
77
|
+
return (code == null ? void 0 : code.startsWith("+")) ? code : `+${code}`;
|
|
78
|
+
};
|
|
79
|
+
if (contacts_info) {
|
|
80
|
+
const { first_name, last_name, phone, email } = contacts_info || {};
|
|
81
|
+
form.setFieldsValue({
|
|
82
|
+
first_name,
|
|
83
|
+
last_name,
|
|
84
|
+
phone: {
|
|
85
|
+
phone: phone == null ? void 0 : phone.phone,
|
|
86
|
+
countryCallingCode: transfromCountryCallingCode(
|
|
87
|
+
phone == null ? void 0 : phone.country_calling_code
|
|
88
|
+
),
|
|
89
|
+
countryCode: phone == null ? void 0 : phone.country_code
|
|
90
|
+
},
|
|
91
|
+
email
|
|
92
|
+
});
|
|
93
|
+
} else {
|
|
94
|
+
console.log("userInfo", userInfo);
|
|
95
|
+
const {
|
|
96
|
+
first_name,
|
|
97
|
+
last_name,
|
|
98
|
+
phone,
|
|
99
|
+
email,
|
|
100
|
+
country_calling_code,
|
|
101
|
+
country_code
|
|
102
|
+
} = userInfo || {};
|
|
103
|
+
form.setFieldsValue({
|
|
104
|
+
first_name,
|
|
105
|
+
last_name,
|
|
106
|
+
phone: {
|
|
107
|
+
phone,
|
|
108
|
+
countryCallingCode: transfromCountryCallingCode(country_calling_code),
|
|
109
|
+
countryCode: country_code
|
|
110
|
+
},
|
|
111
|
+
email
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
(0, import_react.useEffect)(() => {
|
|
116
|
+
getContactsInfo();
|
|
117
|
+
}, []);
|
|
53
118
|
const goPaymentFinish = (order_id, amount) => {
|
|
54
119
|
var _a2;
|
|
55
120
|
const url = `/payment-finish/success?order_id=${order_id}&amount=${Number(
|
|
@@ -60,17 +125,17 @@ var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
|
|
|
60
125
|
};
|
|
61
126
|
(0, import_react.useEffect)(() => {
|
|
62
127
|
if (isRetailTemplate) {
|
|
63
|
-
handleForm();
|
|
128
|
+
handleForm(false);
|
|
64
129
|
}
|
|
65
130
|
}, [isRetailTemplate]);
|
|
66
|
-
const handleForm = async (isSubmit) => {
|
|
131
|
+
const handleForm = async (isSubmit, extraData) => {
|
|
67
132
|
var _a2;
|
|
68
133
|
const carts = await appointmentBooking.getCart();
|
|
69
134
|
const key = "isRetailFormSubmit";
|
|
70
135
|
const isRetailFormSubmit = appointmentBooking.getOtherData(key);
|
|
71
136
|
const callback = () => {
|
|
72
137
|
if (isSubmit) {
|
|
73
|
-
onCheckout();
|
|
138
|
+
onCheckout(extraData);
|
|
74
139
|
}
|
|
75
140
|
};
|
|
76
141
|
if (isRetailFormSubmit) {
|
|
@@ -94,7 +159,7 @@ var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
|
|
|
94
159
|
}
|
|
95
160
|
});
|
|
96
161
|
};
|
|
97
|
-
const handleNext = async () => {
|
|
162
|
+
const handleNext = async (extraData) => {
|
|
98
163
|
var _a2;
|
|
99
164
|
const { deposit } = summary;
|
|
100
165
|
if ((deposit == null ? void 0 : deposit.hasDeposit) && ((_a2 = deposit == null ? void 0 : deposit.protocols) == null ? void 0 : _a2.length) > 0 && !isAgreeDepositPolicy) {
|
|
@@ -102,15 +167,15 @@ var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
|
|
|
102
167
|
}
|
|
103
168
|
setLoading(true);
|
|
104
169
|
if (isRetailTemplate) {
|
|
105
|
-
handleForm(true);
|
|
170
|
+
handleForm(true, extraData);
|
|
106
171
|
return;
|
|
107
172
|
}
|
|
108
|
-
onCheckout();
|
|
173
|
+
onCheckout(extraData);
|
|
109
174
|
};
|
|
110
|
-
const onCheckout = async () => {
|
|
175
|
+
const onCheckout = async (extraData) => {
|
|
111
176
|
try {
|
|
112
177
|
const { deposit } = summary;
|
|
113
|
-
const { data } = await appointmentBooking.submitOrder();
|
|
178
|
+
const { data } = await appointmentBooking.submitOrder(extraData);
|
|
114
179
|
const { is_deposit, deposit_amount, total_amount, order_id } = data || {};
|
|
115
180
|
const _total = is_deposit ? deposit_amount : total_amount;
|
|
116
181
|
if (_total > 0) {
|
|
@@ -143,8 +208,8 @@ var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
|
|
|
143
208
|
}, 50);
|
|
144
209
|
}
|
|
145
210
|
};
|
|
146
|
-
const handleSubmit = () => {
|
|
147
|
-
var _a2, _b2, _c, _d;
|
|
211
|
+
const handleSubmit = async () => {
|
|
212
|
+
var _a2, _b2, _c, _d, _e, _f, _g;
|
|
148
213
|
if ((_b2 = (_a2 = utils == null ? void 0 : utils.businessUtils) == null ? void 0 : _a2.isGuestUser) == null ? void 0 : _b2.call(_a2)) {
|
|
149
214
|
if (!hasSubscribedRef.current) {
|
|
150
215
|
pubsub.subscribe("bind.guest.user", handleNext);
|
|
@@ -153,7 +218,23 @@ var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
|
|
|
153
218
|
(_d = (_c = utils == null ? void 0 : utils.businessUtils) == null ? void 0 : _c.openRegisterModal) == null ? void 0 : _d.call(_c, true);
|
|
154
219
|
return;
|
|
155
220
|
}
|
|
156
|
-
|
|
221
|
+
let contacts_info = null;
|
|
222
|
+
try {
|
|
223
|
+
if (showContactInfo) {
|
|
224
|
+
contacts_info = await form.validateFields();
|
|
225
|
+
const newPhone = {
|
|
226
|
+
phone: ((_e = contacts_info == null ? void 0 : contacts_info.phone) == null ? void 0 : _e.phone) || "",
|
|
227
|
+
country_calling_code: ((_f = contacts_info == null ? void 0 : contacts_info.phone) == null ? void 0 : _f.countryCallingCode) || "",
|
|
228
|
+
country_code: ((_g = contacts_info == null ? void 0 : contacts_info.phone) == null ? void 0 : _g.countryCode) || ""
|
|
229
|
+
};
|
|
230
|
+
contacts_info.phone = newPhone;
|
|
231
|
+
console.log("contacts_info", contacts_info);
|
|
232
|
+
}
|
|
233
|
+
} catch (error) {
|
|
234
|
+
console.log("error", error);
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
handleNext({ contacts_info });
|
|
157
238
|
};
|
|
158
239
|
(0, import_react.useEffect)(() => {
|
|
159
240
|
return () => {
|
|
@@ -164,7 +245,64 @@ var ConfirmInformation = (0, import_react.forwardRef)((props, ref) => {
|
|
|
164
245
|
(0, import_react.useImperativeHandle)(ref, () => ({
|
|
165
246
|
next: handleSubmit
|
|
166
247
|
}));
|
|
167
|
-
|
|
248
|
+
const showContactInfo = (0, import_react.useMemo)(() => {
|
|
249
|
+
let visible = false;
|
|
250
|
+
const { showContactInfo: showContactInfoValue, contactInfoSetting } = bookingSetting || {};
|
|
251
|
+
if (showContactInfoValue === 1 || showContactInfoValue === "1") {
|
|
252
|
+
const { showName, showPhone, showEmail } = contactInfoSetting || {};
|
|
253
|
+
if ((showName === 0 || showName === "0") && (showPhone === 0 || showPhone === "0") && (showEmail === 0 || showEmail === "0")) {
|
|
254
|
+
visible = false;
|
|
255
|
+
} else {
|
|
256
|
+
visible = true;
|
|
257
|
+
}
|
|
258
|
+
} else {
|
|
259
|
+
visible = false;
|
|
260
|
+
}
|
|
261
|
+
return visible;
|
|
262
|
+
}, [bookingSetting == null ? void 0 : bookingSetting.showContactInfo, bookingSetting == null ? void 0 : bookingSetting.contactInfoSetting]);
|
|
263
|
+
const renderContactInfo = () => {
|
|
264
|
+
const {
|
|
265
|
+
emailRequired,
|
|
266
|
+
nameRequired,
|
|
267
|
+
phoneRequired,
|
|
268
|
+
showEmail,
|
|
269
|
+
showName,
|
|
270
|
+
showPhone
|
|
271
|
+
} = (bookingSetting == null ? void 0 : bookingSetting.contactInfoSetting) || {};
|
|
272
|
+
if (!showContactInfo) {
|
|
273
|
+
return null;
|
|
274
|
+
}
|
|
275
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-confirm-information-contact-info-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-confirm-information-contact-info-title" }, import_utils.locales.getText("pisell2.text.contact-info.title")), /* @__PURE__ */ import_react.default.createElement(
|
|
276
|
+
import_ContactInfoContent.default,
|
|
277
|
+
{
|
|
278
|
+
dataSource: null,
|
|
279
|
+
form,
|
|
280
|
+
config: {
|
|
281
|
+
first_name: {
|
|
282
|
+
visible: showName === 0 ? false : true,
|
|
283
|
+
required: nameRequired === "required" ? true : false
|
|
284
|
+
// 姓名默认选填
|
|
285
|
+
},
|
|
286
|
+
last_name: {
|
|
287
|
+
visible: showName === 0 ? false : true,
|
|
288
|
+
required: nameRequired === "required" ? true : false
|
|
289
|
+
// 姓名默认选填
|
|
290
|
+
},
|
|
291
|
+
phone: {
|
|
292
|
+
visible: showPhone === 0 ? false : true,
|
|
293
|
+
required: phoneRequired === "optional" ? false : true
|
|
294
|
+
// 手机号默认必填
|
|
295
|
+
},
|
|
296
|
+
email: {
|
|
297
|
+
visible: showEmail === 0 ? false : true,
|
|
298
|
+
required: emailRequired === "optional" ? false : true
|
|
299
|
+
// 邮箱默认选填
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
));
|
|
304
|
+
};
|
|
305
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-confirm-information-wrap" }, (0, import_utils.isMobile)() ? /* @__PURE__ */ import_react.default.createElement(import_Item.default, { onNext: handleSubmit, renderContactInfo }) : showContactInfo ? renderContactInfo() : /* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-confirm-information-content" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "image" }, /* @__PURE__ */ import_react.default.createElement(
|
|
168
306
|
"img",
|
|
169
307
|
{
|
|
170
308
|
src: `${config == null ? void 0 : config.awsStatic}/checkout_confirm.png`,
|
|
@@ -33,3 +33,18 @@
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
+
.appointment-confirm-information-contact-info-wrap {
|
|
37
|
+
.appointment-confirm-information-contact-info-title {
|
|
38
|
+
color: #1b1b1b;
|
|
39
|
+
font-size: 20px;
|
|
40
|
+
font-weight: 600;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.pisell-contact-info-modal-content {
|
|
44
|
+
padding: 14px 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.pisell-lowcode-form-item {
|
|
48
|
+
margin-bottom: 14px;
|
|
49
|
+
}
|
|
50
|
+
}
|