@pisell/private-materials 6.3.145 → 6.3.147
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/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/build/lowcode.zip +0 -0
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Footer/index.js +12 -6
- package/es/components/appointmentBooking/components/Form/index.js +15 -2
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/context.js +18 -11
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
- package/es/components/booking/forms/footer.d.ts +1 -0
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +0 -1
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/es/components/ecocup/components/AddCustomerModal/index.d.ts +1 -0
- package/es/components/ecocup/components/CupActionList/index.d.ts +1 -0
- package/es/components/ecocup/components/CupActionModal/index.d.ts +1 -0
- package/es/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
- package/es/components/ecocup/components/CupStatusModal/index.d.ts +1 -0
- package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +1 -0
- package/es/components/ecocup/components/CustomerCard/index.d.ts +1 -0
- package/es/components/ecocup/components/MoreDropdown/index.d.ts +1 -0
- package/es/components/ecocup/components/SearchBar/index.d.ts +1 -0
- package/es/components/ecocup/components/SettingModal/index.d.ts +1 -0
- package/es/components/ecocup/cupList/hooks/useColumns.d.ts +1 -0
- package/es/components/ecocup/cupList/hooks/useSummary.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/es/plus/orderList/components/HandleActions.d.ts +1 -0
- package/es/plus/orderList/components/QuickFilter.d.ts +1 -0
- package/es/plus/orderList/components/Reset.d.ts +1 -0
- package/es/plus/orderList/components/Toolbar.d.ts +1 -0
- package/es/plus/pisellReservation/floorMap/floorPlanApi.d.ts +2 -2
- package/es/plus/pisellReservation/floorMap/useReservationFloorPlan.d.ts +1 -0
- package/es/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
- package/es/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +1 -0
- package/es/plus/pisellSalesManagement/config/booking.d.ts +1 -0
- package/es/plus/saasAttendance/settings/components/membersField/index.d.ts +1 -0
- package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
- package/es/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
- package/es/pro/Login2.0/components/PhoneInput.js +1 -1
- package/es/pro/Login2.0/shared/registerFlow.d.ts +3 -2
- package/es/pro/Login2.0/steps/CodeInput.js +6 -1
- package/es/pro/Login2.0/steps/WaitEmailLink.js +2 -1
- package/es/pro/Selector/demo.d.ts +1 -0
- package/es/pro/pisellPhoneKeyboard/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Footer/index.js +5 -5
- package/lib/components/appointmentBooking/components/Form/index.js +9 -2
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/context.js +4 -1
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
- package/lib/components/booking/forms/footer.d.ts +1 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +0 -1
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +1 -0
- package/lib/components/ecocup/components/CupActionList/index.d.ts +1 -0
- package/lib/components/ecocup/components/CupActionModal/index.d.ts +1 -0
- package/lib/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
- package/lib/components/ecocup/components/CupStatusModal/index.d.ts +1 -0
- package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +1 -0
- package/lib/components/ecocup/components/CustomerCard/index.d.ts +1 -0
- package/lib/components/ecocup/components/MoreDropdown/index.d.ts +1 -0
- package/lib/components/ecocup/components/SearchBar/index.d.ts +1 -0
- package/lib/components/ecocup/components/SettingModal/index.d.ts +1 -0
- package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +1 -0
- package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/plus/orderList/components/HandleActions.d.ts +1 -0
- package/lib/plus/orderList/components/QuickFilter.d.ts +1 -0
- package/lib/plus/orderList/components/Reset.d.ts +1 -0
- package/lib/plus/orderList/components/Toolbar.d.ts +1 -0
- package/lib/plus/pisellReservation/floorMap/floorPlanApi.d.ts +2 -2
- package/lib/plus/pisellReservation/floorMap/useReservationFloorPlan.d.ts +1 -0
- package/lib/plus/pisellReservation/floorRoomCard/views/RoomCardIcons.d.ts +1 -0
- package/lib/plus/pisellReservation/hooks/useReservationScheduleDebounced.d.ts +1 -0
- package/lib/plus/pisellSalesManagement/config/booking.d.ts +1 -0
- package/lib/plus/saasAttendance/settings/components/membersField/index.d.ts +1 -0
- package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
- package/lib/plus/skuOptionsSelection/components/TitleExtra/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
- package/lib/pro/Login2.0/components/PhoneInput.js +1 -0
- package/lib/pro/Login2.0/shared/registerFlow.d.ts +3 -2
- package/lib/pro/Login2.0/steps/CodeInput.js +6 -1
- package/lib/pro/Login2.0/steps/WaitEmailLink.js +2 -1
- package/lib/pro/Selector/demo.d.ts +1 -0
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +1 -0
- package/package.json +1 -1
|
Binary file
|
|
@@ -21,13 +21,16 @@ var Footer = function Footer(_ref) {
|
|
|
21
21
|
carts = _ref2.carts,
|
|
22
22
|
currentStep = _ref2.currentStep,
|
|
23
23
|
isErrorHolder = _ref2.isErrorHolder,
|
|
24
|
-
setIsErrorHolder = _ref2.setIsErrorHolder
|
|
24
|
+
setIsErrorHolder = _ref2.setIsErrorHolder,
|
|
25
|
+
cartDrawerOpen = _ref2.cartDrawerOpen,
|
|
26
|
+
setCartDrawerOpen = _ref2.setCartDrawerOpen;
|
|
25
27
|
var _useState = useState(false),
|
|
26
28
|
_useState2 = _slicedToArray(_useState, 2),
|
|
27
29
|
open = _useState2[0],
|
|
28
30
|
setOpen = _useState2[1];
|
|
29
31
|
useEffect(function () {
|
|
30
|
-
setOpen(isErrorHolder || false);
|
|
32
|
+
// setOpen(isErrorHolder || false);
|
|
33
|
+
setCartDrawerOpen(isErrorHolder || false);
|
|
31
34
|
}, [currentStep === null || currentStep === void 0 || (_currentStep$step = currentStep.step) === null || _currentStep$step === void 0 ? void 0 : _currentStep$step.key, isErrorHolder]);
|
|
32
35
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SectionFooters, {
|
|
33
36
|
className: "section-footer-wrap",
|
|
@@ -40,9 +43,11 @@ var Footer = function Footer(_ref) {
|
|
|
40
43
|
}, /*#__PURE__*/React.createElement(Badge, {
|
|
41
44
|
count: (carts === null || carts === void 0 ? void 0 : carts.length) || 0
|
|
42
45
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
43
|
-
size: "large"
|
|
46
|
+
size: "large"
|
|
47
|
+
// onClick={() => setOpen(true)}
|
|
48
|
+
,
|
|
44
49
|
onClick: function onClick() {
|
|
45
|
-
return
|
|
50
|
+
return setCartDrawerOpen(true);
|
|
46
51
|
},
|
|
47
52
|
className: "section-footer-btn"
|
|
48
53
|
}, /*#__PURE__*/React.createElement(Image, {
|
|
@@ -52,9 +57,10 @@ var Footer = function Footer(_ref) {
|
|
|
52
57
|
onNext: onNext
|
|
53
58
|
}))
|
|
54
59
|
}), /*#__PURE__*/React.createElement(Cart, {
|
|
55
|
-
open:
|
|
60
|
+
open: cartDrawerOpen,
|
|
56
61
|
onCancel: function onCancel() {
|
|
57
|
-
setOpen(false);
|
|
62
|
+
// setOpen(false);
|
|
63
|
+
setCartDrawerOpen(false);
|
|
58
64
|
setIsErrorHolder(false);
|
|
59
65
|
},
|
|
60
66
|
onNext: onNext
|
|
@@ -27,7 +27,9 @@ var Form = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
27
27
|
appointmentBooking = _ref.appointmentBooking,
|
|
28
28
|
setLoading = _ref.setLoading,
|
|
29
29
|
currentStepParams = _ref.currentStepParams,
|
|
30
|
-
carts = _ref.carts
|
|
30
|
+
carts = _ref.carts,
|
|
31
|
+
cartDrawerOpen = _ref.cartDrawerOpen,
|
|
32
|
+
setCartDrawerOpen = _ref.setCartDrawerOpen;
|
|
31
33
|
var _useAppointmentBookin = useAppointmentBookingResource(),
|
|
32
34
|
getResourceList = _useAppointmentBookin.getResourceList;
|
|
33
35
|
var _useAppointmentBookin2 = useAppointmentBookingSetting(),
|
|
@@ -120,8 +122,19 @@ var Form = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
120
122
|
*/
|
|
121
123
|
var updateFormStatus = function updateFormStatus(status) {
|
|
122
124
|
if (status === 'error') {
|
|
123
|
-
nextStepLog(utils, '表单内部错误');
|
|
124
125
|
setLoading(false);
|
|
126
|
+
nextStepLog(utils, '表单内部错误, 请填写完整表单', [{
|
|
127
|
+
key: 'isMobile',
|
|
128
|
+
value: JSON.stringify(utils === null || utils === void 0 ? void 0 : utils.isMobile())
|
|
129
|
+
}, {
|
|
130
|
+
key: 'cartDrawerOpen',
|
|
131
|
+
value: JSON.stringify(cartDrawerOpen)
|
|
132
|
+
}]);
|
|
133
|
+
console.log('isErrorHolder11', utils, utils === null || utils === void 0 ? void 0 : utils.isMobile(), cartDrawerOpen);
|
|
134
|
+
// 如果表单错误,则关闭当前购物车
|
|
135
|
+
if (cartDrawerOpen) {
|
|
136
|
+
setCartDrawerOpen(false);
|
|
137
|
+
}
|
|
125
138
|
}
|
|
126
139
|
};
|
|
127
140
|
|
|
@@ -60,20 +60,25 @@ export var AppointmentBookingProvider = function AppointmentBookingProvider(_ref
|
|
|
60
60
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
61
61
|
isErrorHolder = _useState22[0],
|
|
62
62
|
setIsErrorHolder = _useState22[1];
|
|
63
|
+
/** 底部购物车抽屉是否展开(与 isErrorHolder 解耦,便于表单校验失败时仅关闭抽屉) */
|
|
64
|
+
var _useState23 = useState(false),
|
|
65
|
+
_useState24 = _slicedToArray(_useState23, 2),
|
|
66
|
+
cartDrawerOpen = _useState24[0],
|
|
67
|
+
setCartDrawerOpen = _useState24[1];
|
|
63
68
|
// 初始化 TasksManager
|
|
64
|
-
var
|
|
69
|
+
var _useState25 = useState(function () {
|
|
65
70
|
return new TasksManager();
|
|
66
71
|
}),
|
|
67
|
-
|
|
68
|
-
tasksManager =
|
|
69
|
-
var
|
|
70
|
-
_useState26 = _slicedToArray(_useState25, 2),
|
|
71
|
-
policyParams = _useState26[0],
|
|
72
|
-
setPolicyParams = _useState26[1];
|
|
73
|
-
var _useState27 = useState(),
|
|
72
|
+
_useState26 = _slicedToArray(_useState25, 1),
|
|
73
|
+
tasksManager = _useState26[0];
|
|
74
|
+
var _useState27 = useState(null),
|
|
74
75
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
policyParams = _useState28[0],
|
|
77
|
+
setPolicyParams = _useState28[1];
|
|
78
|
+
var _useState29 = useState(),
|
|
79
|
+
_useState30 = _slicedToArray(_useState29, 2),
|
|
80
|
+
currentSelectedResources = _useState30[0],
|
|
81
|
+
setCurrentSelectedResources = _useState30[1];
|
|
77
82
|
var _useEngineContext = useEngineContext(),
|
|
78
83
|
appHelper = _useEngineContext.appHelper;
|
|
79
84
|
var symbolic = appHelper === null || appHelper === void 0 || (_appHelper$utils = appHelper.utils) === null || _appHelper$utils === void 0 ? void 0 : _appHelper$utils.getSymbolic();
|
|
@@ -222,7 +227,9 @@ export var AppointmentBookingProvider = function AppointmentBookingProvider(_ref
|
|
|
222
227
|
closePolicy: closePolicy,
|
|
223
228
|
currentStepParams: currentStepParams,
|
|
224
229
|
currentSelectedResources: currentSelectedResources,
|
|
225
|
-
setCurrentSelectedResources: setCurrentSelectedResources
|
|
230
|
+
setCurrentSelectedResources: setCurrentSelectedResources,
|
|
231
|
+
cartDrawerOpen: cartDrawerOpen,
|
|
232
|
+
setCartDrawerOpen: setCartDrawerOpen
|
|
226
233
|
};
|
|
227
234
|
return /*#__PURE__*/React.createElement(AppointmentBookingContext.Provider, {
|
|
228
235
|
value: value
|
|
@@ -6,8 +6,8 @@ export declare const RESERVATION_DEFAULT_FLOOR_PLAN_ID = 1;
|
|
|
6
6
|
export type { PostShopFloorPlanBody, PutShopFloorPlanBody, ShopFloorPlanByCodeRequestOptions, ShopFloorPlanDetail, ShopFloorPlanLayoutItem, };
|
|
7
7
|
export { buildFloorPlanPutBody, floorMapSavedConfigToRemotePatch, inferCanvasSizeFromScene, mergeFloorPlanViewRemote, parseLayoutFieldToViewConfigPatch, pickFloorPlanDetail, sceneElementsToShopLayout, viewConfigToLayoutPayload, isShopFloorPlanNotFoundResponse, isHttpNotFoundError, } from '@pisell/materials';
|
|
8
8
|
export declare function isFloorPlanDuplicateCodeError(err: unknown): boolean;
|
|
9
|
-
export declare const getShopFloorPlanByCode: (code: string, subscribe?:
|
|
10
|
-
export declare const postShopFloorPlan: (body: PostShopFloorPlanBody) => Promise<
|
|
9
|
+
export declare const getShopFloorPlanByCode: (code: string, subscribe?: any) => Promise<any>;
|
|
10
|
+
export declare const postShopFloorPlan: (body: PostShopFloorPlanBody) => Promise<any>;
|
|
11
11
|
export declare const putShopFloorPlan: (id: number, body: PutShopFloorPlanBody) => Promise<unknown>;
|
|
12
12
|
export declare const unsubscribeShopFloorPlanCodeQuery: (subscriberId: string) => Promise<void>;
|
|
13
13
|
/**
|
|
@@ -225,7 +225,7 @@ function PhoneInput(_ref) {
|
|
|
225
225
|
// 将输入值标准化为字符串格式(内部统一使用字符串)
|
|
226
226
|
var normalizedValue = useMemo(function () {
|
|
227
227
|
if (!value) return '';
|
|
228
|
-
|
|
228
|
+
console.log('value', value);
|
|
229
229
|
// 如果是对象格式,转换为字符串
|
|
230
230
|
if (_typeof(value) === 'object' && 'phone' in value) {
|
|
231
231
|
var phone = value.phone,
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* 注册流程配置和状态管理
|
|
3
3
|
* 支持多种验证方式的不同步骤流程
|
|
4
4
|
*/
|
|
5
|
+
import type { PhoneValueObject } from './types';
|
|
5
6
|
/** 注册步骤类型 */
|
|
6
7
|
export declare enum RegisterStep {
|
|
7
8
|
/** 初始表单 - 输入账号密码 */
|
|
@@ -66,8 +67,8 @@ export interface RegisterStepDefinition {
|
|
|
66
67
|
export interface RegisterFlowData {
|
|
67
68
|
/** 当前步骤 */
|
|
68
69
|
currentStep: RegisterStep;
|
|
69
|
-
/**
|
|
70
|
-
account: string;
|
|
70
|
+
/** 账号(邮箱字符串或手机号对象) */
|
|
71
|
+
account: string | PhoneValueObject;
|
|
71
72
|
/** 账号类型 */
|
|
72
73
|
accountType: 'email' | 'phone';
|
|
73
74
|
/** 密码(如果在第一步就输入了) */
|
|
@@ -16,6 +16,11 @@ import React, { useState, useRef, useEffect } from 'react';
|
|
|
16
16
|
import { Button } from '@pisell/materials';
|
|
17
17
|
import { locales } from '@pisell/utils';
|
|
18
18
|
import IconFont from '@pisell/materials/src/components/iconfont';
|
|
19
|
+
function formatDisplayAccount(account) {
|
|
20
|
+
if (!account) return '';
|
|
21
|
+
if (typeof account === 'string') return account;
|
|
22
|
+
return "+".concat(account.country_calling_code).concat(account.phone);
|
|
23
|
+
}
|
|
19
24
|
function CodeInput(_ref) {
|
|
20
25
|
var flowData = _ref.flowData,
|
|
21
26
|
_ref$codeLength = _ref.codeLength,
|
|
@@ -160,7 +165,7 @@ function CodeInput(_ref) {
|
|
|
160
165
|
// 根据账号类型显示不同的标题和描述
|
|
161
166
|
var title = flowData.accountType === 'email' ? locales.getText('pisell-register2-check-email-title') : locales.getText('pisell-register2-check-phone-title');
|
|
162
167
|
var description = flowData.accountType === 'email' ? locales.getText('pisell-register2-check-email-desc') : locales.getText('pisell-register2-check-phone-desc');
|
|
163
|
-
var displayAccount = flowData.account;
|
|
168
|
+
var displayAccount = formatDisplayAccount(flowData.account);
|
|
164
169
|
|
|
165
170
|
// 根据账号类型显示不同的"没有收到"提示
|
|
166
171
|
var noReceiveText = flowData.accountType === 'email' ? locales.getText('pisell-register2-no-email-received') : locales.getText('pisell-register2-no-message-received');
|
|
@@ -13,6 +13,7 @@ function WaitEmailLink(_ref) {
|
|
|
13
13
|
countdown = _ref$countdown === void 0 ? 0 : _ref$countdown,
|
|
14
14
|
verificationMethod = _ref.verificationMethod;
|
|
15
15
|
var canResend = countdown === 0;
|
|
16
|
+
var displayEmail = typeof flowData.account === 'string' ? flowData.account : '';
|
|
16
17
|
return /*#__PURE__*/React.createElement("div", {
|
|
17
18
|
className: "register-step-container"
|
|
18
19
|
}, onBack && /*#__PURE__*/React.createElement("button", {
|
|
@@ -31,7 +32,7 @@ function WaitEmailLink(_ref) {
|
|
|
31
32
|
className: "register-email-display"
|
|
32
33
|
}, /*#__PURE__*/React.createElement("span", {
|
|
33
34
|
className: "email-text"
|
|
34
|
-
},
|
|
35
|
+
}, displayEmail), onEditEmail && /*#__PURE__*/React.createElement("button", {
|
|
35
36
|
className: "edit-email-btn",
|
|
36
37
|
onClick: onEditEmail,
|
|
37
38
|
"aria-label": "Edit email"
|