@pisell/private-materials 6.8.78 → 6.8.79
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/checkout/PaymentModal.js +15 -13
- package/lib/components/checkout/PaymentModal.js +5 -4
- package/package.json +3 -3
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -32
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
- package/es/plus/skuOptionsSelection/index.d.ts +0 -5
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -32
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +0 -16
- package/lib/plus/skuOptionsSelection/index.d.ts +0 -5
|
@@ -2489,8 +2489,21 @@ var PaymentModal = function PaymentModal(_ref19) {
|
|
|
2489
2489
|
return checkout.getCurrentOrderId();
|
|
2490
2490
|
case 5:
|
|
2491
2491
|
orderId = _context24.sent;
|
|
2492
|
+
if (!isWebPos) {
|
|
2493
|
+
_context24.next = 10;
|
|
2494
|
+
break;
|
|
2495
|
+
}
|
|
2496
|
+
nativePage = NativePage === null || NativePage === void 0 ? void 0 : NativePage();
|
|
2497
|
+
nativePage.open({
|
|
2498
|
+
page: "/native/order/detail",
|
|
2499
|
+
params: {
|
|
2500
|
+
order_id: orderId
|
|
2501
|
+
}
|
|
2502
|
+
});
|
|
2503
|
+
return _context24.abrupt("return");
|
|
2504
|
+
case 10:
|
|
2492
2505
|
if (!(isTerminal !== null && isTerminal !== void 0 && isTerminal())) {
|
|
2493
|
-
_context24.next =
|
|
2506
|
+
_context24.next = 12;
|
|
2494
2507
|
break;
|
|
2495
2508
|
}
|
|
2496
2509
|
return _context24.abrupt("return", interaction.utils.postMessageToApp({
|
|
@@ -2501,18 +2514,7 @@ var PaymentModal = function PaymentModal(_ref19) {
|
|
|
2501
2514
|
},
|
|
2502
2515
|
origin: '/booking'
|
|
2503
2516
|
}));
|
|
2504
|
-
case
|
|
2505
|
-
if (isWebPos) {
|
|
2506
|
-
nativePage = NativePage === null || NativePage === void 0 ? void 0 : NativePage();
|
|
2507
|
-
nativePage.open({
|
|
2508
|
-
page: "/native/order/detail",
|
|
2509
|
-
params: {
|
|
2510
|
-
order_id: orderId
|
|
2511
|
-
}
|
|
2512
|
-
});
|
|
2513
|
-
}
|
|
2514
|
-
// 这里可以添加查看详情的逻辑
|
|
2515
|
-
case 9:
|
|
2517
|
+
case 12:
|
|
2516
2518
|
case "end":
|
|
2517
2519
|
return _context24.stop();
|
|
2518
2520
|
}
|
|
@@ -1750,6 +1750,11 @@ var PaymentModal = ({
|
|
|
1750
1750
|
const { isTerminal, isWebPos: isWebPos2, NativePage } = (_a2 = context.appHelper) == null ? void 0 : _a2.utils;
|
|
1751
1751
|
const checkout = pisellos.getModule("checkout");
|
|
1752
1752
|
const orderId = await checkout.getCurrentOrderId();
|
|
1753
|
+
if (isWebPos2) {
|
|
1754
|
+
const nativePage = NativePage == null ? void 0 : NativePage();
|
|
1755
|
+
nativePage.open({ page: "/native/order/detail", params: { order_id: orderId } });
|
|
1756
|
+
return;
|
|
1757
|
+
}
|
|
1753
1758
|
if (isTerminal == null ? void 0 : isTerminal()) {
|
|
1754
1759
|
return interaction.utils.postMessageToApp({
|
|
1755
1760
|
module: "booking",
|
|
@@ -1760,10 +1765,6 @@ var PaymentModal = ({
|
|
|
1760
1765
|
origin: "/booking"
|
|
1761
1766
|
});
|
|
1762
1767
|
}
|
|
1763
|
-
if (isWebPos2) {
|
|
1764
|
-
const nativePage = NativePage == null ? void 0 : NativePage();
|
|
1765
|
-
nativePage.open({ page: "/native/order/detail", params: { order_id: orderId } });
|
|
1766
|
-
}
|
|
1767
1768
|
};
|
|
1768
1769
|
const handlePrintReceiptClick = async () => {
|
|
1769
1770
|
setTimeout(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.8.
|
|
3
|
+
"version": "6.8.79",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -77,9 +77,9 @@
|
|
|
77
77
|
"react-resizable": "^3.0.5",
|
|
78
78
|
"styled-components": "^6.0.0-rc.3",
|
|
79
79
|
"@pisell/date-picker": "3.0.7",
|
|
80
|
-
"@pisell/
|
|
80
|
+
"@pisell/icon": "0.0.11",
|
|
81
81
|
"@pisell/utils": "3.0.2",
|
|
82
|
-
"@pisell/
|
|
82
|
+
"@pisell/materials": "6.8.12"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
85
|
"react": "^18.0.0",
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ProductDisplayConfig, ProductDisplayPresetKey } from '../ProductDisplayAdapter';
|
|
3
|
-
import './index.less';
|
|
4
|
-
interface AddServiceProps {
|
|
5
|
-
onEdit?: any;
|
|
6
|
-
dispatch?: any;
|
|
7
|
-
state?: any;
|
|
8
|
-
renderMode?: 'current' | 'drawer';
|
|
9
|
-
onPrerenderComplete?: () => void;
|
|
10
|
-
onGetProductsReady?: (getProducts: any) => void;
|
|
11
|
-
/**
|
|
12
|
-
* 产品展示配置
|
|
13
|
-
*
|
|
14
|
-
* 支持两种方式:
|
|
15
|
-
* 1. 简易模式:传入预设字符串,如 'product-select', 'sku-list-a1', 'sku-list-a2', 'sku-list-a5'
|
|
16
|
-
* 2. 完整配置模式:传入完整的配置对象
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* // 简易模式
|
|
20
|
-
* <AddService productDisplayConfig="sku-list-a1" />
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* // 完整配置模式
|
|
24
|
-
* <AddService productDisplayConfig={{
|
|
25
|
-
* displayMode: 'sku-list',
|
|
26
|
-
* skuListConfig: { ... }
|
|
27
|
-
* }} />
|
|
28
|
-
*/
|
|
29
|
-
productDisplayConfig?: ProductDisplayPresetKey | ProductDisplayConfig;
|
|
30
|
-
}
|
|
31
|
-
declare const AddSerivce: (props: AddServiceProps) => React.JSX.Element | null;
|
|
32
|
-
export default AddSerivce;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
interface IGetProductsParams {
|
|
2
|
-
schedule_date?: string;
|
|
3
|
-
customer_id?: number;
|
|
4
|
-
menu_list_ids?: number[];
|
|
5
|
-
schedule_datetime?: string;
|
|
6
|
-
}
|
|
7
|
-
interface IGetScheduleTimePointsParams {
|
|
8
|
-
menu_list_ids?: number[];
|
|
9
|
-
}
|
|
10
|
-
export declare const useProducts: (notAvailableRef: any) => {
|
|
11
|
-
getScheduleTimePoints: (this: unknown, params?: IGetScheduleTimePointsParams | undefined) => Promise<void>;
|
|
12
|
-
getProducts: (this: unknown, params?: IGetProductsParams | undefined) => Promise<void>;
|
|
13
|
-
products: any[];
|
|
14
|
-
loading: boolean;
|
|
15
|
-
};
|
|
16
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ProductDisplayConfig, ProductDisplayPresetKey } from '../ProductDisplayAdapter';
|
|
3
|
-
import './index.less';
|
|
4
|
-
interface AddServiceProps {
|
|
5
|
-
onEdit?: any;
|
|
6
|
-
dispatch?: any;
|
|
7
|
-
state?: any;
|
|
8
|
-
renderMode?: 'current' | 'drawer';
|
|
9
|
-
onPrerenderComplete?: () => void;
|
|
10
|
-
onGetProductsReady?: (getProducts: any) => void;
|
|
11
|
-
/**
|
|
12
|
-
* 产品展示配置
|
|
13
|
-
*
|
|
14
|
-
* 支持两种方式:
|
|
15
|
-
* 1. 简易模式:传入预设字符串,如 'product-select', 'sku-list-a1', 'sku-list-a2', 'sku-list-a5'
|
|
16
|
-
* 2. 完整配置模式:传入完整的配置对象
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* // 简易模式
|
|
20
|
-
* <AddService productDisplayConfig="sku-list-a1" />
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* // 完整配置模式
|
|
24
|
-
* <AddService productDisplayConfig={{
|
|
25
|
-
* displayMode: 'sku-list',
|
|
26
|
-
* skuListConfig: { ... }
|
|
27
|
-
* }} />
|
|
28
|
-
*/
|
|
29
|
-
productDisplayConfig?: ProductDisplayPresetKey | ProductDisplayConfig;
|
|
30
|
-
}
|
|
31
|
-
declare const AddSerivce: (props: AddServiceProps) => React.JSX.Element | null;
|
|
32
|
-
export default AddSerivce;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
interface IGetProductsParams {
|
|
2
|
-
schedule_date?: string;
|
|
3
|
-
customer_id?: number;
|
|
4
|
-
menu_list_ids?: number[];
|
|
5
|
-
schedule_datetime?: string;
|
|
6
|
-
}
|
|
7
|
-
interface IGetScheduleTimePointsParams {
|
|
8
|
-
menu_list_ids?: number[];
|
|
9
|
-
}
|
|
10
|
-
export declare const useProducts: (notAvailableRef: any) => {
|
|
11
|
-
getScheduleTimePoints: (this: unknown, params?: IGetScheduleTimePointsParams | undefined) => Promise<void>;
|
|
12
|
-
getProducts: (this: unknown, params?: IGetProductsParams | undefined) => Promise<void>;
|
|
13
|
-
products: any[];
|
|
14
|
-
loading: boolean;
|
|
15
|
-
};
|
|
16
|
-
export {};
|