@pisell/private-materials 6.3.65 → 6.3.67
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 +145 -145
- 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 +10 -10
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
- package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
- package/es/components/booking/components/footer/utils.d.ts +1 -0
- package/es/components/booking/components/footer/utils.js +42 -23
- package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
- package/es/components/booking/components/voucher/index.js +7 -8
- package/es/components/booking/forms/footer.d.ts +0 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/es/components/booking/forms/single/index.d.ts +0 -1
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/hooks/useClearCart.d.ts +0 -1
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/es/components/booking/info/date/index.d.ts +0 -1
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/notes/index.d.ts +0 -1
- package/es/components/booking/info/service/actions/index.d.ts +0 -1
- package/es/components/booking/info2/service/actions/index.d.ts +0 -1
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
- package/es/components/booking/materiels/contacts/index.d.ts +0 -1
- package/es/components/booking/materiels/duration/index.d.ts +0 -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.d.ts +0 -1
- package/es/components/booking/notes/NoteBlock/index.d.ts +0 -1
- package/es/components/eftpos/index.d.ts +0 -1
- package/es/components/eftpos/pos.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +0 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/es/components/eftposPay/component/fail/network.d.ts +0 -1
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/es/components/eftposPay/component/manual/index.d.ts +0 -1
- package/es/components/eftposPay/component/signature/index.d.ts +0 -1
- package/es/components/eftposPay/pay.d.ts +0 -1
- package/es/components/eftposPay/payo/config.d.ts +0 -1
- package/es/components/eftposPay/tip.d.ts +0 -1
- package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
- package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/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/components/BookingOptions.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/es/components/login/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentList/index.d.ts +1 -1
- package/es/components/pay/toC/PaymentList/index.js +54 -5
- package/es/components/pay/toC/PaymentList/index.less +58 -1
- package/es/components/pay/toC/PaymentList/payment/credit_card.png +0 -0
- package/es/components/pay/toC/PaymentList/payment/visa.png +0 -0
- package/es/components/pay/toC/PaymentList/serve.d.ts +1 -1
- package/es/components/pay/toC/PaymentList/serve.js +7 -0
- package/es/components/pay/toC/PaymentList/utils.d.ts +21 -0
- package/es/components/pay/toC/PaymentList/utils.js +165 -5
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pay/toC/index.js +2 -1
- package/es/components/pay/toC/locales.d.ts +6 -0
- package/es/components/pay/toC/locales.js +9 -3
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
- package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/es/components/schedules/calendar/index.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
- package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/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/ProductDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
- package/es/components/schedules/products/list/index.d.ts +0 -1
- package/es/components/schedules/resources/index.d.ts +0 -1
- package/es/components/schedules/resources/list/index.d.ts +0 -1
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/es/components/schedules/schedules/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/es/components/shoppingCart/index.d.ts +0 -1
- package/es/components/systemSettings/registry/components/SectionList.js +5 -1
- package/es/hooks/usePaymentLogger.d.ts +0 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/plus/productSelect/index.js +5 -1
- package/es/plus/saasCreateOrganization/components/Header.d.ts +0 -1
- package/es/plus/saasRegister/components/EntryEmail.d.ts +0 -1
- package/es/plus/saasRegister/components/EntryInfo.d.ts +0 -1
- package/es/plus/saasRegister/components/GoLogin.d.ts +0 -1
- package/es/plus/saasRegister/components/Header.d.ts +0 -1
- package/es/plus/saasRegister/components/VerifyError.d.ts +0 -1
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
- package/es/plus/walletPassGallery/components/passList/index.d.ts +0 -1
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
- package/es/pro/Login2.0/components/LoginCodeInput.js +36 -3
- package/es/pro/Login2.0/steps/CodeInput.js +37 -7
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
- package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
- package/lib/components/booking/components/footer/utils.d.ts +1 -0
- package/lib/components/booking/components/footer/utils.js +20 -3
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
- package/lib/components/booking/components/voucher/index.js +1 -0
- package/lib/components/booking/forms/footer.d.ts +0 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/lib/components/booking/forms/single/index.d.ts +0 -1
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
- package/lib/components/booking/info/date/index.d.ts +0 -1
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/notes/index.d.ts +0 -1
- package/lib/components/booking/info/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +0 -1
- package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
- package/lib/components/booking/materiels/duration/index.d.ts +0 -1
- 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/notes/NoteBlock/NoteItem/index.d.ts +0 -1
- package/lib/components/booking/notes/NoteBlock/index.d.ts +0 -1
- package/lib/components/eftpos/index.d.ts +0 -1
- package/lib/components/eftpos/pos.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
- package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
- package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
- package/lib/components/eftposPay/pay.d.ts +0 -1
- package/lib/components/eftposPay/payo/config.d.ts +0 -1
- package/lib/components/eftposPay/tip.d.ts +0 -1
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
- package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/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/components/BookingOptions.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/lib/components/login/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentList/index.d.ts +1 -1
- package/lib/components/pay/toC/PaymentList/index.js +36 -5
- package/lib/components/pay/toC/PaymentList/index.less +58 -1
- package/lib/components/pay/toC/PaymentList/payment/credit_card.png +0 -0
- package/lib/components/pay/toC/PaymentList/payment/visa.png +0 -0
- package/lib/components/pay/toC/PaymentList/serve.d.ts +1 -1
- package/lib/components/pay/toC/PaymentList/serve.js +5 -1
- package/lib/components/pay/toC/PaymentList/utils.d.ts +21 -0
- package/lib/components/pay/toC/PaymentList/utils.js +134 -6
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pay/toC/index.js +2 -1
- package/lib/components/pay/toC/locales.d.ts +6 -0
- package/lib/components/pay/toC/locales.js +9 -3
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
- package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/lib/components/schedules/calendar/index.d.ts +0 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
- package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/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/ProductDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
- package/lib/components/schedules/products/list/index.d.ts +0 -1
- package/lib/components/schedules/resources/index.d.ts +0 -1
- package/lib/components/schedules/resources/list/index.d.ts +0 -1
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
- package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
- package/lib/components/schedules/schedules/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/lib/components/shoppingCart/index.d.ts +0 -1
- package/lib/components/systemSettings/registry/components/SectionList.js +4 -1
- package/lib/hooks/usePaymentLogger.d.ts +0 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lib/plus/productSelect/index.js +4 -1
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +0 -1
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +0 -1
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +0 -1
- package/lib/plus/saasRegister/components/GoLogin.d.ts +0 -1
- package/lib/plus/saasRegister/components/Header.d.ts +0 -1
- package/lib/plus/saasRegister/components/VerifyError.d.ts +0 -1
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +0 -1
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +0 -1
- package/lib/pro/Login2.0/components/LoginCodeInput.js +26 -4
- package/lib/pro/Login2.0/steps/CodeInput.js +27 -5
- package/package.json +2 -2
|
@@ -3,6 +3,8 @@ import { Card, Empty, Spin } from 'antd';
|
|
|
3
3
|
import { ShoppingCartOutlined, CreditCardOutlined, SafetyCertificateOutlined, SettingOutlined } from '@ant-design/icons';
|
|
4
4
|
import { ShoppingCart01 } from '@pisell/icon';
|
|
5
5
|
import { locales } from '@pisell/utils';
|
|
6
|
+
import useEngineContext from "../../../../hooks/useEngineContext";
|
|
7
|
+
|
|
6
8
|
// 获取多语言文本的工具函数
|
|
7
9
|
var getLocalizedText = function getLocalizedText(text) {
|
|
8
10
|
var locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'zh-CN';
|
|
@@ -38,6 +40,7 @@ var renderSectionIcon = function renderSectionIcon(iconName, code) {
|
|
|
38
40
|
return sectionIcons.default;
|
|
39
41
|
};
|
|
40
42
|
var SectionList = function SectionList(_ref) {
|
|
43
|
+
var _context$engine;
|
|
41
44
|
var sections = _ref.sections,
|
|
42
45
|
selectedSectionId = _ref.selectedSectionId,
|
|
43
46
|
onSectionSelect = _ref.onSectionSelect,
|
|
@@ -48,9 +51,10 @@ var SectionList = function SectionList(_ref) {
|
|
|
48
51
|
onLoadMore = _ref.onLoadMore;
|
|
49
52
|
var scrollContainerRef = useRef(null);
|
|
50
53
|
var loadingRef = useRef(null);
|
|
54
|
+
var context = useEngineContext();
|
|
51
55
|
|
|
52
56
|
// 获取当前语言
|
|
53
|
-
var currentLocale = localStorage.getItem('umi_locale') || '
|
|
57
|
+
var currentLocale = (context === null || context === void 0 || (_context$engine = context.engine) === null || _context$engine === void 0 || (_context$engine = _context$engine.props) === null || _context$engine === void 0 ? void 0 : _context$engine.locale) || localStorage.getItem('umi_locale') || 'en';
|
|
54
58
|
|
|
55
59
|
// 滚动加载更多的处理函数
|
|
56
60
|
var handleScroll = useCallback(function () {
|
package/es/index.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ export { Login2, Register2, AuthModal } from './pro/Login2.0';
|
|
|
57
57
|
export { default as WalletEditor } from './plus/walletEditor';
|
|
58
58
|
export { default as WalletPassGallery } from './plus/walletPassGallery';
|
|
59
59
|
export { default as WalletPassDetail } from './plus/walletPassGallery/components/passDetail';
|
|
60
|
+
export { default as SettingsRegistry } from './components/systemSettings/registry';
|
|
60
61
|
export { default as SelectHolder } from './plus/selectHolder';
|
|
61
62
|
export { default as HolderList } from './plus/selectHolder/components/HolderList';
|
|
62
63
|
export { default as Selector } from './pro/Selector';
|
package/es/index.js
CHANGED
|
@@ -60,6 +60,7 @@ export { Login2, Register2, AuthModal } from "./pro/Login2.0";
|
|
|
60
60
|
export { default as WalletEditor } from "./plus/walletEditor";
|
|
61
61
|
export { default as WalletPassGallery } from "./plus/walletPassGallery";
|
|
62
62
|
export { default as WalletPassDetail } from "./plus/walletPassGallery/components/passDetail";
|
|
63
|
+
export { default as SettingsRegistry } from "./components/systemSettings/registry";
|
|
63
64
|
export { default as SelectHolder } from "./plus/selectHolder";
|
|
64
65
|
export { default as HolderList } from "./plus/selectHolder/components/HolderList";
|
|
65
66
|
export { default as Selector } from "./pro/Selector";
|
|
@@ -125,12 +125,16 @@ var index = function index(_ref) {
|
|
|
125
125
|
* @Date: 2025-10-09 15:13
|
|
126
126
|
*/
|
|
127
127
|
var isHideCategory = useMemo(function () {
|
|
128
|
+
// 装修设置的隐藏分类
|
|
129
|
+
if ((productListSetting === null || productListSetting === void 0 ? void 0 : productListSetting.layout) === 0) {
|
|
130
|
+
return true;
|
|
131
|
+
}
|
|
128
132
|
if (hideCategoryWhenOne) {
|
|
129
133
|
// 只有一个分类或者没有分类
|
|
130
134
|
return (_categories === null || _categories === void 0 ? void 0 : _categories.length) === 1 || !(_categories !== null && _categories !== void 0 && _categories.length);
|
|
131
135
|
}
|
|
132
136
|
return false;
|
|
133
|
-
}, [_categories, hideCategoryWhenOne]);
|
|
137
|
+
}, [_categories, hideCategoryWhenOne, productListSetting === null || productListSetting === void 0 ? void 0 : productListSetting.layout]);
|
|
134
138
|
useEffect(function () {
|
|
135
139
|
if (!(_categories !== null && _categories !== void 0 && _categories.length)) {
|
|
136
140
|
setActiveKey('');
|
|
@@ -59,7 +59,32 @@ function LoginCodeInput(_ref) {
|
|
|
59
59
|
* @param value 输入的值
|
|
60
60
|
*/
|
|
61
61
|
var handleInputChange = function handleInputChange(index, value) {
|
|
62
|
-
|
|
62
|
+
// iOS「短信验证码一键填充」/ 粘贴可能会一次性塞进多位数字:
|
|
63
|
+
// - Safari 往往能正常触发
|
|
64
|
+
// - 微信 WebView 更依赖标准的 `autocomplete="one-time-code"`,并且需要允许一次性输入整串数字
|
|
65
|
+
var digitsOnly = value.replace(/\D/g, '');
|
|
66
|
+
if (digitsOnly !== value && value !== '') return; // 只允许数字(允许空字符串用于清空)
|
|
67
|
+
|
|
68
|
+
// 一次性输入多位数字时,拆分填充到后续输入框(兼容 iOS one-time-code / IME 粘贴)
|
|
69
|
+
if (digitsOnly.length > 1) {
|
|
70
|
+
var _inputRefs$current$ne;
|
|
71
|
+
if (error && onClearError) onClearError();
|
|
72
|
+
var nextCode = _toConsumableArray(code);
|
|
73
|
+
var maxFillLength = Math.min(codeLength - index, digitsOnly.length);
|
|
74
|
+
for (var offset = 0; offset < maxFillLength; offset += 1) {
|
|
75
|
+
nextCode[index + offset] = digitsOnly[offset];
|
|
76
|
+
}
|
|
77
|
+
setCode(nextCode);
|
|
78
|
+
var nextEmptyIndex = nextCode.findIndex(function (digit) {
|
|
79
|
+
return digit === '';
|
|
80
|
+
});
|
|
81
|
+
if (nextEmptyIndex === -1) {
|
|
82
|
+
onSubmit === null || onSubmit === void 0 || onSubmit(nextCode.join(''));
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
(_inputRefs$current$ne = inputRefs.current[nextEmptyIndex]) === null || _inputRefs$current$ne === void 0 || _inputRefs$current$ne.focus();
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
63
88
|
|
|
64
89
|
// 如果用户开始输入且有错误,清除错误
|
|
65
90
|
if (value && error && onClearError) {
|
|
@@ -164,8 +189,16 @@ function LoginCodeInput(_ref) {
|
|
|
164
189
|
return inputRefs.current[index] = el;
|
|
165
190
|
},
|
|
166
191
|
type: "text",
|
|
167
|
-
inputMode: "numeric"
|
|
168
|
-
|
|
192
|
+
inputMode: "numeric"
|
|
193
|
+
// 关键:第一个输入框需要支持 iOS one-time-code 一次性填充整串验证码
|
|
194
|
+
// 否则在微信 WebView 等环境下可能只会塞进第一位或完全不触发
|
|
195
|
+
,
|
|
196
|
+
autoComplete: index === 0 ? 'one-time-code' : 'off',
|
|
197
|
+
autoCorrect: "off",
|
|
198
|
+
autoCapitalize: "off",
|
|
199
|
+
spellCheck: false,
|
|
200
|
+
maxLength: index === 0 ? codeLength : 1,
|
|
201
|
+
pattern: "[0-9]*",
|
|
169
202
|
className: "code-input-box ".concat(digit ? 'has-value' : '', " ").concat(error ? 'has-error' : ''),
|
|
170
203
|
value: digit,
|
|
171
204
|
onChange: function onChange(e) {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
1
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
3
2
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
3
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
@@ -58,7 +57,32 @@ function CodeInput(_ref) {
|
|
|
58
57
|
* @param value 输入的值
|
|
59
58
|
*/
|
|
60
59
|
var handleInputChange = function handleInputChange(index, value) {
|
|
61
|
-
|
|
60
|
+
// iOS「短信验证码一键填充」/ 粘贴可能会一次性塞进多位数字:
|
|
61
|
+
// - Safari 往往能正常触发
|
|
62
|
+
// - 微信 WebView 更依赖标准的 `autocomplete="one-time-code"`,并且需要允许一次性输入整串数字
|
|
63
|
+
var digitsOnly = value.replace(/\D/g, '');
|
|
64
|
+
if (digitsOnly !== value && value !== '') return; // 只允许数字(允许空字符串用于清空)
|
|
65
|
+
|
|
66
|
+
// 一次性输入多位数字时,拆分填充到后续输入框(兼容 iOS one-time-code / IME 粘贴)
|
|
67
|
+
if (digitsOnly.length > 1) {
|
|
68
|
+
var _inputRefs$current$ne;
|
|
69
|
+
if (error && onClearError) onClearError();
|
|
70
|
+
var nextCode = _toConsumableArray(code);
|
|
71
|
+
var maxFillLength = Math.min(codeLength - index, digitsOnly.length);
|
|
72
|
+
for (var offset = 0; offset < maxFillLength; offset += 1) {
|
|
73
|
+
nextCode[index + offset] = digitsOnly[offset];
|
|
74
|
+
}
|
|
75
|
+
setCode(nextCode);
|
|
76
|
+
var nextEmptyIndex = nextCode.findIndex(function (digit) {
|
|
77
|
+
return digit === '';
|
|
78
|
+
});
|
|
79
|
+
if (nextEmptyIndex === -1) {
|
|
80
|
+
onSubmit === null || onSubmit === void 0 || onSubmit(nextCode.join(''));
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
(_inputRefs$current$ne = inputRefs.current[nextEmptyIndex]) === null || _inputRefs$current$ne === void 0 || _inputRefs$current$ne.focus();
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
62
86
|
|
|
63
87
|
// 如果用户开始输入且有错误,清除错误
|
|
64
88
|
if (value && error && onClearError) {
|
|
@@ -136,9 +160,7 @@ function CodeInput(_ref) {
|
|
|
136
160
|
// 根据账号类型显示不同的标题和描述
|
|
137
161
|
var title = flowData.accountType === 'email' ? locales.getText('pisell-register2-check-email-title') : locales.getText('pisell-register2-check-phone-title');
|
|
138
162
|
var description = flowData.accountType === 'email' ? locales.getText('pisell-register2-check-email-desc') : locales.getText('pisell-register2-check-phone-desc');
|
|
139
|
-
|
|
140
|
-
// 格式化账号显示(手机号对象需要转换为字符串)
|
|
141
|
-
var displayAccount = _typeof(flowData.account) === 'object' && 'phone' in flowData.account ? "+".concat(flowData.account.country_calling_code).concat(flowData.account.phone) : flowData.account;
|
|
163
|
+
var displayAccount = flowData.account;
|
|
142
164
|
|
|
143
165
|
// 根据账号类型显示不同的"没有收到"提示
|
|
144
166
|
var noReceiveText = flowData.accountType === 'email' ? locales.getText('pisell-register2-no-email-received') : locales.getText('pisell-register2-no-message-received');
|
|
@@ -166,8 +188,16 @@ function CodeInput(_ref) {
|
|
|
166
188
|
return inputRefs.current[index] = el;
|
|
167
189
|
},
|
|
168
190
|
type: "text",
|
|
169
|
-
inputMode: "numeric"
|
|
170
|
-
|
|
191
|
+
inputMode: "numeric"
|
|
192
|
+
// 关键:第一个输入框需要支持 iOS one-time-code 一次性填充整串验证码
|
|
193
|
+
// 否则在微信 WebView 等环境下可能只会塞进第一位或完全不触发
|
|
194
|
+
,
|
|
195
|
+
autoComplete: index === 0 ? 'one-time-code' : 'off',
|
|
196
|
+
autoCorrect: "off",
|
|
197
|
+
autoCapitalize: "off",
|
|
198
|
+
spellCheck: false,
|
|
199
|
+
maxLength: index === 0 ? codeLength : 1,
|
|
200
|
+
pattern: "[0-9]*",
|
|
171
201
|
className: "code-input-box ".concat(digit ? 'has-value' : '', " ").concat(error ? 'has-error' : ''),
|
|
172
202
|
value: digit,
|
|
173
203
|
onChange: function onChange(e) {
|
|
@@ -42,5 +42,6 @@ export declare const checkResourcesFormat: (resources: any[], service: any, isCh
|
|
|
42
42
|
* @Date: 2024-12-23 12:05
|
|
43
43
|
*/
|
|
44
44
|
export declare const formatProductPrice: (item: any) => number;
|
|
45
|
+
export declare const getMainProductSellingPrice: (item: any) => number | undefined;
|
|
45
46
|
export declare const formatValues: (state: any) => any;
|
|
46
47
|
export declare const checkHolderIsError: (state: any) => any;
|
|
@@ -36,7 +36,8 @@ __export(utils_exports, {
|
|
|
36
36
|
formatProductOption: () => formatProductOption,
|
|
37
37
|
formatProductPrice: () => formatProductPrice,
|
|
38
38
|
formatValues: () => formatValues,
|
|
39
|
-
getBundleDiscountList: () => getBundleDiscountList
|
|
39
|
+
getBundleDiscountList: () => getBundleDiscountList,
|
|
40
|
+
getMainProductSellingPrice: () => getMainProductSellingPrice
|
|
40
41
|
});
|
|
41
42
|
module.exports = __toCommonJS(utils_exports);
|
|
42
43
|
var import_dayjs = __toESM(require("dayjs"));
|
|
@@ -278,6 +279,21 @@ var getSourceProductPrice = (item) => {
|
|
|
278
279
|
}
|
|
279
280
|
return price;
|
|
280
281
|
};
|
|
282
|
+
var getMainProductSellingPrice = (item) => {
|
|
283
|
+
var _a, _b, _c, _d, _e;
|
|
284
|
+
if (!(0, import_utils5.isNumber)((_a = item._extend) == null ? void 0 : _a.main_product_selling_price)) {
|
|
285
|
+
return void 0;
|
|
286
|
+
}
|
|
287
|
+
let optionPrice = new import_decimal.default(0);
|
|
288
|
+
if (((_b = item._extend.other) == null ? void 0 : _b.option) && Array.isArray((_c = item._extend.other) == null ? void 0 : _c.option)) {
|
|
289
|
+
optionPrice = (_d = item._extend.other) == null ? void 0 : _d.option.reduce((accumulator, currentValue) => {
|
|
290
|
+
const currentPrice = new import_decimal.default(currentValue.price || 0);
|
|
291
|
+
const currentNum = new import_decimal.default(currentValue.num || 0);
|
|
292
|
+
return accumulator.add(currentPrice.mul(currentNum));
|
|
293
|
+
}, optionPrice);
|
|
294
|
+
}
|
|
295
|
+
return new import_decimal.default((_e = item._extend) == null ? void 0 : _e.main_product_selling_price).add(optionPrice).toNumber();
|
|
296
|
+
};
|
|
281
297
|
var formatProducts = (item, quantity) => {
|
|
282
298
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
283
299
|
const total = Number(item._extend.total);
|
|
@@ -293,7 +309,7 @@ var formatProducts = (item, quantity) => {
|
|
|
293
309
|
return {
|
|
294
310
|
"num": quantity || item._extend.quantity,
|
|
295
311
|
"price": formatProductPrice(item),
|
|
296
|
-
"main_product_selling_price": item
|
|
312
|
+
"main_product_selling_price": getMainProductSellingPrice(item) ?? formatProductPrice(item),
|
|
297
313
|
"source_product_price": getSourceProductPrice(item),
|
|
298
314
|
"product_id": (item == null ? void 0 : item.product_id) || item.id,
|
|
299
315
|
"discount_amount": notManualDiscount.length > 0 ? 0 : discount_amount,
|
|
@@ -571,5 +587,6 @@ var checkHolderIsError = (state) => {
|
|
|
571
587
|
formatProductOption,
|
|
572
588
|
formatProductPrice,
|
|
573
589
|
formatValues,
|
|
574
|
-
getBundleDiscountList
|
|
590
|
+
getBundleDiscountList,
|
|
591
|
+
getMainProductSellingPrice
|
|
575
592
|
});
|
|
@@ -100,6 +100,7 @@ var VoucherCard = (props) => {
|
|
|
100
100
|
origin_total: (_b2 = value == null ? void 0 : value._extend) == null ? void 0 : _b2.origin_total,
|
|
101
101
|
quantity: value._extend.quantity,
|
|
102
102
|
startDate: value._extend.startDate,
|
|
103
|
+
quantity: value._extend.quantity,
|
|
103
104
|
holder_id: (_c2 = value == null ? void 0 : value._extend) == null ? void 0 : _c2.holder_id
|
|
104
105
|
};
|
|
105
106
|
});
|