@pisell/private-materials 6.1.24 → 6.1.25
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/es/components/booking/components/footer/index.d.ts +1 -0
- package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info2/index.js +2 -2
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/es/components/ticketBooking/index.d.ts +1 -0
- package/es/components/ticketBooking/index.js +4 -2
- package/lib/components/booking/components/footer/index.d.ts +1 -0
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info2/index.js +5 -7
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/ticketBooking/index.js +2 -2
- package/package.json +12 -12
- package/es/components/booking/components/tabPane/index.d.ts +0 -4
- package/es/components/booking/components/voucher/index.d.ts +0 -3
- package/es/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/es/components/booking/info/addServiceVariant/index.d.ts +0 -6
- package/es/components/booking/info/client/index.d.ts +0 -4
- package/es/components/booking/info/clientVariant/utils.d.ts +0 -1
- package/es/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
- package/es/components/booking/info/index.d.ts +0 -3
- package/es/components/booking/info/service/Lists.d.ts +0 -2
- package/es/components/booking/info/service/addService/index.d.ts +0 -11
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -4
- package/es/components/booking/info/service/editService/index.d.ts +0 -7
- package/es/components/booking/info/service/serviceList/index.d.ts +0 -5
- package/es/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/es/components/booking/info/service2/Lists.d.ts +0 -2
- package/es/components/booking/info/service2/utils.d.ts +0 -251
- package/es/components/booking/info2/cartClientCard/index.d.ts +0 -6
- package/es/components/booking/info2/service/addService/index.d.ts +0 -11
- package/es/components/booking/info2/service/addService/utils.d.ts +0 -98
- package/es/components/booking/info2/service/editService/index.d.ts +0 -7
- package/es/components/booking/info2/service/index.d.ts +0 -4
- package/es/components/booking/info2/service/serviceList/index.d.ts +0 -5
- package/es/components/booking/info2/utilsByBooking.d.ts +0 -36
- package/es/components/booking/locales.d.ts +0 -906
- package/es/components/booking/materiels/duration/index.d.ts +0 -13
- package/es/components/booking/materiels/startTime/index.d.ts +0 -9
- package/es/components/booking/utils.d.ts +0 -174
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
- package/es/components/pay/toB/components/Cache/index.d.ts +0 -10
- package/es/components/pay/toB/components/Card/index.d.ts +0 -7
- package/es/components/pay/toB/components/CardGroup/index.d.ts +0 -7
- package/es/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -6
- package/es/components/pay/toB/components/Content/Footer.d.ts +0 -7
- package/es/components/pay/toB/components/Content/Header.d.ts +0 -4
- package/es/components/pay/toB/components/Content/index.d.ts +0 -4
- package/es/components/pay/toB/components/Content/utils.d.ts +0 -16
- package/es/components/pay/toB/components/index.d.ts +0 -5
- package/es/components/pay/toB/hooks.d.ts +0 -12
- package/es/components/pay/toB/index.d.ts +0 -3
- package/es/components/pay/toB/locales.d.ts +0 -54
- package/es/components/pay/toB/store/context.d.ts +0 -3
- package/es/components/pay/toB/store/hooks.d.ts +0 -15
- package/es/components/pay/toB/store/index.d.ts +0 -3
- package/es/components/pay/toB/store/provider.d.ts +0 -4
- package/es/components/pay/toB/store/utils.d.ts +0 -13
- package/es/components/pay/toB/types/index.d.ts +0 -1
- package/es/components/pay/toB/types/storeTypes.d.ts +0 -143
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -7
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -3
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -3
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -3
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
- package/es/components/productSelect/components/TabProduct/index.d.ts +0 -2
- package/es/components/productSelect/components/pisellPriceText/index.d.ts +0 -11
- package/es/components/productSelect/components/productGroup/index.d.ts +0 -38
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -3
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/es/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -13
- package/es/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/es/components/ticketBooking/locales.d.ts +0 -180
- package/es/components/ticketBooking/serve.d.ts +0 -288
- package/es/components/ticketBooking/utils/index.d.ts +0 -62
- package/es/components/walletList/index.d.ts +0 -28
- package/es/hooks/useEngineContext.d.ts +0 -3
- package/es/plus/clientCard/locales.d.ts +0 -18
- package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -2
- package/es/plus/clinetSearch/index.d.ts +0 -18
- package/es/pro/comprehensiveSearch/index.d.ts +0 -9
- package/es/pro/comprehensiveSearch/types.d.ts +0 -31
- package/es/pro/pisellPhoneKeyboard/index.d.ts +0 -12
- package/es/pro/skuDetailModal/index.d.ts +0 -5
- package/lib/components/booking/components/tabPane/index.d.ts +0 -4
- package/lib/components/booking/components/voucher/index.d.ts +0 -3
- package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +0 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -6
- package/lib/components/booking/info/client/index.d.ts +0 -4
- package/lib/components/booking/info/clientVariant/utils.d.ts +0 -1
- package/lib/components/booking/info/clientVariant/vertical/index.d.ts +0 -8
- package/lib/components/booking/info/index.d.ts +0 -3
- package/lib/components/booking/info/service/Lists.d.ts +0 -2
- package/lib/components/booking/info/service/addService/index.d.ts +0 -11
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -4
- package/lib/components/booking/info/service/editService/index.d.ts +0 -7
- package/lib/components/booking/info/service/serviceList/index.d.ts +0 -5
- package/lib/components/booking/info/service/serviceManager/index.d.ts +0 -20
- package/lib/components/booking/info/service2/Lists.d.ts +0 -2
- package/lib/components/booking/info/service2/utils.d.ts +0 -251
- package/lib/components/booking/info2/cartClientCard/index.d.ts +0 -6
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
- package/lib/components/booking/info2/service/addService/utils.d.ts +0 -98
- package/lib/components/booking/info2/service/editService/index.d.ts +0 -7
- package/lib/components/booking/info2/service/index.d.ts +0 -4
- package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -5
- package/lib/components/booking/info2/utilsByBooking.d.ts +0 -36
- package/lib/components/booking/locales.d.ts +0 -906
- package/lib/components/booking/materiels/duration/index.d.ts +0 -13
- package/lib/components/booking/materiels/startTime/index.d.ts +0 -9
- package/lib/components/booking/utils.d.ts +0 -174
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -11
- package/lib/components/pay/toB/components/Cache/index.d.ts +0 -10
- package/lib/components/pay/toB/components/Card/index.d.ts +0 -7
- package/lib/components/pay/toB/components/CardGroup/index.d.ts +0 -7
- package/lib/components/pay/toB/components/ConfirmedPayment/index.d.ts +0 -6
- package/lib/components/pay/toB/components/Content/Footer.d.ts +0 -7
- package/lib/components/pay/toB/components/Content/Header.d.ts +0 -4
- package/lib/components/pay/toB/components/Content/index.d.ts +0 -4
- package/lib/components/pay/toB/components/Content/utils.d.ts +0 -16
- package/lib/components/pay/toB/components/index.d.ts +0 -5
- package/lib/components/pay/toB/hooks.d.ts +0 -12
- package/lib/components/pay/toB/index.d.ts +0 -3
- package/lib/components/pay/toB/locales.d.ts +0 -54
- package/lib/components/pay/toB/store/context.d.ts +0 -3
- package/lib/components/pay/toB/store/hooks.d.ts +0 -15
- package/lib/components/pay/toB/store/index.d.ts +0 -3
- package/lib/components/pay/toB/store/provider.d.ts +0 -4
- package/lib/components/pay/toB/store/utils.d.ts +0 -13
- package/lib/components/pay/toB/types/index.d.ts +0 -1
- package/lib/components/pay/toB/types/storeTypes.d.ts +0 -143
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +0 -7
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -3
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -3
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -3
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -2
- package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -2
- package/lib/components/productSelect/components/pisellPriceText/index.d.ts +0 -11
- package/lib/components/productSelect/components/productGroup/index.d.ts +0 -38
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -3
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
- package/lib/components/ticketBooking/components/menuBar/index.d.ts +0 -3
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -13
- package/lib/components/ticketBooking/hooks/pisellos/useCustomer.d.ts +0 -25
- package/lib/components/ticketBooking/locales.d.ts +0 -180
- package/lib/components/ticketBooking/serve.d.ts +0 -288
- package/lib/components/ticketBooking/utils/index.d.ts +0 -62
- package/lib/components/walletList/index.d.ts +0 -28
- package/lib/hooks/useEngineContext.d.ts +0 -3
- package/lib/plus/clientCard/locales.d.ts +0 -18
- package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +0 -2
- package/lib/plus/clinetSearch/index.d.ts +0 -18
- package/lib/pro/comprehensiveSearch/index.d.ts +0 -9
- package/lib/pro/comprehensiveSearch/types.d.ts +0 -31
- package/lib/pro/pisellPhoneKeyboard/index.d.ts +0 -12
- package/lib/pro/skuDetailModal/index.d.ts +0 -5
@@ -1,13 +0,0 @@
|
|
1
|
-
import { SelectProps } from 'antd';
|
2
|
-
interface DurationProps extends SelectProps {
|
3
|
-
locale?: string;
|
4
|
-
slice?: number;
|
5
|
-
selectProps?: SelectProps;
|
6
|
-
timeObjChange?: any;
|
7
|
-
duration?: any;
|
8
|
-
usableTime?: any;
|
9
|
-
startDate?: any;
|
10
|
-
timeObj?: any;
|
11
|
-
}
|
12
|
-
declare const Duration: (props: DurationProps) => JSX.Element;
|
13
|
-
export default Duration;
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { SelectProps } from "antd";
|
2
|
-
interface StartTimeProps extends SelectProps {
|
3
|
-
locale?: string;
|
4
|
-
slice?: number;
|
5
|
-
selectProps?: SelectProps;
|
6
|
-
timeObjChange?: any;
|
7
|
-
}
|
8
|
-
declare const StartTime: (props: StartTimeProps) => JSX.Element;
|
9
|
-
export default StartTime;
|
@@ -1,174 +0,0 @@
|
|
1
|
-
import dayjs from 'dayjs';
|
2
|
-
declare type RType = (url: string, data?: {} | undefined, config?: {} | undefined) => Promise<any>;
|
3
|
-
declare class Request {
|
4
|
-
private request;
|
5
|
-
constructor();
|
6
|
-
setRequest(val: any): void;
|
7
|
-
getRequest(): {
|
8
|
-
get: RType;
|
9
|
-
post: RType;
|
10
|
-
put: RType;
|
11
|
-
remove: RType;
|
12
|
-
custom: RType;
|
13
|
-
};
|
14
|
-
}
|
15
|
-
export declare const request: Request;
|
16
|
-
/**
|
17
|
-
* @title: 格式化持续时长用于展示
|
18
|
-
* @description:
|
19
|
-
* @param {number} service_times
|
20
|
-
* @return {*}
|
21
|
-
* @Author: zhiwei.Wang
|
22
|
-
* @Date: 2024-04-26 14:00
|
23
|
-
*/
|
24
|
-
export declare const getDiscountTime: (service_times: number, isDay?: boolean) => string;
|
25
|
-
/**
|
26
|
-
* @title: 时间切片
|
27
|
-
* @description:
|
28
|
-
* @param {any} config
|
29
|
-
* @param {string} locale
|
30
|
-
* @return {*}
|
31
|
-
* @Author: zhiwei.Wang
|
32
|
-
* @Date: 2024-04-26 13:59
|
33
|
-
*/
|
34
|
-
export declare const sliceDayIntoFiveMinutes: (config: any, locale: string, isDay?: boolean) => {
|
35
|
-
timeSlices: {
|
36
|
-
label: string;
|
37
|
-
value: string;
|
38
|
-
}[];
|
39
|
-
durationSlicesBasedOnTime: {
|
40
|
-
label: string;
|
41
|
-
value: number;
|
42
|
-
}[];
|
43
|
-
};
|
44
|
-
export declare const getNowTime: () => string;
|
45
|
-
export declare const isNowTime: (time: string) => boolean;
|
46
|
-
/**
|
47
|
-
* @title: 获取服务的开始时间, 如果是now 转换为当前的时间
|
48
|
-
* @description:
|
49
|
-
* @param {string} start_time
|
50
|
-
* @return {*}
|
51
|
-
* @Author: zhiwei.Wang
|
52
|
-
* @Date: 2024-04-26 14:03
|
53
|
-
*/
|
54
|
-
export declare const getServeStartTime: (start_time: string) => string;
|
55
|
-
/**
|
56
|
-
* @title: 格式化服务的 开始时间-结束时间-时长, 用于展示
|
57
|
-
* @description:
|
58
|
-
* @param {any} item
|
59
|
-
* @param {any} currentDate
|
60
|
-
* @return {*}
|
61
|
-
* @Author: zhiwei.Wang
|
62
|
-
* @Date: 2024-04-26 14:04
|
63
|
-
*/
|
64
|
-
export declare const getServiceTime: (item: any, currentDate: any) => string;
|
65
|
-
export declare const findNextSlice: ({ timeSlices, index, date, }: {
|
66
|
-
timeSlices: any[];
|
67
|
-
index?: number | undefined;
|
68
|
-
date?: string | undefined;
|
69
|
-
}) => any;
|
70
|
-
export declare const findNextDuration: (current: any, array: any, defaultValue?: any) => any;
|
71
|
-
export declare const formatProductListByCategory: (list: any, filterItem: any) => unknown[];
|
72
|
-
export declare const getResourceTimeIsUsable: (item: any, cacheItem: any) => any;
|
73
|
-
/**
|
74
|
-
* @title: 查找是否有可用的time
|
75
|
-
* @description:
|
76
|
-
* @param {any} resourceItem
|
77
|
-
* @return {*}
|
78
|
-
* @Author: zhiwei.Wang
|
79
|
-
* @Date: 2024-01-09 13:57
|
80
|
-
*/
|
81
|
-
export declare const formatTimes: (resourceItem: any, cacheItem: any) => any;
|
82
|
-
/**
|
83
|
-
* @title: 获取店铺的营业结束时间
|
84
|
-
* @description:
|
85
|
-
* @return {*}
|
86
|
-
* @Author: zhiwei.Wang
|
87
|
-
* @Date: 2024-02-23 10:00
|
88
|
-
*/
|
89
|
-
export declare const getShopOpeningHours: () => string;
|
90
|
-
/**
|
91
|
-
* @title: 对灵活时长进行处理
|
92
|
-
* @description:
|
93
|
-
* @return {*}
|
94
|
-
* @Author: zhiwei.Wang
|
95
|
-
* @Date: 2024-02-23 10:00
|
96
|
-
*/
|
97
|
-
export declare const flexibleObj: {
|
98
|
-
create: (num: number) => any;
|
99
|
-
getValue: (str: string | number) => number;
|
100
|
-
isFlexible: (str: string | number) => boolean;
|
101
|
-
add: (current: number | string, duration: number) => any;
|
102
|
-
};
|
103
|
-
/**
|
104
|
-
* @title: 获取结束时间
|
105
|
-
* @description: 取 endDate | 店铺营业时间 最小的那一个
|
106
|
-
* @param {any} startDate
|
107
|
-
* @param {string} duration
|
108
|
-
* @param {any} endDate
|
109
|
-
* @return {*}
|
110
|
-
* @Author: zhiwei.Wang
|
111
|
-
* @Date: 2024-02-23 10:01
|
112
|
-
*/
|
113
|
-
export declare const getEndDate: (startDate: any, duration: string | number, endDate: any) => any;
|
114
|
-
export declare const getServiceTimes: (service: any) => {
|
115
|
-
startDate: dayjs.Dayjs;
|
116
|
-
endDate: dayjs.Dayjs;
|
117
|
-
};
|
118
|
-
export declare const getErrorList: (resource: any, cacheItem: any, isDay?: boolean) => {
|
119
|
-
label: any;
|
120
|
-
type: string;
|
121
|
-
}[];
|
122
|
-
/**
|
123
|
-
* @title: 格式化资源, 添加自定义参数
|
124
|
-
* @description:
|
125
|
-
* @param {any} resourceItem
|
126
|
-
* @return {*}
|
127
|
-
* @Author: zhiwei.Wang
|
128
|
-
* @Date: 2024-01-09 13:40
|
129
|
-
*/
|
130
|
-
export declare const formatResource: (resourceItem: any, cacheItem?: any, formatLabel?: any) => any;
|
131
|
-
export declare const getLastServer: (list: any) => any;
|
132
|
-
export declare const getCacheParams: () => any;
|
133
|
-
export declare const deleteCacheParams: () => void;
|
134
|
-
/**
|
135
|
-
* @title: 获取跨日预约的时长
|
136
|
-
* @description:
|
137
|
-
* @param {any} cacheItem
|
138
|
-
* @return {*}
|
139
|
-
* @Author: WangHan
|
140
|
-
* @Date: 2024-12-01 22:43
|
141
|
-
*/
|
142
|
-
export declare const getDays: (cacheItem: any, type: 'minutes' | 'days') => any;
|
143
|
-
export declare const isSessionProduct: (cacheItem: any) => boolean;
|
144
|
-
export declare const getIsEject: (item: any, type: 'select' | 'detail') => boolean;
|
145
|
-
export declare const getIsOnlySession: (item: any) => boolean;
|
146
|
-
/**
|
147
|
-
* @title: 创建一个服务商品
|
148
|
-
* @description:
|
149
|
-
* @param {any} state
|
150
|
-
* @param {any} item
|
151
|
-
* @return {*}
|
152
|
-
* @Author: zhiwei.Wang
|
153
|
-
* @Date: 2024-01-26 14:09
|
154
|
-
*/
|
155
|
-
export declare const getServerItemExtend: (state: any, cacheItem: any, timeObj: any) => any;
|
156
|
-
export declare const getProductTotalPrice: (item: any) => number;
|
157
|
-
/**
|
158
|
-
* @title: 判断 duration
|
159
|
-
* @description: 用于处理不同格式的duration
|
160
|
-
* @param {number} duration
|
161
|
-
* @return {*}
|
162
|
-
* @Author: zhiwei.Wang
|
163
|
-
* @Date: 2024-02-23 10:02
|
164
|
-
*/
|
165
|
-
export declare const getDuration: (duration: number | {
|
166
|
-
type: string;
|
167
|
-
value: number;
|
168
|
-
}) => number | "flexible" | {
|
169
|
-
type: string;
|
170
|
-
value: number;
|
171
|
-
};
|
172
|
-
export declare const isWalkIn: (customer_id?: number | string) => boolean;
|
173
|
-
export declare const getIsEdit: (state: any) => boolean;
|
174
|
-
export {};
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import './index.less';
|
2
|
-
declare type CallToBookProps = {
|
3
|
-
show: boolean;
|
4
|
-
type: string;
|
5
|
-
shop: any;
|
6
|
-
};
|
7
|
-
export declare const defaultBookingConfig: {
|
8
|
-
booking_mode_after_cut_off: string;
|
9
|
-
};
|
10
|
-
declare const CallToBook: (props: CallToBookProps) => JSX.Element | null;
|
11
|
-
export default CallToBook;
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { Order, PayMethod, PayMethodCode } from '../../types';
|
2
|
-
export declare const isEftposPay: (code: PayMethodCode) => boolean;
|
3
|
-
/**
|
4
|
-
* @title: 处理eftpos支付
|
5
|
-
* @description: 处理eftpos支付
|
6
|
-
* @param {any} action 引擎action
|
7
|
-
* @param {any} params 参数
|
8
|
-
* @param {any} successCallback 成功回调
|
9
|
-
*/
|
10
|
-
export declare const handleEftposPay: (action: any, params: {
|
11
|
-
payMethod: PayMethod;
|
12
|
-
order: Order;
|
13
|
-
symbol: string;
|
14
|
-
network: any;
|
15
|
-
type: string;
|
16
|
-
}, successCallback: (res: any) => void) => void;
|
@@ -1,5 +0,0 @@
|
|
1
|
-
export { default as ToBPayContent } from './Content';
|
2
|
-
export { default as ToBPayCard } from './Card';
|
3
|
-
export { default as ToBPayCardGroup } from './CardGroup';
|
4
|
-
export { default as ConfirmedPayment } from './ConfirmedPayment';
|
5
|
-
export { default as ToBPayCache } from './Cache';
|
@@ -1,54 +0,0 @@
|
|
1
|
-
declare const _default: {
|
2
|
-
en: {
|
3
|
-
'tobPay.text.back': string;
|
4
|
-
'tobPay.text.waitPay': string;
|
5
|
-
'tobPay.text.card.edit.amount': string;
|
6
|
-
'tobPay.text.group.normalPay': string;
|
7
|
-
'tobPay.text.group.thirdPay': string;
|
8
|
-
'tobPay.text.cancel': string;
|
9
|
-
'tobPay.text.submit': string;
|
10
|
-
'tobPay.text.confirmed.payment': string;
|
11
|
-
'tobPay.text.cash.modal.amount.toPay': string;
|
12
|
-
'tobPay.text.cash.modal.input.title': string;
|
13
|
-
'tobPay.text.cash.modal.no.change.given': string;
|
14
|
-
'tobPay.text.cash.modal.amount.pay.change': (money: string) => string;
|
15
|
-
'tobPay.text.cash.modal.amount.left.pay.paid': (money: string) => string;
|
16
|
-
'tobPay.text.cash.modal.ok': string;
|
17
|
-
'tobPay.text.payment.with.surcharge': string;
|
18
|
-
};
|
19
|
-
'zh-CN': {
|
20
|
-
'tobPay.text.back': string;
|
21
|
-
'tobPay.text.waitPay': string;
|
22
|
-
'tobPay.text.card.edit.amount': string;
|
23
|
-
'tobPay.text.group.normalPay': string;
|
24
|
-
'tobPay.text.group.thirdPay': string;
|
25
|
-
'tobPay.text.cancel': string;
|
26
|
-
'tobPay.text.submit': string;
|
27
|
-
'tobPay.text.confirmed.payment': string;
|
28
|
-
'tobPay.text.cash.modal.amount.toPay': string;
|
29
|
-
'tobPay.text.cash.modal.input.title': string;
|
30
|
-
'tobPay.text.cash.modal.no.change.given': string;
|
31
|
-
'tobPay.text.cash.modal.amount.pay.change': (money: string) => string;
|
32
|
-
'tobPay.text.cash.modal.amount.left.pay.paid': (money: string) => string;
|
33
|
-
'tobPay.text.cash.modal.ok': string;
|
34
|
-
'tobPay.text.payment.with.surcharge': string;
|
35
|
-
};
|
36
|
-
'zh-HK': {
|
37
|
-
'tobPay.text.back': string;
|
38
|
-
'tobPay.text.waitPay': string;
|
39
|
-
'tobPay.text.card.edit.amount': string;
|
40
|
-
'tobPay.text.group.normalPay': string;
|
41
|
-
'tobPay.text.group.thirdPay': string;
|
42
|
-
'tobPay.text.cancel': string;
|
43
|
-
'tobPay.text.submit': string;
|
44
|
-
'tobPay.text.confirmed.payment': string;
|
45
|
-
'tobPay.text.cash.modal.amount.toPay': string;
|
46
|
-
'tobPay.text.cash.modal.input.title': string;
|
47
|
-
'tobPay.text.cash.modal.no.change.given': string;
|
48
|
-
'tobPay.text.cash.modal.amount.pay.change': (money: string) => string;
|
49
|
-
'tobPay.text.cash.modal.amount.left.pay.paid': (money: string) => string;
|
50
|
-
'tobPay.text.cash.modal.ok': string;
|
51
|
-
'tobPay.text.payment.with.surcharge': string;
|
52
|
-
};
|
53
|
-
};
|
54
|
-
export default _default;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { ToBPayContextType } from '../types';
|
2
|
-
/**
|
3
|
-
* 使用商家端支付的Hook
|
4
|
-
* @throws {Error} 如果在ToBPayProvider外部使用会抛出错误
|
5
|
-
* @returns {ToBPayContextType} 商家端支付上下文
|
6
|
-
*/
|
7
|
-
export declare const useToBPay: () => ToBPayContextType;
|
8
|
-
export declare const useOSPayment: () => any;
|
9
|
-
/**
|
10
|
-
* 使用OS支付的Hook
|
11
|
-
*/
|
12
|
-
export declare const useOSPaymentEffect: () => {
|
13
|
-
osPaymentEffectOn: () => void;
|
14
|
-
osPaymentEffectOff: () => void;
|
15
|
-
};
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { PayMethod, PayMethodGroup } from '../types';
|
2
|
-
/**
|
3
|
-
* 处理支付方式列表
|
4
|
-
* @param payMethodList 支付方式列表
|
5
|
-
* @returns 处理后的支付方式列表
|
6
|
-
*/
|
7
|
-
export declare const handlePayMethodList: (payMethodList: PayMethod[]) => PayMethodGroup[];
|
8
|
-
/**
|
9
|
-
* inputNumber过滤
|
10
|
-
* @param value
|
11
|
-
* @returns string
|
12
|
-
*/
|
13
|
-
export declare const limitDecimals: (value: any) => any;
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './storeTypes';
|
@@ -1,143 +0,0 @@
|
|
1
|
-
export interface ToBPayContextType {
|
2
|
-
/** 订单 */
|
3
|
-
order: Order;
|
4
|
-
/** 设置订单 */
|
5
|
-
setOrder: (order: Order) => void;
|
6
|
-
/** 订单信息 */
|
7
|
-
orderInfo: OrderInfo;
|
8
|
-
/** 设置订单信息 */
|
9
|
-
setOrderInfo: (orderInfo: OrderInfo) => void;
|
10
|
-
/** 支付方式列表 */
|
11
|
-
payMethodGroupList: PayMethodGroup[];
|
12
|
-
/** 设置支付方式列表 */
|
13
|
-
setPayMethodGroupList: (payMethodGroupList: PayMethodGroup[]) => void;
|
14
|
-
/** 获取支付方式列表 */
|
15
|
-
getPayMethodList: () => Promise<void>;
|
16
|
-
}
|
17
|
-
/**
|
18
|
-
* OS支付的订单信息
|
19
|
-
*/
|
20
|
-
export interface Order {
|
21
|
-
/** 订单唯一标识 */
|
22
|
-
uuid: string;
|
23
|
-
/** 订单 id */
|
24
|
-
id: number;
|
25
|
-
/** 订单信息 */
|
26
|
-
order_info: OrderInfo;
|
27
|
-
/** 作废的支付项 */
|
28
|
-
adjust_offline_payments: any[];
|
29
|
-
/** 支付项 */
|
30
|
-
payment: Payment[];
|
31
|
-
/** 支付状态 */
|
32
|
-
payment_status: string;
|
33
|
-
/** 税费 */
|
34
|
-
tax_fee: string;
|
35
|
-
/** 订单总金额 */
|
36
|
-
total_amount: string;
|
37
|
-
/** 待付金额 */
|
38
|
-
expect_amount: string;
|
39
|
-
}
|
40
|
-
/**
|
41
|
-
* 订单信息
|
42
|
-
*/
|
43
|
-
export interface OrderInfo {
|
44
|
-
/** 订单 id */
|
45
|
-
order_id: number;
|
46
|
-
/** 订单总金额 */
|
47
|
-
total_amount: string;
|
48
|
-
/** 是否是定金订单 */
|
49
|
-
is_deposit: 0 | 1;
|
50
|
-
/** 定金金额 */
|
51
|
-
deposit_amount: string;
|
52
|
-
}
|
53
|
-
/**
|
54
|
-
* 支付方式
|
55
|
-
*/
|
56
|
-
export interface PayMethod {
|
57
|
-
/** 支付方式 id */
|
58
|
-
id: number;
|
59
|
-
/** 店铺 id */
|
60
|
-
shop_id: number;
|
61
|
-
/** 支付方式代码 */
|
62
|
-
code: PayMethodCode;
|
63
|
-
/** 支付方式类型 */
|
64
|
-
type: string;
|
65
|
-
/** 支付方式名称 */
|
66
|
-
name: string;
|
67
|
-
/** 支付方式描述 */
|
68
|
-
description: string;
|
69
|
-
/** 支付方式通道 */
|
70
|
-
channel_application: string[];
|
71
|
-
/** 支付方式状态 */
|
72
|
-
status: 0 | 1;
|
73
|
-
/** 是否是附加费用 */
|
74
|
-
is_surcharge: 0 | 1;
|
75
|
-
/** 是否禁用 */
|
76
|
-
disable: 0 | 1;
|
77
|
-
/** 支付方式公司 */
|
78
|
-
companies: any;
|
79
|
-
/** 支付方式额外数据 */
|
80
|
-
metadata?: {
|
81
|
-
order_rounding_switch: number;
|
82
|
-
};
|
83
|
-
/** 创建时间 */
|
84
|
-
created_at: string;
|
85
|
-
/** 更新时间 */
|
86
|
-
updated_at: string;
|
87
|
-
/** 删除时间 */
|
88
|
-
deleted_at: string | null;
|
89
|
-
/** 固定费用 */
|
90
|
-
fixed: string;
|
91
|
-
/** 百分比费用 */
|
92
|
-
percentage: string;
|
93
|
-
}
|
94
|
-
export declare enum PayMethodCode {
|
95
|
-
/** 现金支付 */
|
96
|
-
CASHMANUAL = "CASHMANUAL",
|
97
|
-
/** eftpos payo */
|
98
|
-
EFTPOS_PAYO = "EFTPOS_PAYO",
|
99
|
-
/** eftpos windcave */
|
100
|
-
EFTPOS_WINDCAVE = "EFTPOS_WINDCAVE",
|
101
|
-
/** eftpos tyro */
|
102
|
-
EFTPOS_TYRO = "EFTPOS_TYRO",
|
103
|
-
/** eftpos linkly */
|
104
|
-
EFTPOS_LINKLY = "EFTPOS_LINKLY"
|
105
|
-
}
|
106
|
-
export interface PayMethodGroup {
|
107
|
-
title: string;
|
108
|
-
list: PayMethod[];
|
109
|
-
}
|
110
|
-
/**
|
111
|
-
* 已经支付的信息
|
112
|
-
*/
|
113
|
-
export interface Payment {
|
114
|
-
/** 当前支付项的唯一 ID,用于标记支付项的唯一性 */
|
115
|
-
uuid: string;
|
116
|
-
/** 当前支付方式付出去多少钱 */
|
117
|
-
amount: number;
|
118
|
-
/** 支付类型,跟支付列表上对应的支付方式保持一致 */
|
119
|
-
code: PayMethodCode;
|
120
|
-
/** 支付类型id,跟支付列表上对应的支付方式保持一致 */
|
121
|
-
id: number;
|
122
|
-
/** 支付类型id,跟支付列表上对应的支付方式保持一致 */
|
123
|
-
name: string;
|
124
|
-
/** 支付类型type,跟支付列表上对应的支付方式保持一致 */
|
125
|
-
type: string;
|
126
|
-
/** 代金券、充值卡、积分卡 等wallet pass id,通过order/deduction 查出来的,本期都为空 */
|
127
|
-
voucher_id?: string | null;
|
128
|
-
/** 该支付项是否已经同步给后端 */
|
129
|
-
isSynced?: boolean;
|
130
|
-
/** 支付时间 */
|
131
|
-
created_at?: string;
|
132
|
-
/** 支付方式额外数据 */
|
133
|
-
metadata?: {
|
134
|
-
unique_payment_number: string;
|
135
|
-
};
|
136
|
-
/** 手续费 */
|
137
|
-
service_charge?: {
|
138
|
-
/** 手续费百分比 */
|
139
|
-
percentage?: number | string;
|
140
|
-
/** 手续费固定金额 */
|
141
|
-
amount?: number | string;
|
142
|
-
};
|
143
|
-
}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import './index.less';
|
3
|
-
declare type PaymentStatusProps = {
|
4
|
-
onChange: (status: 'succeeded' | 'processing' | 'requires_payment_method' | 'error') => void;
|
5
|
-
};
|
6
|
-
declare const PaymentStatus: React.FC<PaymentStatusProps>;
|
7
|
-
export default PaymentStatus;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
interface IProps {
|
3
|
-
value: string | number;
|
4
|
-
isMini?: boolean;
|
5
|
-
className?: string;
|
6
|
-
style?: React.CSSProperties;
|
7
|
-
prefix?: React.ReactElement;
|
8
|
-
suffix?: React.ReactElement;
|
9
|
-
}
|
10
|
-
declare const index: (props: IProps) => JSX.Element;
|
11
|
-
export default index;
|
@@ -1,38 +0,0 @@
|
|
1
|
-
import './index.less';
|
2
|
-
declare type BoolConfigVal = 0 | 1;
|
3
|
-
export interface ProductCardConfig {
|
4
|
-
isProductCover: BoolConfigVal;
|
5
|
-
imgWidth: string;
|
6
|
-
imgHeight: string;
|
7
|
-
radius?: number;
|
8
|
-
isTitle: BoolConfigVal;
|
9
|
-
isSubtitle: BoolConfigVal;
|
10
|
-
showSpec: boolean;
|
11
|
-
isTag: BoolConfigVal;
|
12
|
-
isPrice: BoolConfigVal;
|
13
|
-
isOriginPrice: BoolConfigVal;
|
14
|
-
showZeroPrice: boolean;
|
15
|
-
showMarketingTag: boolean;
|
16
|
-
showRemark: boolean;
|
17
|
-
isStock: BoolConfigVal;
|
18
|
-
list_max_length: 0 | 1;
|
19
|
-
}
|
20
|
-
interface ProductGroupProps {
|
21
|
-
data: {
|
22
|
-
icon: string;
|
23
|
-
id: number;
|
24
|
-
name: string;
|
25
|
-
products: any[];
|
26
|
-
slug: string;
|
27
|
-
sort: number;
|
28
|
-
};
|
29
|
-
layout: {
|
30
|
-
grid: boolean;
|
31
|
-
config?: string;
|
32
|
-
};
|
33
|
-
onSelectProduct?: (id: number) => void;
|
34
|
-
currentProductId?: number;
|
35
|
-
}
|
36
|
-
declare const ProductGroup: ({ data, layout, onSelectProduct, currentProductId, isProductCover, imgWidth, imgHeight, radius, isTitle, isSubtitle, showSpec, isTag, isPrice, isOriginPrice, showZeroPrice, showMarketingTag, showRemark, isStock, }: ProductGroupProps & ProductCardConfig) => JSX.Element;
|
37
|
-
export declare const ProductGroupSkeleton: ({ layout }: any) => JSX.Element;
|
38
|
-
export default ProductGroup;
|