@pisell/private-materials 6.3.33 → 6.3.35
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 +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +23 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +23 -8
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/components/customSelect/index.js +18 -3
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/index.d.ts +1 -2
- package/es/components/index.js +1 -2
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/wallet/Detail/model.d.ts +13 -1
- package/es/components/wallet/DiscountCard/model.d.ts +14 -1
- package/es/components/wallet/PointCard/model.d.ts +13 -1
- package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/es/components/wallet/Voucher/model.d.ts +13 -1
- package/es/components/wallet/model.d.ts +9 -1
- package/es/components/walletList/index.d.ts +0 -25
- package/es/components/walletList/index.js +98 -66
- package/es/components/walletList/serve.d.ts +4 -0
- package/es/components/walletList/serve.js +46 -13
- package/es/components/walletList/types/index.d.ts +12 -12
- package/es/components/walletList/types/index.js +2 -2
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/es/plus/productSelect/CategoryTabs/index.d.ts +2 -0
- package/es/plus/productSelect/CategoryTabs/index.js +6 -3
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.less +0 -11
- package/es/plus/productSelect/utils.js +0 -1
- package/es/plus/walletEditor/WalletEditor.d.ts +5 -0
- package/es/plus/walletEditor/WalletEditor.js +316 -0
- package/es/plus/walletEditor/WalletEditor.less +129 -0
- package/es/plus/walletEditor/components/ImageUpload/index.d.ts +8 -0
- package/es/plus/walletEditor/components/ImageUpload/index.js +223 -0
- package/es/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
- package/es/plus/walletEditor/components/JsonEditor/index.js +68 -0
- package/es/plus/walletEditor/components/JsonEditor/index.less +4 -0
- package/es/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
- package/es/plus/walletEditor/components/ValidityPeriodSelector/index.js +222 -0
- package/es/plus/walletEditor/components/ValidityPeriodSelector/index.less +4 -0
- package/es/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
- package/es/plus/walletEditor/components/relationProduct/index.js +49 -0
- package/es/plus/walletEditor/components/relationProduct/index.less +15 -0
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +37 -0
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.js +193 -0
- package/es/plus/walletEditor/components/sortableWalletPassTypes/index.less +110 -0
- package/es/plus/walletEditor/index.d.ts +3 -0
- package/es/plus/walletEditor/index.js +3 -0
- package/es/plus/walletEditor/locales.d.ts +126 -0
- package/es/plus/walletEditor/locales.js +143 -0
- package/es/plus/walletEditor/types.d.ts +52 -0
- package/es/plus/walletEditor/types.js +1 -0
- package/es/plus/walletPassGallery/components/footerButton/index.d.ts +14 -0
- package/es/plus/walletPassGallery/components/footerButton/index.js +247 -0
- package/es/plus/walletPassGallery/components/footerButton/index.less +93 -0
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
- package/es/plus/walletPassGallery/components/passDetail/index.js +274 -0
- package/es/plus/walletPassGallery/components/passDetail/index.less +57 -0
- package/es/plus/walletPassGallery/components/passList/index.d.ts +11 -0
- package/es/plus/walletPassGallery/components/passList/index.js +115 -0
- package/es/plus/walletPassGallery/components/recharge/index.d.ts +11 -0
- package/es/plus/walletPassGallery/components/recharge/index.js +134 -0
- package/es/plus/walletPassGallery/components/recharge/index.less +16 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +8 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.js +176 -0
- package/es/plus/walletPassGallery/components/timelineSection/index.less +67 -0
- package/es/plus/walletPassGallery/components/usageRule/index.d.ts +9 -0
- package/es/plus/walletPassGallery/components/usageRule/index.js +248 -0
- package/es/plus/walletPassGallery/components/usageRule/index.less +157 -0
- package/es/plus/walletPassGallery/index.d.ts +6 -0
- package/es/plus/walletPassGallery/index.js +602 -0
- package/es/plus/walletPassGallery/index.less +115 -0
- package/es/plus/walletPassGallery/locales.d.ts +270 -0
- package/es/plus/walletPassGallery/locales.js +279 -0
- package/es/plus/walletPassGallery/serve.d.ts +218 -0
- package/es/plus/walletPassGallery/serve.js +289 -0
- package/es/pro/Login2.0/Login2.js +8 -1
- package/es/pro/Login2.0/locales.js +93 -93
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/components/customSelect/index.js +22 -3
- package/lib/components/booking/forms/model.d.ts +10 -1
- package/lib/components/booking/info/model.d.ts +10 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/model.d.ts +9 -1
- package/lib/components/booking/notes/model.d.ts +10 -1
- package/lib/components/booking/payments/model.d.ts +10 -1
- package/lib/components/index.d.ts +1 -2
- package/lib/components/index.js +0 -3
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/wallet/Detail/model.d.ts +13 -1
- package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
- package/lib/components/wallet/PointCard/model.d.ts +13 -1
- package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
- package/lib/components/wallet/Voucher/model.d.ts +13 -1
- package/lib/components/wallet/model.d.ts +9 -1
- package/lib/components/walletList/index.d.ts +0 -25
- package/lib/components/walletList/index.js +90 -51
- package/lib/components/walletList/serve.d.ts +4 -0
- package/lib/components/walletList/serve.js +12 -0
- package/lib/components/walletList/types/index.d.ts +12 -12
- package/lib/index.d.ts +2 -1
- package/lib/index.js +6 -3
- package/lib/plus/productSelect/CategoryTabs/index.d.ts +2 -0
- package/lib/plus/productSelect/CategoryTabs/index.js +84 -69
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.less +0 -11
- package/lib/plus/productSelect/utils.js +0 -1
- package/lib/plus/walletEditor/WalletEditor.d.ts +5 -0
- package/lib/plus/walletEditor/WalletEditor.js +354 -0
- package/lib/plus/walletEditor/WalletEditor.less +129 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +8 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.js +201 -0
- package/lib/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
- package/lib/plus/walletEditor/components/JsonEditor/index.js +89 -0
- package/lib/plus/walletEditor/components/JsonEditor/index.less +4 -0
- package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
- package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.js +176 -0
- package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.less +4 -0
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
- package/lib/plus/walletEditor/components/relationProduct/index.js +73 -0
- package/lib/plus/walletEditor/components/relationProduct/index.less +15 -0
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +37 -0
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.js +211 -0
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.less +110 -0
- package/lib/plus/walletEditor/index.d.ts +3 -0
- package/lib/plus/walletEditor/index.js +42 -0
- package/lib/plus/walletEditor/locales.d.ts +126 -0
- package/lib/plus/walletEditor/locales.js +167 -0
- package/lib/plus/walletEditor/types.d.ts +52 -0
- package/lib/plus/walletEditor/types.js +17 -0
- package/lib/plus/walletPassGallery/components/footerButton/index.d.ts +14 -0
- package/lib/plus/walletPassGallery/components/footerButton/index.js +187 -0
- package/lib/plus/walletPassGallery/components/footerButton/index.less +93 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.js +287 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.less +57 -0
- package/lib/plus/walletPassGallery/components/passList/index.d.ts +11 -0
- package/lib/plus/walletPassGallery/components/passList/index.js +136 -0
- package/lib/plus/walletPassGallery/components/recharge/index.d.ts +11 -0
- package/lib/plus/walletPassGallery/components/recharge/index.js +146 -0
- package/lib/plus/walletPassGallery/components/recharge/index.less +16 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +8 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.js +212 -0
- package/lib/plus/walletPassGallery/components/timelineSection/index.less +67 -0
- package/lib/plus/walletPassGallery/components/usageRule/index.d.ts +9 -0
- package/lib/plus/walletPassGallery/components/usageRule/index.js +209 -0
- package/lib/plus/walletPassGallery/components/usageRule/index.less +157 -0
- package/lib/plus/walletPassGallery/index.d.ts +6 -0
- package/lib/plus/walletPassGallery/index.js +498 -0
- package/lib/plus/walletPassGallery/index.less +115 -0
- package/lib/plus/walletPassGallery/locales.d.ts +270 -0
- package/lib/plus/walletPassGallery/locales.js +299 -0
- package/lib/plus/walletPassGallery/serve.d.ts +218 -0
- package/lib/plus/walletPassGallery/serve.js +98 -0
- package/lib/pro/Login2.0/Login2.js +6 -0
- package/lib/pro/Login2.0/locales.js +93 -93
- package/lowcode/sortable-wallet-pass-types/meta.ts +267 -0
- package/lowcode/wallet-editor/meta.ts +57 -0
- package/lowcode/wallet-editor/snippets.ts +13 -0
- package/lowcode/wallet-pass-gallery/meta.ts +35 -0
- package/package.json +3 -3
- package/lowcode/wallet/meta.ts +0 -79
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 钱包列表查询参数接口
|
|
3
|
+
*/
|
|
4
|
+
export interface IWalletListParmsProps {
|
|
5
|
+
tags?: string[];
|
|
6
|
+
sales_status?: 1 | 0 | -1;
|
|
7
|
+
machine_search?: string;
|
|
8
|
+
createdDate?: string;
|
|
9
|
+
limit_status?: string;
|
|
10
|
+
relation_id?: string;
|
|
11
|
+
relation_type?: string;
|
|
12
|
+
customer_id?: number;
|
|
13
|
+
sort?: 'desc' | 'asc';
|
|
14
|
+
order_by?: string;
|
|
15
|
+
used_status?: string;
|
|
16
|
+
num?: number;
|
|
17
|
+
skip?: number;
|
|
18
|
+
filter_wallet_id?: string;
|
|
19
|
+
available: 0 | 1;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* 钱包列表项属性接口
|
|
23
|
+
*/
|
|
24
|
+
export interface IWalletListItemProps {
|
|
25
|
+
id?: number | string;
|
|
26
|
+
encoded?: string;
|
|
27
|
+
code?: string;
|
|
28
|
+
limit_status?: string;
|
|
29
|
+
customer_id?: number;
|
|
30
|
+
generate_method?: 'not_settable' | 'before_order' | 'after_order';
|
|
31
|
+
created_at?: string;
|
|
32
|
+
product_id?: number;
|
|
33
|
+
sales_status?: 1 | 0;
|
|
34
|
+
tag?: string;
|
|
35
|
+
status?: string;
|
|
36
|
+
redeemed_at?: string;
|
|
37
|
+
collection_time?: string;
|
|
38
|
+
order_id?: number;
|
|
39
|
+
par_value?: string;
|
|
40
|
+
write_status?: number;
|
|
41
|
+
expire_date?: string;
|
|
42
|
+
balance?: string;
|
|
43
|
+
extension_id?: string;
|
|
44
|
+
product_title?: string;
|
|
45
|
+
product_cover?: string;
|
|
46
|
+
product?: IProductProps;
|
|
47
|
+
unified_available_status?: 0 | 1;
|
|
48
|
+
unified_error_code?: number;
|
|
49
|
+
shop: IShop;
|
|
50
|
+
unified_messages: any;
|
|
51
|
+
machinecode_config?: {
|
|
52
|
+
hide_recharge?: number;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* 商店信息接口
|
|
57
|
+
*/
|
|
58
|
+
export interface IShop {
|
|
59
|
+
name: string;
|
|
60
|
+
id: number;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* 商品属性接口
|
|
64
|
+
*/
|
|
65
|
+
export interface IProductProps {
|
|
66
|
+
id?: number;
|
|
67
|
+
title?: string;
|
|
68
|
+
description?: string;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* API响应接口
|
|
72
|
+
*/
|
|
73
|
+
export interface ApiResponse<T> {
|
|
74
|
+
data: T;
|
|
75
|
+
code?: number;
|
|
76
|
+
message?: string;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* 错误处理函数类型
|
|
80
|
+
*/
|
|
81
|
+
export declare type ErrorCallback = () => void;
|
|
82
|
+
/**
|
|
83
|
+
* 获取钱包列表
|
|
84
|
+
* @param params 查询参数
|
|
85
|
+
* @returns Promise<{list: IWalletListItemProps[], count: number}> 钱包列表和总数
|
|
86
|
+
* @throws 请求失败时抛出错误
|
|
87
|
+
*/
|
|
88
|
+
export declare const getWalletList: (params?: IWalletListParmsProps) => Promise<{
|
|
89
|
+
list: IWalletListItemProps[];
|
|
90
|
+
count: number;
|
|
91
|
+
}>;
|
|
92
|
+
/**
|
|
93
|
+
* 通过code绑定客户
|
|
94
|
+
* @param params 请求参数,包含code
|
|
95
|
+
* @param errCallback 错误回调
|
|
96
|
+
* @returns Promise<any> 绑定结果
|
|
97
|
+
*/
|
|
98
|
+
export declare const bindCodeToCustomer: (params: {
|
|
99
|
+
code: string;
|
|
100
|
+
}) => Promise<any>;
|
|
101
|
+
/**
|
|
102
|
+
* 用户根据code查询待绑定识别码列表
|
|
103
|
+
* @param params 请求参数,包含code和tag
|
|
104
|
+
* @param errCallback 错误回调函数
|
|
105
|
+
* @returns Promise<IWalletListItemProps[] | null> 未绑定的钱包卡列表
|
|
106
|
+
*/
|
|
107
|
+
export declare const getUnbindList: (params: {
|
|
108
|
+
code: string;
|
|
109
|
+
tag?: string;
|
|
110
|
+
}) => Promise<IWalletListItemProps[] | null>;
|
|
111
|
+
/**
|
|
112
|
+
* 下单请求参数接口
|
|
113
|
+
*/
|
|
114
|
+
export interface IOrderParams {
|
|
115
|
+
voucher_id: string;
|
|
116
|
+
product_id: string;
|
|
117
|
+
product_variant_id: string;
|
|
118
|
+
quantity: number;
|
|
119
|
+
type: string;
|
|
120
|
+
platform: string;
|
|
121
|
+
currency_code: {
|
|
122
|
+
currency_code: string;
|
|
123
|
+
currency_symbol: string;
|
|
124
|
+
currency_format: string;
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* 下单
|
|
129
|
+
* @param params 下单参数
|
|
130
|
+
* @returns Promise<any> 下单结果
|
|
131
|
+
* @throws 请求失败时抛出错误
|
|
132
|
+
*/
|
|
133
|
+
export declare const goOrder: (params: IOrderParams) => Promise<any>;
|
|
134
|
+
/**
|
|
135
|
+
* 设置请求对象
|
|
136
|
+
* @param req 请求对象
|
|
137
|
+
*/
|
|
138
|
+
export declare const setRequest: (req: any) => void;
|
|
139
|
+
interface IAssetListProps {
|
|
140
|
+
skip?: string;
|
|
141
|
+
num?: string;
|
|
142
|
+
card_id?: string;
|
|
143
|
+
sourceType?: string;
|
|
144
|
+
business_object?: string;
|
|
145
|
+
tag?: string;
|
|
146
|
+
}
|
|
147
|
+
export interface IAssetItem {
|
|
148
|
+
id?: string;
|
|
149
|
+
tag?: 'gift_card' | 'product_voucher' | 'point_card' | 'product_discount_card';
|
|
150
|
+
shop_id?: string;
|
|
151
|
+
transaction_id?: string;
|
|
152
|
+
title?: string;
|
|
153
|
+
created_at?: string;
|
|
154
|
+
amount?: string;
|
|
155
|
+
balance?: string;
|
|
156
|
+
currency_symbol?: string;
|
|
157
|
+
action?: 'recharge' | 'order_expend' | 'order_refund' | 'expire';
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* 资产明细列表
|
|
161
|
+
* @param params 接口请求参数
|
|
162
|
+
* @returns 资产明细列表
|
|
163
|
+
*/
|
|
164
|
+
export declare const getAssetList: (params: IAssetListProps) => Promise<{
|
|
165
|
+
list: IAssetItem[];
|
|
166
|
+
}>;
|
|
167
|
+
/**
|
|
168
|
+
* 获取资产详情
|
|
169
|
+
* @param params 接口请求参数
|
|
170
|
+
* @returns 资产详情
|
|
171
|
+
*/
|
|
172
|
+
export declare const getDetailApi: (params: {
|
|
173
|
+
id: string;
|
|
174
|
+
}) => Promise<IDetailResponse>;
|
|
175
|
+
/**
|
|
176
|
+
* 详情响应数据结构,供组件消费
|
|
177
|
+
*/
|
|
178
|
+
export interface IDetailResponse {
|
|
179
|
+
detailId?: string;
|
|
180
|
+
productId?: string;
|
|
181
|
+
gift_option?: Array<{
|
|
182
|
+
id: string;
|
|
183
|
+
name: string;
|
|
184
|
+
gift_price: number;
|
|
185
|
+
price: number;
|
|
186
|
+
variant_id?: string;
|
|
187
|
+
}>;
|
|
188
|
+
[key: string]: any;
|
|
189
|
+
}
|
|
190
|
+
interface OrderParams {
|
|
191
|
+
voucher_id: string;
|
|
192
|
+
product_id: string;
|
|
193
|
+
product_variant_id: string;
|
|
194
|
+
quantity: number;
|
|
195
|
+
type: string;
|
|
196
|
+
platform: string;
|
|
197
|
+
currency_code: {
|
|
198
|
+
currency_code: string;
|
|
199
|
+
currency_symbol: string;
|
|
200
|
+
currency_format: string;
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
interface OrderResponse {
|
|
204
|
+
order_id: string;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* 下单接口
|
|
208
|
+
* @param params - 订单参数
|
|
209
|
+
* @returns 订单响应数据
|
|
210
|
+
*/
|
|
211
|
+
export declare const orderRechargeProduct: (params: OrderParams) => Promise<OrderResponse>;
|
|
212
|
+
/**
|
|
213
|
+
* @desc: 获取钱包信息
|
|
214
|
+
* @author: Arthur
|
|
215
|
+
* @date: 2025-11-03 15:30
|
|
216
|
+
*/
|
|
217
|
+
export declare const getWalletDetail: (id: string | number) => Promise<any>;
|
|
218
|
+
export {};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/plus/walletPassGallery/serve.ts
|
|
20
|
+
var serve_exports = {};
|
|
21
|
+
__export(serve_exports, {
|
|
22
|
+
bindCodeToCustomer: () => bindCodeToCustomer,
|
|
23
|
+
getAssetList: () => getAssetList,
|
|
24
|
+
getDetailApi: () => getDetailApi,
|
|
25
|
+
getUnbindList: () => getUnbindList,
|
|
26
|
+
getWalletDetail: () => getWalletDetail,
|
|
27
|
+
getWalletList: () => getWalletList,
|
|
28
|
+
goOrder: () => goOrder,
|
|
29
|
+
orderRechargeProduct: () => orderRechargeProduct,
|
|
30
|
+
setRequest: () => setRequest
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(serve_exports);
|
|
33
|
+
var import_utils = require("../../utils");
|
|
34
|
+
var import_utils2 = require("@pisell/utils");
|
|
35
|
+
var getWalletList = async (params) => {
|
|
36
|
+
try {
|
|
37
|
+
const { data } = await import_utils.request.getRequest().get(`/h5/machinecode/lowcode/list`, params);
|
|
38
|
+
return data || { list: [], count: 0 };
|
|
39
|
+
} catch (error) {
|
|
40
|
+
console.error(
|
|
41
|
+
import_utils2.locales.getText("wallet-pass-gallery.log.getWalletListFailed"),
|
|
42
|
+
error
|
|
43
|
+
);
|
|
44
|
+
return { list: [], count: 0 };
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
var bindCodeToCustomer = async (params) => {
|
|
48
|
+
const { data } = await import_utils.request.getRequest().put(`/h5/voucher/bind/customer`, params);
|
|
49
|
+
return data;
|
|
50
|
+
};
|
|
51
|
+
var getUnbindList = async (params) => {
|
|
52
|
+
const { data } = await import_utils.request.getRequest().get(`/h5/machinecode/unbind/list`, params);
|
|
53
|
+
return data;
|
|
54
|
+
};
|
|
55
|
+
var goOrder = async (params) => {
|
|
56
|
+
try {
|
|
57
|
+
const { data } = await import_utils.request.getRequest().post(`/h5/store/order/add`, params);
|
|
58
|
+
return data;
|
|
59
|
+
} catch (error) {
|
|
60
|
+
console.error(import_utils2.locales.getText("wallet-pass-gallery.log.orderFailed"), error);
|
|
61
|
+
throw error;
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
var setRequest = (req) => {
|
|
65
|
+
import_utils.request.setRequest(req);
|
|
66
|
+
};
|
|
67
|
+
var getAssetList = async (params) => {
|
|
68
|
+
const { data } = await import_utils.request.getRequest().get(`/h5/pay/asset/lowcode/list`, params);
|
|
69
|
+
return data;
|
|
70
|
+
};
|
|
71
|
+
var getDetailApi = async (params) => {
|
|
72
|
+
const { data } = await import_utils.request.getRequest().get(`/h5/machinecode/lowcode/detail/${params.id}`, {
|
|
73
|
+
order_behavior_count: 1,
|
|
74
|
+
// 订单行为次数
|
|
75
|
+
order_behavior_count_customer: 1
|
|
76
|
+
// 客户订单行为次数
|
|
77
|
+
});
|
|
78
|
+
return data;
|
|
79
|
+
};
|
|
80
|
+
var orderRechargeProduct = async (params) => {
|
|
81
|
+
const { data } = await import_utils.request.getRequest().post(`/h5/order/order`, params);
|
|
82
|
+
return data;
|
|
83
|
+
};
|
|
84
|
+
var getWalletDetail = async (id) => {
|
|
85
|
+
return import_utils.request.getRequest().get(`/h5/wallet/${id}`, {});
|
|
86
|
+
};
|
|
87
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
88
|
+
0 && (module.exports = {
|
|
89
|
+
bindCodeToCustomer,
|
|
90
|
+
getAssetList,
|
|
91
|
+
getDetailApi,
|
|
92
|
+
getUnbindList,
|
|
93
|
+
getWalletDetail,
|
|
94
|
+
getWalletList,
|
|
95
|
+
goOrder,
|
|
96
|
+
orderRechargeProduct,
|
|
97
|
+
setRequest
|
|
98
|
+
});
|
|
@@ -100,6 +100,7 @@ var Login2 = ({
|
|
|
100
100
|
);
|
|
101
101
|
const [currentLoginMethod, setCurrentLoginMethod] = (0, import_react.useState)(null);
|
|
102
102
|
const [currentVerificationMethod, setCurrentVerificationMethod] = (0, import_react.useState)("password");
|
|
103
|
+
const hasTriggeredGuestLoginRef = (0, import_react.useRef)(false);
|
|
103
104
|
(0, import_react.useEffect)(() => {
|
|
104
105
|
var _a2;
|
|
105
106
|
if (loginMethods.length > 0 && !currentLoginMethod) {
|
|
@@ -114,6 +115,11 @@ var Login2 = ({
|
|
|
114
115
|
);
|
|
115
116
|
}
|
|
116
117
|
}
|
|
118
|
+
if (hasTriggeredGuestLoginRef.current) return;
|
|
119
|
+
const hasOnlyGuest = loginMethods.length === 1 && loginMethods[0].type === "guest";
|
|
120
|
+
if (!hasOnlyGuest) return;
|
|
121
|
+
hasTriggeredGuestLoginRef.current = true;
|
|
122
|
+
handleGuestLogin();
|
|
117
123
|
}, [loginMethods, currentLoginMethod]);
|
|
118
124
|
(0, import_react.useEffect)(() => {
|
|
119
125
|
if (((currentLoginMethod == null ? void 0 : currentLoginMethod.type) === "email" || (currentLoginMethod == null ? void 0 : currentLoginMethod.type) === "phone") && currentVerificationMethod === "password") {
|
|
@@ -124,38 +124,38 @@ var locales_default = {
|
|
|
124
124
|
"pisell-phone-validation-required": "Please enter your phone",
|
|
125
125
|
"pisell-phone-validation-invalid": "Please enter a valid phone",
|
|
126
126
|
"pisell-phone-validation-invalid-format": "Please enter a valid phone",
|
|
127
|
-
"pisell-phone-validation-china": "Please enter a valid Chinese phone
|
|
128
|
-
"pisell-phone-validation-hongkong": "Please enter a valid Hong Kong phone
|
|
129
|
-
"pisell-phone-validation-macau": "Please enter a valid Macau phone
|
|
130
|
-
"pisell-phone-validation-taiwan": "Please enter a valid Taiwan phone
|
|
131
|
-
"pisell-phone-validation-us-canada": "Please enter a valid US/Canada phone
|
|
132
|
-
"pisell-phone-validation-uk": "Please enter a valid UK phone
|
|
127
|
+
"pisell-phone-validation-china": "Please enter a valid Chinese phone",
|
|
128
|
+
"pisell-phone-validation-hongkong": "Please enter a valid Hong Kong phone",
|
|
129
|
+
"pisell-phone-validation-macau": "Please enter a valid Macau phone",
|
|
130
|
+
"pisell-phone-validation-taiwan": "Please enter a valid Taiwan phone",
|
|
131
|
+
"pisell-phone-validation-us-canada": "Please enter a valid US/Canada phone",
|
|
132
|
+
"pisell-phone-validation-uk": "Please enter a valid UK phone",
|
|
133
133
|
"pisell-phone-validation-australia": "Please enter a valid Australian phone",
|
|
134
|
-
"pisell-phone-validation-japan": "Please enter a valid Japanese phone
|
|
135
|
-
"pisell-phone-validation-korea": "Please enter a valid Korean phone
|
|
136
|
-
"pisell-phone-validation-singapore": "Please enter a valid Singapore phone
|
|
137
|
-
"pisell-phone-validation-malaysia": "Please enter a valid Malaysian phone
|
|
138
|
-
"pisell-phone-validation-thailand": "Please enter a valid Thai phone
|
|
139
|
-
"pisell-phone-validation-vietnam": "Please enter a valid Vietnamese phone
|
|
140
|
-
"pisell-phone-validation-philippines": "Please enter a valid Philippine phone
|
|
141
|
-
"pisell-phone-validation-indonesia": "Please enter a valid Indonesian phone
|
|
142
|
-
"pisell-phone-validation-india": "Please enter a valid Indian phone
|
|
143
|
-
"pisell-phone-validation-invalid-china": "Please enter a valid Chinese phone
|
|
144
|
-
"pisell-phone-validation-invalid-hongkong": "Please enter a valid Hong Kong phone
|
|
145
|
-
"pisell-phone-validation-invalid-macau": "Please enter a valid Macau phone
|
|
146
|
-
"pisell-phone-validation-invalid-taiwan": "Please enter a valid Taiwan phone
|
|
147
|
-
"pisell-phone-validation-invalid-us-canada": "Please enter a valid US/Canada phone
|
|
148
|
-
"pisell-phone-validation-invalid-uk": "Please enter a valid UK phone
|
|
149
|
-
"pisell-phone-validation-invalid-australia": "Please enter a valid Australian phone
|
|
150
|
-
"pisell-phone-validation-invalid-japan": "Please enter a valid Japanese phone
|
|
151
|
-
"pisell-phone-validation-invalid-korea": "Please enter a valid Korean phone
|
|
152
|
-
"pisell-phone-validation-invalid-singapore": "Please enter a valid Singapore phone
|
|
153
|
-
"pisell-phone-validation-invalid-malaysia": "Please enter a valid Malaysian phone
|
|
154
|
-
"pisell-phone-validation-invalid-thailand": "Please enter a valid Thai phone
|
|
155
|
-
"pisell-phone-validation-invalid-vietnam": "Please enter a valid Vietnamese phone
|
|
156
|
-
"pisell-phone-validation-invalid-philippines": "Please enter a valid Philippine phone
|
|
157
|
-
"pisell-phone-validation-invalid-indonesia": "Please enter a valid Indonesian phone
|
|
158
|
-
"pisell-phone-validation-invalid-india": "Please enter a valid Indian phone
|
|
134
|
+
"pisell-phone-validation-japan": "Please enter a valid Japanese phone",
|
|
135
|
+
"pisell-phone-validation-korea": "Please enter a valid Korean phone",
|
|
136
|
+
"pisell-phone-validation-singapore": "Please enter a valid Singapore phone",
|
|
137
|
+
"pisell-phone-validation-malaysia": "Please enter a valid Malaysian phone",
|
|
138
|
+
"pisell-phone-validation-thailand": "Please enter a valid Thai phone",
|
|
139
|
+
"pisell-phone-validation-vietnam": "Please enter a valid Vietnamese phone",
|
|
140
|
+
"pisell-phone-validation-philippines": "Please enter a valid Philippine phone",
|
|
141
|
+
"pisell-phone-validation-indonesia": "Please enter a valid Indonesian phone",
|
|
142
|
+
"pisell-phone-validation-india": "Please enter a valid Indian phone",
|
|
143
|
+
"pisell-phone-validation-invalid-china": "Please enter a valid Chinese phone",
|
|
144
|
+
"pisell-phone-validation-invalid-hongkong": "Please enter a valid Hong Kong phone",
|
|
145
|
+
"pisell-phone-validation-invalid-macau": "Please enter a valid Macau phone",
|
|
146
|
+
"pisell-phone-validation-invalid-taiwan": "Please enter a valid Taiwan phone",
|
|
147
|
+
"pisell-phone-validation-invalid-us-canada": "Please enter a valid US/Canada phone",
|
|
148
|
+
"pisell-phone-validation-invalid-uk": "Please enter a valid UK phone",
|
|
149
|
+
"pisell-phone-validation-invalid-australia": "Please enter a valid Australian phone",
|
|
150
|
+
"pisell-phone-validation-invalid-japan": "Please enter a valid Japanese phone",
|
|
151
|
+
"pisell-phone-validation-invalid-korea": "Please enter a valid Korean phone",
|
|
152
|
+
"pisell-phone-validation-invalid-singapore": "Please enter a valid Singapore phone",
|
|
153
|
+
"pisell-phone-validation-invalid-malaysia": "Please enter a valid Malaysian phone",
|
|
154
|
+
"pisell-phone-validation-invalid-thailand": "Please enter a valid Thai phone",
|
|
155
|
+
"pisell-phone-validation-invalid-vietnam": "Please enter a valid Vietnamese phone",
|
|
156
|
+
"pisell-phone-validation-invalid-philippines": "Please enter a valid Philippine phone",
|
|
157
|
+
"pisell-phone-validation-invalid-indonesia": "Please enter a valid Indonesian phone",
|
|
158
|
+
"pisell-phone-validation-invalid-india": "Please enter a valid Indian phone",
|
|
159
159
|
// OAuth buttons
|
|
160
160
|
"pisell-register2-continue-with-google": "Continue with Google",
|
|
161
161
|
"pisell-register2-continue-with-facebook": "Continue with Facebook",
|
|
@@ -330,38 +330,38 @@ var locales_default = {
|
|
|
330
330
|
"pisell-phone-validation-required": "请输入手机号",
|
|
331
331
|
"pisell-phone-validation-invalid": "请输入正确的手机号",
|
|
332
332
|
"pisell-phone-validation-invalid-format": "请输入正确的手机号",
|
|
333
|
-
"pisell-phone-validation-china": "
|
|
334
|
-
"pisell-phone-validation-hongkong": "
|
|
335
|
-
"pisell-phone-validation-macau": "
|
|
336
|
-
"pisell-phone-validation-taiwan": "
|
|
337
|
-
"pisell-phone-validation-us-canada": "
|
|
338
|
-
"pisell-phone-validation-uk": "
|
|
333
|
+
"pisell-phone-validation-china": "请输入正确的中国大陆手机号",
|
|
334
|
+
"pisell-phone-validation-hongkong": "请输入正确的香港手机号",
|
|
335
|
+
"pisell-phone-validation-macau": "请输入正确的澳门手机号",
|
|
336
|
+
"pisell-phone-validation-taiwan": "请输入正确的台湾手机号",
|
|
337
|
+
"pisell-phone-validation-us-canada": "请输入正确的美国/加拿大手机号",
|
|
338
|
+
"pisell-phone-validation-uk": "请输入正确的英国手机号",
|
|
339
339
|
"pisell-phone-validation-australia": "请输入正确的澳大利亚手机号",
|
|
340
|
-
"pisell-phone-validation-japan": "
|
|
341
|
-
"pisell-phone-validation-korea": "
|
|
342
|
-
"pisell-phone-validation-singapore": "
|
|
343
|
-
"pisell-phone-validation-malaysia": "
|
|
344
|
-
"pisell-phone-validation-thailand": "
|
|
345
|
-
"pisell-phone-validation-vietnam": "
|
|
346
|
-
"pisell-phone-validation-philippines": "
|
|
347
|
-
"pisell-phone-validation-indonesia": "
|
|
348
|
-
"pisell-phone-validation-india": "
|
|
349
|
-
"pisell-phone-validation-invalid-china": "
|
|
350
|
-
"pisell-phone-validation-invalid-hongkong": "
|
|
351
|
-
"pisell-phone-validation-invalid-macau": "
|
|
352
|
-
"pisell-phone-validation-invalid-taiwan": "
|
|
353
|
-
"pisell-phone-validation-invalid-us-canada": "
|
|
354
|
-
"pisell-phone-validation-invalid-uk": "
|
|
355
|
-
"pisell-phone-validation-invalid-australia": "
|
|
356
|
-
"pisell-phone-validation-invalid-japan": "
|
|
357
|
-
"pisell-phone-validation-invalid-korea": "
|
|
358
|
-
"pisell-phone-validation-invalid-singapore": "
|
|
359
|
-
"pisell-phone-validation-invalid-malaysia": "
|
|
360
|
-
"pisell-phone-validation-invalid-thailand": "
|
|
361
|
-
"pisell-phone-validation-invalid-vietnam": "
|
|
362
|
-
"pisell-phone-validation-invalid-philippines": "
|
|
363
|
-
"pisell-phone-validation-invalid-indonesia": "
|
|
364
|
-
"pisell-phone-validation-invalid-india": "
|
|
340
|
+
"pisell-phone-validation-japan": "请输入正确的日本手机号",
|
|
341
|
+
"pisell-phone-validation-korea": "请输入正确的韩国手机号",
|
|
342
|
+
"pisell-phone-validation-singapore": "请输入正确的新加坡手机号",
|
|
343
|
+
"pisell-phone-validation-malaysia": "请输入正确的马来西亚手机号",
|
|
344
|
+
"pisell-phone-validation-thailand": "请输入正确的泰国手机号",
|
|
345
|
+
"pisell-phone-validation-vietnam": "请输入正确的越南手机号",
|
|
346
|
+
"pisell-phone-validation-philippines": "请输入正确的菲律宾手机号",
|
|
347
|
+
"pisell-phone-validation-indonesia": "请输入正确的印尼手机号",
|
|
348
|
+
"pisell-phone-validation-india": "请输入正确的印度手机号",
|
|
349
|
+
"pisell-phone-validation-invalid-china": "请输入正确的中国大陆手机号",
|
|
350
|
+
"pisell-phone-validation-invalid-hongkong": "请输入正确的香港手机号",
|
|
351
|
+
"pisell-phone-validation-invalid-macau": "请输入正确的澳门手机号",
|
|
352
|
+
"pisell-phone-validation-invalid-taiwan": "请输入正确的台湾手机号",
|
|
353
|
+
"pisell-phone-validation-invalid-us-canada": "请输入正确的美国/加拿大手机号",
|
|
354
|
+
"pisell-phone-validation-invalid-uk": "请输入正确的英国手机号",
|
|
355
|
+
"pisell-phone-validation-invalid-australia": "请输入正确的澳大利亚手机号",
|
|
356
|
+
"pisell-phone-validation-invalid-japan": "请输入正确的日本手机号",
|
|
357
|
+
"pisell-phone-validation-invalid-korea": "请输入正确的韩国手机号",
|
|
358
|
+
"pisell-phone-validation-invalid-singapore": "请输入正确的新加坡手机号",
|
|
359
|
+
"pisell-phone-validation-invalid-malaysia": "请输入正确的马来西亚手机号",
|
|
360
|
+
"pisell-phone-validation-invalid-thailand": "请输入正确的泰国手机号",
|
|
361
|
+
"pisell-phone-validation-invalid-vietnam": "请输入正确的越南手机号",
|
|
362
|
+
"pisell-phone-validation-invalid-philippines": "请输入正确的菲律宾手机号",
|
|
363
|
+
"pisell-phone-validation-invalid-indonesia": "请输入正确的印尼手机号",
|
|
364
|
+
"pisell-phone-validation-invalid-india": "请输入正确的印度手机号",
|
|
365
365
|
// OAuth buttons
|
|
366
366
|
"pisell-register2-continue-with-google": "使用Google继续",
|
|
367
367
|
"pisell-register2-continue-with-facebook": "使用Facebook继续",
|
|
@@ -576,38 +576,38 @@ var locales_default = {
|
|
|
576
576
|
"pisell-phone-validation-required": "請輸入手機號碼",
|
|
577
577
|
"pisell-phone-validation-invalid": "請輸入正確的手機號碼",
|
|
578
578
|
"pisell-phone-validation-invalid-format": "請輸入正確的手機號碼",
|
|
579
|
-
"pisell-phone-validation-china": "
|
|
580
|
-
"pisell-phone-validation-hongkong": "
|
|
581
|
-
"pisell-phone-validation-macau": "
|
|
582
|
-
"pisell-phone-validation-taiwan": "
|
|
583
|
-
"pisell-phone-validation-us-canada": "
|
|
584
|
-
"pisell-phone-validation-uk": "
|
|
579
|
+
"pisell-phone-validation-china": "請輸入正確的中國大陸手機號碼",
|
|
580
|
+
"pisell-phone-validation-hongkong": "請輸入正確的香港手機號碼",
|
|
581
|
+
"pisell-phone-validation-macau": "請輸入正確的澳門手機號碼",
|
|
582
|
+
"pisell-phone-validation-taiwan": "請輸入正確的台灣手機號碼",
|
|
583
|
+
"pisell-phone-validation-us-canada": "請輸入正確的美國/加拿大手機號碼",
|
|
584
|
+
"pisell-phone-validation-uk": "請輸入正確的英國手機號碼",
|
|
585
585
|
"pisell-phone-validation-australia": "請輸入正確的澳洲手機號碼",
|
|
586
|
-
"pisell-phone-validation-japan": "
|
|
587
|
-
"pisell-phone-validation-korea": "
|
|
588
|
-
"pisell-phone-validation-singapore": "
|
|
589
|
-
"pisell-phone-validation-malaysia": "
|
|
590
|
-
"pisell-phone-validation-thailand": "
|
|
591
|
-
"pisell-phone-validation-vietnam": "
|
|
592
|
-
"pisell-phone-validation-philippines": "
|
|
593
|
-
"pisell-phone-validation-indonesia": "
|
|
594
|
-
"pisell-phone-validation-india": "
|
|
595
|
-
"pisell-phone-validation-invalid-china": "
|
|
596
|
-
"pisell-phone-validation-invalid-hongkong": "
|
|
597
|
-
"pisell-phone-validation-invalid-macau": "
|
|
598
|
-
"pisell-phone-validation-invalid-taiwan": "
|
|
599
|
-
"pisell-phone-validation-invalid-us-canada": "
|
|
600
|
-
"pisell-phone-validation-invalid-uk": "
|
|
601
|
-
"pisell-phone-validation-invalid-australia": "
|
|
602
|
-
"pisell-phone-validation-invalid-japan": "
|
|
603
|
-
"pisell-phone-validation-invalid-korea": "
|
|
604
|
-
"pisell-phone-validation-invalid-singapore": "
|
|
605
|
-
"pisell-phone-validation-invalid-malaysia": "
|
|
606
|
-
"pisell-phone-validation-invalid-thailand": "
|
|
607
|
-
"pisell-phone-validation-invalid-vietnam": "
|
|
608
|
-
"pisell-phone-validation-invalid-philippines": "
|
|
609
|
-
"pisell-phone-validation-invalid-indonesia": "
|
|
610
|
-
"pisell-phone-validation-invalid-india": "
|
|
586
|
+
"pisell-phone-validation-japan": "請輸入正確的日本手機號碼",
|
|
587
|
+
"pisell-phone-validation-korea": "請輸入正確的韓國手機號碼",
|
|
588
|
+
"pisell-phone-validation-singapore": "請輸入正確的新加坡手機號碼",
|
|
589
|
+
"pisell-phone-validation-malaysia": "請輸入正確的馬來西亞手機號碼",
|
|
590
|
+
"pisell-phone-validation-thailand": "請輸入正確的泰國手機號碼",
|
|
591
|
+
"pisell-phone-validation-vietnam": "請輸入正確的越南手機號碼",
|
|
592
|
+
"pisell-phone-validation-philippines": "請輸入正確的菲律賓手機號碼",
|
|
593
|
+
"pisell-phone-validation-indonesia": "請輸入正確的印尼手機號碼",
|
|
594
|
+
"pisell-phone-validation-india": "請輸入正確的印度手機號碼",
|
|
595
|
+
"pisell-phone-validation-invalid-china": "請輸入正確的中國大陸手機號碼",
|
|
596
|
+
"pisell-phone-validation-invalid-hongkong": "請輸入正確的香港手機號碼",
|
|
597
|
+
"pisell-phone-validation-invalid-macau": "請輸入正確的澳門手機號碼",
|
|
598
|
+
"pisell-phone-validation-invalid-taiwan": "請輸入正確的台灣手機號碼",
|
|
599
|
+
"pisell-phone-validation-invalid-us-canada": "請輸入正確的美國/加拿大手機號碼",
|
|
600
|
+
"pisell-phone-validation-invalid-uk": "請輸入正確的英國手機號碼",
|
|
601
|
+
"pisell-phone-validation-invalid-australia": "請輸入正確的澳洲手機號碼",
|
|
602
|
+
"pisell-phone-validation-invalid-japan": "請輸入正確的日本手機號碼",
|
|
603
|
+
"pisell-phone-validation-invalid-korea": "請輸入正確的韓國手機號碼",
|
|
604
|
+
"pisell-phone-validation-invalid-singapore": "請輸入正確的新加坡手機號碼",
|
|
605
|
+
"pisell-phone-validation-invalid-malaysia": "請輸入正確的馬來西亞手機號碼",
|
|
606
|
+
"pisell-phone-validation-invalid-thailand": "請輸入正確的泰國手機號碼",
|
|
607
|
+
"pisell-phone-validation-invalid-vietnam": "請輸入正確的越南手機號碼",
|
|
608
|
+
"pisell-phone-validation-invalid-philippines": "請輸入正確的菲律賓手機號碼",
|
|
609
|
+
"pisell-phone-validation-invalid-indonesia": "請輸入正確的印尼手機號碼",
|
|
610
|
+
"pisell-phone-validation-invalid-india": "請輸入正確的印度手機號碼",
|
|
611
611
|
// Verification success
|
|
612
612
|
"pisell-verification-success-title": "驗證成功",
|
|
613
613
|
// Step-by-step login
|