@pisell/private-materials 6.3.146 → 6.3.149
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 +2 -2
- package/build/lowcode/view.js +2 -2
- package/es/components/appointmentBooking/components/Cart/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/context.js +18 -11
- package/es/components/appointmentBooking/index.d.ts +0 -1
- package/es/components/appointmentBooking/index.js +6 -3
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/es/components/ticketBooking/index.d.ts +1 -0
- package/es/components/venueBooking/context.d.ts +9 -0
- package/es/components/venueBooking/context.js +17 -12
- package/es/components/venueBooking/index.js +50 -12
- package/lib/components/appointmentBooking/components/Cart/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/context.js +4 -1
- package/lib/components/appointmentBooking/index.d.ts +0 -1
- package/lib/components/appointmentBooking/index.js +2 -1
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/lib/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/venueBooking/context.d.ts +9 -0
- package/lib/components/venueBooking/context.js +4 -2
- package/lib/components/venueBooking/index.js +51 -7
- package/package.json +1 -1
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -3
- package/es/components/appointmentBooking/context.d.ts +0 -35
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
- package/es/components/appointmentBooking/utils.d.ts +0 -227
- package/es/components/booking/components/footer/utils.d.ts +0 -47
- package/es/components/booking/components/voucher/index.d.ts +0 -3
- package/es/components/booking/info/service/editService/index.d.ts +0 -7
- package/es/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
- package/es/components/eftposPay/linkly/index.d.ts +0 -2
- package/es/components/kioskSkuDetail/index.d.ts +0 -39
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +0 -16
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +0 -15
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +0 -83
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +0 -10
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -22
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -25
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +0 -16
- package/es/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/es/components/pay/toC/index.d.ts +0 -3
- package/es/components/pay/toC/serve.d.ts +0 -87
- package/es/components/systemSettings/registry/components/GroupModal.d.ts +0 -4
- package/es/components/systemSettings/registry/components/ItemModal.d.ts +0 -4
- package/es/components/systemSettings/registry/index.d.ts +0 -5
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -12
- package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -3
- package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -15
- package/es/plus/skuOptionsSelection/index.d.ts +0 -5
- package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +0 -19
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +0 -10
- package/es/plus/walletPassGallery/locales.d.ts +0 -488
- package/es/pro/Cards/components/SKUCard/index.d.ts +0 -5
- package/es/pro/Login2.0/Register2.d.ts +0 -65
- package/es/pro/Login2.0/components/PhoneInput.d.ts +0 -53
- package/es/pro/Login2.0/shared/registerFlow.d.ts +0 -117
- package/es/pro/Login2.0/steps/CodeInput.d.ts +0 -24
- package/es/pro/Login2.0/steps/WaitEmailLink.d.ts +0 -18
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -3
- package/lib/components/appointmentBooking/context.d.ts +0 -35
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
- package/lib/components/appointmentBooking/utils.d.ts +0 -227
- package/lib/components/booking/components/footer/utils.d.ts +0 -47
- package/lib/components/booking/components/voucher/index.d.ts +0 -3
- package/lib/components/booking/info/service/editService/index.d.ts +0 -7
- package/lib/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
- package/lib/components/eftposPay/linkly/index.d.ts +0 -2
- package/lib/components/kioskSkuDetail/index.d.ts +0 -39
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +0 -16
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +0 -15
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +0 -83
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +0 -10
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -22
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -25
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +0 -16
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +0 -9
- package/lib/components/pay/toC/index.d.ts +0 -3
- package/lib/components/pay/toC/serve.d.ts +0 -87
- package/lib/components/systemSettings/registry/components/GroupModal.d.ts +0 -4
- package/lib/components/systemSettings/registry/components/ItemModal.d.ts +0 -4
- package/lib/components/systemSettings/registry/index.d.ts +0 -5
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -12
- package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -3
- package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -15
- package/lib/plus/skuOptionsSelection/index.d.ts +0 -5
- package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +0 -19
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +0 -10
- package/lib/plus/walletPassGallery/locales.d.ts +0 -488
- package/lib/pro/Cards/components/SKUCard/index.d.ts +0 -5
- package/lib/pro/Login2.0/Register2.d.ts +0 -65
- package/lib/pro/Login2.0/components/PhoneInput.d.ts +0 -53
- package/lib/pro/Login2.0/shared/registerFlow.d.ts +0 -117
- package/lib/pro/Login2.0/steps/CodeInput.d.ts +0 -24
- package/lib/pro/Login2.0/steps/WaitEmailLink.d.ts +0 -18
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 注册流程配置和状态管理
|
|
3
|
-
* 支持多种验证方式的不同步骤流程
|
|
4
|
-
*/
|
|
5
|
-
import type { PhoneValueObject } from './types';
|
|
6
|
-
/** 注册步骤类型 */
|
|
7
|
-
export declare enum RegisterStep {
|
|
8
|
-
/** 初始表单 - 输入账号密码 */
|
|
9
|
-
INITIAL_FORM = "INITIAL_FORM",
|
|
10
|
-
/** 等待邮件链接验证 */
|
|
11
|
-
WAIT_EMAIL_LINK = "WAIT_EMAIL_LINK",
|
|
12
|
-
/** 输入验证码 */
|
|
13
|
-
INPUT_VERIFICATION_CODE = "INPUT_VERIFICATION_CODE",
|
|
14
|
-
/** 验证成功提示 */
|
|
15
|
-
VERIFICATION_SUCCESS = "VERIFICATION_SUCCESS",
|
|
16
|
-
/** 设置密码 */
|
|
17
|
-
SET_PASSWORD = "SET_PASSWORD",
|
|
18
|
-
/** 邮箱已注册错误 */
|
|
19
|
-
EMAIL_ALREADY_REGISTERED = "EMAIL_ALREADY_REGISTERED",
|
|
20
|
-
/** 注册完成 */
|
|
21
|
-
COMPLETE = "COMPLETE"
|
|
22
|
-
}
|
|
23
|
-
/** 验证方式类型 */
|
|
24
|
-
export declare enum VerificationMethod {
|
|
25
|
-
/** 邮件链接验证 */
|
|
26
|
-
EMAIL_LINK = "EMAIL_LINK",
|
|
27
|
-
/** 邮箱验证码验证 */
|
|
28
|
-
EMAIL_CODE = "EMAIL_CODE",
|
|
29
|
-
/** 手机验证码验证 */
|
|
30
|
-
PHONE_CODE = "PHONE_CODE",
|
|
31
|
-
/** 密码验证(无需验证码) */
|
|
32
|
-
PASSWORD_ONLY = "PASSWORD_ONLY"
|
|
33
|
-
}
|
|
34
|
-
/** 注册流程配置 */
|
|
35
|
-
export interface RegisterFlowConfig {
|
|
36
|
-
/** 验证方式 */
|
|
37
|
-
verificationMethod: VerificationMethod;
|
|
38
|
-
/** 是否需要密码(某些流程可能在验证后才设置密码) */
|
|
39
|
-
requirePasswordAtStart?: boolean;
|
|
40
|
-
/** 自动跳转设置(某些步骤后自动跳转到下一步) */
|
|
41
|
-
autoTransition?: {
|
|
42
|
-
[key in RegisterStep]?: {
|
|
43
|
-
delay: number;
|
|
44
|
-
nextStep: RegisterStep;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
/** 注册流程步骤定义 */
|
|
49
|
-
export interface RegisterStepDefinition {
|
|
50
|
-
/** 步骤标识 */
|
|
51
|
-
step: RegisterStep;
|
|
52
|
-
/** 步骤显示的组件类型 */
|
|
53
|
-
component: 'form' | 'waiting' | 'error' | 'success' | 'code-input' | 'password-set';
|
|
54
|
-
/** 步骤配置 */
|
|
55
|
-
config?: {
|
|
56
|
-
/** 是否显示返回按钮 */
|
|
57
|
-
showBack?: boolean;
|
|
58
|
-
/** 是否显示关闭按钮 */
|
|
59
|
-
showClose?: boolean;
|
|
60
|
-
/** 是否可以编辑账号 */
|
|
61
|
-
canEditAccount?: boolean;
|
|
62
|
-
/** 是否显示重发按钮 */
|
|
63
|
-
showResend?: boolean;
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
/** 注册流程数据 */
|
|
67
|
-
export interface RegisterFlowData {
|
|
68
|
-
/** 当前步骤 */
|
|
69
|
-
currentStep: RegisterStep;
|
|
70
|
-
/** 账号(邮箱字符串或手机号对象) */
|
|
71
|
-
account: string | PhoneValueObject;
|
|
72
|
-
/** 账号类型 */
|
|
73
|
-
accountType: 'email' | 'phone';
|
|
74
|
-
/** 密码(如果在第一步就输入了) */
|
|
75
|
-
password?: string;
|
|
76
|
-
/** 验证码 */
|
|
77
|
-
verificationCode?: string;
|
|
78
|
-
/** 邮件链接验证码 */
|
|
79
|
-
emailLinkCode?: string;
|
|
80
|
-
/** 验证方式 */
|
|
81
|
-
verificationMethod: VerificationMethod;
|
|
82
|
-
/** 错误信息 */
|
|
83
|
-
error?: {
|
|
84
|
-
code: string;
|
|
85
|
-
message: string;
|
|
86
|
-
};
|
|
87
|
-
/** 额外数据 */
|
|
88
|
-
extraData?: Record<string, any>;
|
|
89
|
-
}
|
|
90
|
-
/** 预定义流程配置 */
|
|
91
|
-
export declare const REGISTER_FLOW_CONFIGS: Record<VerificationMethod, RegisterFlowConfig>;
|
|
92
|
-
/** 步骤流转映射 */
|
|
93
|
-
export declare const STEP_TRANSITIONS: Record<VerificationMethod, Record<RegisterStep, RegisterStep[]>>;
|
|
94
|
-
/** 步骤定义映射 */
|
|
95
|
-
export declare const STEP_DEFINITIONS: Record<RegisterStep, RegisterStepDefinition>;
|
|
96
|
-
/**
|
|
97
|
-
* 验证步骤流转是否合法
|
|
98
|
-
*/
|
|
99
|
-
export declare function isValidTransition(verificationMethod: VerificationMethod, fromStep: RegisterStep, toStep: RegisterStep): boolean;
|
|
100
|
-
/**
|
|
101
|
-
* 获取步骤配置
|
|
102
|
-
*/
|
|
103
|
-
export declare function getStepDefinition(step: RegisterStep): RegisterStepDefinition;
|
|
104
|
-
/**
|
|
105
|
-
* 获取流程配置
|
|
106
|
-
*/
|
|
107
|
-
export declare function getFlowConfig(verificationMethod: VerificationMethod): RegisterFlowConfig;
|
|
108
|
-
/**
|
|
109
|
-
* 根据认证配置决定使用哪种验证方式
|
|
110
|
-
*/
|
|
111
|
-
export declare function determineVerificationMethod(accountType: 'email' | 'phone', emailConfig?: {
|
|
112
|
-
enable_email?: boolean;
|
|
113
|
-
require_email_verification?: boolean;
|
|
114
|
-
}, phoneConfig?: {
|
|
115
|
-
enable_phone_number?: boolean;
|
|
116
|
-
require_phone_verification?: boolean;
|
|
117
|
-
}): VerificationMethod;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { RegisterFlowData } from '../shared/registerFlow';
|
|
3
|
-
export interface CodeInputProps {
|
|
4
|
-
/** 流程数据 */
|
|
5
|
-
flowData: RegisterFlowData;
|
|
6
|
-
/** 验证码长度 */
|
|
7
|
-
codeLength?: number;
|
|
8
|
-
/** 提交验证码 */
|
|
9
|
-
onSubmit?: (code: string) => void;
|
|
10
|
-
/** 重新发送 */
|
|
11
|
-
onResend?: () => void;
|
|
12
|
-
/** 返回 */
|
|
13
|
-
onBack?: () => void;
|
|
14
|
-
/** 倒计时秒数 */
|
|
15
|
-
countdown?: number;
|
|
16
|
-
/** 加载状态 */
|
|
17
|
-
loading?: boolean;
|
|
18
|
-
/** 错误信息 */
|
|
19
|
-
error?: string;
|
|
20
|
-
/** 当用户输入时清除错误的回调 */
|
|
21
|
-
onClearError?: () => void;
|
|
22
|
-
}
|
|
23
|
-
declare function CodeInput({ flowData, codeLength, onSubmit, onResend, onBack, countdown, loading, error, onClearError, }: CodeInputProps): JSX.Element;
|
|
24
|
-
export default CodeInput;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { RegisterFlowData, VerificationMethod } from '../shared/registerFlow';
|
|
3
|
-
export interface WaitEmailLinkProps {
|
|
4
|
-
/** 流程数据 */
|
|
5
|
-
flowData: RegisterFlowData;
|
|
6
|
-
/** 重新发送 */
|
|
7
|
-
onResend?: () => void;
|
|
8
|
-
/** 返回 */
|
|
9
|
-
onBack?: () => void;
|
|
10
|
-
/** 编辑邮箱 */
|
|
11
|
-
onEditEmail?: () => void;
|
|
12
|
-
/** 倒计时秒数 */
|
|
13
|
-
countdown?: number;
|
|
14
|
-
/** 验证方式 */
|
|
15
|
-
verificationMethod?: VerificationMethod;
|
|
16
|
-
}
|
|
17
|
-
declare function WaitEmailLink({ flowData, onResend, onBack, onEditEmail, countdown, verificationMethod, }: WaitEmailLinkProps): JSX.Element;
|
|
18
|
-
export default WaitEmailLink;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { TasksManager } from '../../utils/tasks';
|
|
3
|
-
interface AppointmentBookingContextType {
|
|
4
|
-
appointmentBooking: any;
|
|
5
|
-
times: any[];
|
|
6
|
-
resources: any[];
|
|
7
|
-
setTimes: (times: any[]) => void;
|
|
8
|
-
setResources: (lists: any[]) => void;
|
|
9
|
-
carts: any[];
|
|
10
|
-
summary: any;
|
|
11
|
-
setCarts: (val: any[]) => void;
|
|
12
|
-
setSummary: (val: any) => void;
|
|
13
|
-
currentStep: any;
|
|
14
|
-
setCurrentStep: (val: any) => void;
|
|
15
|
-
appHelper?: any;
|
|
16
|
-
symbolic?: any;
|
|
17
|
-
resourceOtherParams?: any;
|
|
18
|
-
setResourceOtherParams: (val: any) => void;
|
|
19
|
-
selectedTime: any;
|
|
20
|
-
setSelectedTime: (val: any) => void;
|
|
21
|
-
isAgreeDepositPolicy: boolean;
|
|
22
|
-
setIsAgreeDepositPolicy: (val: boolean) => void;
|
|
23
|
-
isLastStep: boolean;
|
|
24
|
-
tasksManager: TasksManager;
|
|
25
|
-
policyParams: any;
|
|
26
|
-
setPolicyParams: (val: any) => void;
|
|
27
|
-
openPolicy: (content: any, callback?: any) => void;
|
|
28
|
-
closePolicy: (val?: boolean) => void;
|
|
29
|
-
[key: string]: any;
|
|
30
|
-
}
|
|
31
|
-
export declare const AppointmentBookingProvider: ({ children, }: {
|
|
32
|
-
children: ReactNode;
|
|
33
|
-
}) => JSX.Element;
|
|
34
|
-
export declare const useAppointmentBookingContext: () => AppointmentBookingContextType | undefined;
|
|
35
|
-
export {};
|
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @title: 格式化holder表数据
|
|
3
|
-
* @description:
|
|
4
|
-
* @param {any} data
|
|
5
|
-
* @return {*}
|
|
6
|
-
* @Author: WangHan
|
|
7
|
-
* @Date: 2025-05-07 21:22
|
|
8
|
-
*/
|
|
9
|
-
export declare const formatHolder: (data: any[]) => any[];
|
|
10
|
-
export declare const formatGuest: (data: any[], products: any) => any[];
|
|
11
|
-
/**
|
|
12
|
-
* @title: 格式化购物车中资源上挂接的表单数据
|
|
13
|
-
* @description:
|
|
14
|
-
* @param {any} data
|
|
15
|
-
* @param {any} resources
|
|
16
|
-
* @return {*}
|
|
17
|
-
* @Author: WangHan
|
|
18
|
-
* @Date: 2025-05-06 22:22
|
|
19
|
-
*/
|
|
20
|
-
export declare const formatCartsResources: (carts: any[], resources: any[], setPolicyIds: any) => any[];
|
|
21
|
-
/**
|
|
22
|
-
* @title: 格式化购物车数据
|
|
23
|
-
* @description:
|
|
24
|
-
* @param {any} data
|
|
25
|
-
* @param {any} resources
|
|
26
|
-
* @param {any} accountLists
|
|
27
|
-
* @return {*}
|
|
28
|
-
* @Author: WangHan
|
|
29
|
-
* @Date: 2025-05-07 21:22
|
|
30
|
-
*/
|
|
31
|
-
export declare const formatCarts: (data: any[], resources: any[], utils: any, accountLists?: any) => any[];
|
|
32
|
-
/**
|
|
33
|
-
* @title: 对资源进行排序
|
|
34
|
-
* @description:
|
|
35
|
-
* @param {any} currentResourcesMap
|
|
36
|
-
* @param {any} resourceSort
|
|
37
|
-
* @return {*}
|
|
38
|
-
* @Author: WangHan
|
|
39
|
-
* @Date: 2025-04-14 11:16
|
|
40
|
-
*/
|
|
41
|
-
export declare const sortResources: (resources: any[], resourceSort: any[]) => any[] | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* @title: 处理资源列表并提取资源代码
|
|
44
|
-
* @description: 对资源列表进行排序,并提取 resourceCodes
|
|
45
|
-
* @param {any[]} resources - 原始资源列表
|
|
46
|
-
* @param {any[]} resourceSort - 资源排序配置
|
|
47
|
-
* @return {*} 返回处理后的资源列表和资源代码数组
|
|
48
|
-
* @Author: WangHan
|
|
49
|
-
* @Date: 2025-11-21 15:33
|
|
50
|
-
*/
|
|
51
|
-
export declare const processResourceList: (resources: any[], resourceSort: any[]) => {
|
|
52
|
-
resources: any[];
|
|
53
|
-
resourceCodes: any;
|
|
54
|
-
};
|
|
55
|
-
export declare const getMeAccount: (val: any[]) => any;
|
|
56
|
-
export declare const getCustomer: (utils: any) => any;
|
|
57
|
-
export declare const formatCustomer: (val: any) => {
|
|
58
|
-
id: any;
|
|
59
|
-
username: string;
|
|
60
|
-
};
|
|
61
|
-
export declare const formatCurrentUser: (utils: any) => {
|
|
62
|
-
id: any;
|
|
63
|
-
username: string;
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* @title: 定金合并的标点符号
|
|
67
|
-
* @description:
|
|
68
|
-
* @return {*}
|
|
69
|
-
* @Author: WangHan
|
|
70
|
-
* @Date: 2025-04-21 17:52
|
|
71
|
-
*/
|
|
72
|
-
export declare const getPunctuationMark: (index: number, totalLength: number, isEn: boolean) => any;
|
|
73
|
-
/**
|
|
74
|
-
* @title: 判断当前选中的资源中是否有 resource_form_id 表单id,如果有表单则下一步是选择表单
|
|
75
|
-
* @description:
|
|
76
|
-
* @param {any} array
|
|
77
|
-
* @param {any} resources
|
|
78
|
-
* @return {*}
|
|
79
|
-
* @Author: WangHan
|
|
80
|
-
* @Date: 2025-04-25 19:05
|
|
81
|
-
*/
|
|
82
|
-
export declare const hasResourceFormId: (array: any[]) => boolean | undefined;
|
|
83
|
-
export declare const formatForms: (array: any[]) => ({
|
|
84
|
-
form_id: any;
|
|
85
|
-
policy_id: any;
|
|
86
|
-
id: any;
|
|
87
|
-
cart_id: any;
|
|
88
|
-
} | null)[];
|
|
89
|
-
/**
|
|
90
|
-
* @title: 打开表单
|
|
91
|
-
* @description:
|
|
92
|
-
* @param {string} title
|
|
93
|
-
* @param {any} callback
|
|
94
|
-
* @return {*}
|
|
95
|
-
* @Author: WangHan
|
|
96
|
-
* @Date: 2025-04-26 15:26
|
|
97
|
-
*/
|
|
98
|
-
export declare const openForm: ({ form_id, title, callback, utils }: any) => void;
|
|
99
|
-
/**
|
|
100
|
-
* @title: 更新数组
|
|
101
|
-
* @description:
|
|
102
|
-
* @return {*}
|
|
103
|
-
* @Author: WangHan
|
|
104
|
-
* @Date: 2025-04-26 18:13
|
|
105
|
-
*/
|
|
106
|
-
export declare function updateLists<T extends Record<string, any>>(list: T[], key: string, value: any, newData: Partial<T>): T[];
|
|
107
|
-
/**
|
|
108
|
-
* @title: 更新表单存储
|
|
109
|
-
* @description:
|
|
110
|
-
* @param {any} bookingForm
|
|
111
|
-
* @param {number} id
|
|
112
|
-
* @param {any} newData
|
|
113
|
-
* @return {*}
|
|
114
|
-
* @Author: WangHan
|
|
115
|
-
* @Date: 2025-04-27 17:27
|
|
116
|
-
*/
|
|
117
|
-
export declare const updateBookingFormStorage: (bookingForm: any, id: number | string, newData: any) => any;
|
|
118
|
-
export declare const Toast: (text: string) => void;
|
|
119
|
-
/**
|
|
120
|
-
* @title: 添加或移除表单步骤
|
|
121
|
-
* @description:
|
|
122
|
-
* @param {any} param1
|
|
123
|
-
* @return {*}
|
|
124
|
-
* @Author: WangHan
|
|
125
|
-
* @Date: 2025-05-06 21:51
|
|
126
|
-
*/
|
|
127
|
-
export declare const checkHasFormStep: ({ setIsErrorHolder, nextStep, isSkip, checkHolder, checkAccount, carts, setCarts, hasResourceFormId, currentStep, stepList, appointmentBooking, locales, isLogin, openLoginModal, isFormSubject, utils, accountLists, getHolders }: any) => void;
|
|
128
|
-
export declare const getCartCurrentResourceData: (cart: any, currentKey: any, resources: any[]) => any;
|
|
129
|
-
/**
|
|
130
|
-
* @title: 获取购物车资源列表
|
|
131
|
-
* @description:
|
|
132
|
-
* @return {*}
|
|
133
|
-
* @Author: WangHan
|
|
134
|
-
* @Date: 2025-05-25 13:56
|
|
135
|
-
*/
|
|
136
|
-
export declare const getMultiResources: (cart: any, currentSelectedResource: any, currentKey: string) => any[];
|
|
137
|
-
export declare const getCurrentBoard: (appointmentBooking: any, code: string) => any;
|
|
138
|
-
/**
|
|
139
|
-
* @title:
|
|
140
|
-
* @description: 根据资源code获取资源标题
|
|
141
|
-
* @param {any} appointmentBooking
|
|
142
|
-
* @param {string} code
|
|
143
|
-
* @return {*}
|
|
144
|
-
* @Author: WangHan
|
|
145
|
-
* @Date: 2025-05-24 18:51
|
|
146
|
-
*/
|
|
147
|
-
export declare const getResourceTitle: (appointmentBooking: any, code: string, utils: any, originResource: any) => string;
|
|
148
|
-
/**
|
|
149
|
-
* @title: 监测购物车中是否有没有选择资源的
|
|
150
|
-
* @description:
|
|
151
|
-
* @param {any} carts
|
|
152
|
-
* @return {*}
|
|
153
|
-
* @Author: WangHan
|
|
154
|
-
* @Date: 2025-05-24 18:47
|
|
155
|
-
*/
|
|
156
|
-
export declare const checkAndMarkCartRenderError: (carts: any, appointmentBooking?: any, utils?: any) => {
|
|
157
|
-
hasError: boolean;
|
|
158
|
-
updatedCartList: any;
|
|
159
|
-
} | {
|
|
160
|
-
hasError?: undefined;
|
|
161
|
-
updatedCartList?: undefined;
|
|
162
|
-
};
|
|
163
|
-
/**
|
|
164
|
-
* @title: 查表表单步骤插入到哪个步骤的后面的key
|
|
165
|
-
* @description:
|
|
166
|
-
* @param {string} currentKey
|
|
167
|
-
* @param {any} stepList
|
|
168
|
-
* @return {*}
|
|
169
|
-
* @Author: WangHan
|
|
170
|
-
* @Date: 2025-05-24 19:05
|
|
171
|
-
*/
|
|
172
|
-
export declare const getFormInsertBeforeKey: (currentKey: string, stepList: any[]) => any;
|
|
173
|
-
/**
|
|
174
|
-
* @title: 监测holder数据
|
|
175
|
-
* @description:
|
|
176
|
-
* @param {any} isFormSubject
|
|
177
|
-
* @param {any} checkAccount
|
|
178
|
-
* @param {any} carts
|
|
179
|
-
* @return {*}
|
|
180
|
-
* @Author: WangHan
|
|
181
|
-
* @Date: 2025-05-24 22:46
|
|
182
|
-
*/
|
|
183
|
-
export declare const checkAndGoNext: (isFormSubject: any, checkAccount: any, carts: any[]) => {
|
|
184
|
-
hasError: boolean;
|
|
185
|
-
updatedCartList: any[];
|
|
186
|
-
};
|
|
187
|
-
export declare const currentAppointmentBoard: (currentKey: string, resources: any[], appointmentBooking: any) => {
|
|
188
|
-
isRequired: boolean;
|
|
189
|
-
isSystem: boolean;
|
|
190
|
-
isSkip: boolean;
|
|
191
|
-
form_id: number;
|
|
192
|
-
form_code: any;
|
|
193
|
-
cart_id: string;
|
|
194
|
-
resource_form_id: string;
|
|
195
|
-
policy_id: string;
|
|
196
|
-
} | {
|
|
197
|
-
isRequired?: undefined;
|
|
198
|
-
isSystem?: undefined;
|
|
199
|
-
isSkip?: undefined;
|
|
200
|
-
form_id?: undefined;
|
|
201
|
-
form_code?: undefined;
|
|
202
|
-
cart_id?: undefined;
|
|
203
|
-
resource_form_id?: undefined;
|
|
204
|
-
policy_id?: undefined;
|
|
205
|
-
};
|
|
206
|
-
export declare const currentRenderLists: (resources: any[], code: any) => any;
|
|
207
|
-
/**
|
|
208
|
-
* @title: 更新购物车
|
|
209
|
-
* @description:
|
|
210
|
-
* @param {any} carts
|
|
211
|
-
* @param {any} value
|
|
212
|
-
* @return {*}
|
|
213
|
-
* @Author: WangHan
|
|
214
|
-
* @Date: 2025-05-25 23:17
|
|
215
|
-
*/
|
|
216
|
-
export declare const updateCartResources: (item: any, value?: any, currentSelectedResources?: any) => any;
|
|
217
|
-
/**
|
|
218
|
-
* @title: 根据步骤key清空数据
|
|
219
|
-
* @param {string} key - 当前步骤的key
|
|
220
|
-
* @param {any} appointmentBooking - 预约预订实例
|
|
221
|
-
* @param {(times: any[]) => void} setTimes - 设置时间列表的回调函数
|
|
222
|
-
* @return {string[]} 返回需要清空的数据类型数组
|
|
223
|
-
* @Author: WangHan
|
|
224
|
-
* @Date: 2025-11-21 15:40
|
|
225
|
-
*/
|
|
226
|
-
export declare const clearDataByStepKey: (key: string, appointmentBooking: any, setTimes?: ((times: any[]) => void) | undefined) => string[] | undefined;
|
|
227
|
-
export declare const nextStepLog: (utils: any, title: string, content?: any) => void;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @title: 套餐单规格信息
|
|
3
|
-
* @description:
|
|
4
|
-
* @param {any} option
|
|
5
|
-
* @return {*}
|
|
6
|
-
* @Author: zhiwei.Wang
|
|
7
|
-
* @Date: 2024-02-19 09:26
|
|
8
|
-
*/
|
|
9
|
-
export declare const formatProductOption: (option: any) => any;
|
|
10
|
-
/**
|
|
11
|
-
* @title: 套餐信息
|
|
12
|
-
* @description:
|
|
13
|
-
* @param {any} bundle
|
|
14
|
-
* @return {*}
|
|
15
|
-
* @Author: zhiwei.Wang
|
|
16
|
-
* @Date: 2024-02-19 09:26
|
|
17
|
-
*/
|
|
18
|
-
export declare const formatProductBundle: (bundle: any) => any;
|
|
19
|
-
/**
|
|
20
|
-
* 获取子商品折扣信息
|
|
21
|
-
* @param item
|
|
22
|
-
*/
|
|
23
|
-
export declare const getBundleDiscountList: (bundle: any[]) => any[];
|
|
24
|
-
export interface ResourceItem {
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* @title: 传入资源,如果有子资源,会根据组合资源的 capacity 计算修改子资源的 capacity
|
|
29
|
-
* @description:
|
|
30
|
-
* @param {object} resource
|
|
31
|
-
* @return {*}
|
|
32
|
-
* @Author: jinglin.tan
|
|
33
|
-
*/
|
|
34
|
-
export declare const checkSubResourcesCapacity: (resource: ResourceItem) => void;
|
|
35
|
-
export declare const checkResourcesFormat: (resources: any[], service: any, isChild?: boolean) => any[];
|
|
36
|
-
/**
|
|
37
|
-
* @title: 格式化商品单价
|
|
38
|
-
* @description:
|
|
39
|
-
* @param {any} item
|
|
40
|
-
* @return {*}
|
|
41
|
-
* @Author: WangHan
|
|
42
|
-
* @Date: 2024-12-23 12:05
|
|
43
|
-
*/
|
|
44
|
-
export declare const formatProductPrice: (item: any) => number;
|
|
45
|
-
export declare const getMainProductSellingPrice: (item: any) => number | undefined;
|
|
46
|
-
export declare const formatValues: (state: any) => any;
|
|
47
|
-
export declare const checkHolderIsError: (state: any) => any;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface EditServiceRef {
|
|
4
|
-
init: (cacheItem?: any, open?: boolean, openEditProduct?: boolean) => void;
|
|
5
|
-
}
|
|
6
|
-
declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
|
|
7
|
-
export default _default;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 支付或退款
|
|
3
|
-
* @param failAction 失败回调
|
|
4
|
-
*/
|
|
5
|
-
export declare const useLinklyPayOrRefund: (handleCheck: () => boolean) => {
|
|
6
|
-
action: {
|
|
7
|
-
pay: import("ahooks/lib/useRequest/src/types").Result<any, [data: any]>;
|
|
8
|
-
};
|
|
9
|
-
payOrRefund: (resultQuery: any, handleLinklySuccess: any) => void;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* @title: 取消支付或退款
|
|
13
|
-
* @description: 取消支付或退款调用接口后不管成功还是失败都需要调用支付查询接口
|
|
14
|
-
*/
|
|
15
|
-
export declare const useLinklyCancel: (handleCheck: () => boolean) => {
|
|
16
|
-
action: {
|
|
17
|
-
cancel: import("ahooks/lib/useRequest/src/types").Result<any, [param: any]>;
|
|
18
|
-
};
|
|
19
|
-
linklyCancel: (resultQuery: any) => void;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* @title: 支付或退款签名
|
|
23
|
-
* @description: 支付或退款签名调用接口后不管成功还是失败都需要调用支付查询接口
|
|
24
|
-
*/
|
|
25
|
-
export declare const useLinklySignature: (handleCheck: () => boolean) => {
|
|
26
|
-
action: {
|
|
27
|
-
signature: import("ahooks/lib/useRequest/src/types").Result<any, [param: any]>;
|
|
28
|
-
};
|
|
29
|
-
linklySignature: (status: number, resultQuery: any) => void;
|
|
30
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { SkuValue } from '../../plus/skuOptionsSelection/types';
|
|
3
|
-
import './index.less';
|
|
4
|
-
/**
|
|
5
|
-
* @description Kiosk 商品详情(参考 Figma: Kiosk / Launchpad screen)
|
|
6
|
-
* - 默认从 URL query 读取商品 id(productId / product_id / id),内部通过 getProductDetail 拉取详情
|
|
7
|
-
* - 中间区域用 SKUOptionsSelection 做 SKU 选择
|
|
8
|
-
* - 底部用 PisellNumberSelector 做数量编辑
|
|
9
|
-
*/
|
|
10
|
-
declare function KioskSkuDetail(props: KioskSkuDetailProps): JSX.Element;
|
|
11
|
-
export default KioskSkuDetail;
|
|
12
|
-
/**
|
|
13
|
-
* @description 从原生回调 payload 中提取 productId
|
|
14
|
-
*/
|
|
15
|
-
export interface KioskSkuDetailProps {
|
|
16
|
-
/** 商品 id(可选:目前默认从 URL 读取,props 仅作为兜底以兼容老用法) */
|
|
17
|
-
productId?: number | string;
|
|
18
|
-
/**
|
|
19
|
-
* 可选:用于商品报价的日期(预约类商品)
|
|
20
|
-
* @deprecated 目前 kiosk 详情暂时固定取当天,这个参数暂不生效
|
|
21
|
-
*/
|
|
22
|
-
scheduleDate?: string;
|
|
23
|
-
/** 自定义类名 */
|
|
24
|
-
className?: string;
|
|
25
|
-
/** 自定义样式 */
|
|
26
|
-
style?: React.CSSProperties;
|
|
27
|
-
/** 返回 */
|
|
28
|
-
onBack?: () => void;
|
|
29
|
-
/** 加入购物车 */
|
|
30
|
-
onAddToCart?: (params: {
|
|
31
|
-
product: any;
|
|
32
|
-
skuValue: SkuValue;
|
|
33
|
-
quantity: number;
|
|
34
|
-
unitPrice: number;
|
|
35
|
-
total: number;
|
|
36
|
-
currencySymbol: string;
|
|
37
|
-
bookingConfig?: any;
|
|
38
|
-
}) => void;
|
|
39
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface GlobePayAliPayH5Ref {
|
|
4
|
-
init: (res: any) => void;
|
|
5
|
-
}
|
|
6
|
-
export interface GlobePayAliPayH5Props {
|
|
7
|
-
onChange?: (values: any) => void;
|
|
8
|
-
}
|
|
9
|
-
declare const _default: React.ForwardRefExoticComponent<GlobePayAliPayH5Props & React.RefAttributes<any>>;
|
|
10
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface GlobePayPaypalH5Ref {
|
|
4
|
-
init: (res: any) => void;
|
|
5
|
-
}
|
|
6
|
-
export interface GlobePayPaypalH5Props {
|
|
7
|
-
onChange?: (values: any) => void;
|
|
8
|
-
}
|
|
9
|
-
declare const _default: React.ForwardRefExoticComponent<GlobePayPaypalH5Props & React.RefAttributes<any>>;
|
|
10
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface GlobePayWxH5Ref {
|
|
4
|
-
init: (res: any) => void;
|
|
5
|
-
}
|
|
6
|
-
export interface GlobePayWxH5Props {
|
|
7
|
-
onChange?: (values: any) => void;
|
|
8
|
-
}
|
|
9
|
-
declare const _default: React.ForwardRefExoticComponent<GlobePayWxH5Props & React.RefAttributes<any>>;
|
|
10
|
-
export default _default;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
export interface TDSPayRef {
|
|
4
|
-
/** 初始化 3DS 支付流程
|
|
5
|
-
* @param res 卡信息(已保存卡含 id,新卡含表单字段)
|
|
6
|
-
* @param order 订单信息
|
|
7
|
-
* @param preCheckData 可选,外部预检查已获取的数据(跳过内部 fastPayNew / checkEnrollment)
|
|
8
|
-
*/
|
|
9
|
-
init: (res: any, order: any, preCheckData?: any) => void;
|
|
10
|
-
}
|
|
11
|
-
export interface TDSPayProps {
|
|
12
|
-
onChange?: (values: any) => void;
|
|
13
|
-
closeAll: () => void;
|
|
14
|
-
}
|
|
15
|
-
declare const _default: React.ForwardRefExoticComponent<TDSPayProps & React.RefAttributes<any>>;
|
|
16
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
|
-
interface MWCreditCardProps {
|
|
4
|
-
/** 店铺名称,用于授权说明文案 */
|
|
5
|
-
shopName?: string;
|
|
6
|
-
/** 商家联系电话(用于 3DS 错误弹窗联系方式) */
|
|
7
|
-
shopPhone?: string;
|
|
8
|
-
/** 商家联系邮箱(用于 3DS 错误弹窗联系方式) */
|
|
9
|
-
shopEmail?: string;
|
|
10
|
-
}
|
|
11
|
-
export interface MWCreditCardRef {
|
|
12
|
-
init: (res: any) => void;
|
|
13
|
-
}
|
|
14
|
-
declare const _default: React.ForwardRefExoticComponent<MWCreditCardProps & React.RefAttributes<unknown>>;
|
|
15
|
-
export default _default;
|