@pisell/private-materials 6.11.59 → 6.11.60
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/plugin.js +16 -14
- package/lib/components/checkout/plugin.js +13 -11
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
19
19
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
20
20
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
21
21
|
import useEngineContext from "../../hooks/useEngineContext";
|
|
22
|
-
import React, { useEffect, useState } from 'react';
|
|
22
|
+
import React, { useEffect, useState, useLayoutEffect } from 'react';
|
|
23
23
|
import PaymentModal from "./PaymentModal";
|
|
24
24
|
import { _getBookingDetail } from "../booking/editBookingModal/serve";
|
|
25
25
|
import { _formatBookingDetail } from "../ticketBooking/components/ticketBooking";
|
|
@@ -60,20 +60,22 @@ var PaymentModalContent = function PaymentModalContent(_ref) {
|
|
|
60
60
|
pisellosAllModule = _context$appHelper$ut.pisellosAllModule;
|
|
61
61
|
var Toast = useToast();
|
|
62
62
|
var logger = useLogger();
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
useLayoutEffect(function () {
|
|
64
|
+
var _ref2 = pisellosAllModule || {},
|
|
65
|
+
BookingTicket = _ref2.BookingTicket;
|
|
65
66
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
67
|
+
// 检查下现在是否有 bookingTicket 的 OS 实例,如果没有我们这边先 new 一个
|
|
68
|
+
var bookingTicketModule = pisellos === null || pisellos === void 0 ? void 0 : pisellos.getModule(getBookingTicketKey('ticket'));
|
|
69
|
+
if (BookingTicket && !bookingTicketModule) {
|
|
70
|
+
pisellos === null || pisellos === void 0 || pisellos.registerModule(new BookingTicket(getBookingTicketKey('ticket')), {
|
|
71
|
+
initialState: {},
|
|
72
|
+
otherParams: {
|
|
73
|
+
cacheId: getBookingTicketKey('ticket'),
|
|
74
|
+
platform: 'shop'
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
});
|
|
77
79
|
var getDataFromHost = function getDataFromHost() {
|
|
78
80
|
try {
|
|
79
81
|
var is_price_include_tax = getData('is_price_include_tax');
|
|
@@ -56,17 +56,19 @@ var PaymentModalContent = ({ state, dispatch }) => {
|
|
|
56
56
|
const { getData, pisellos, pisellosAllModule } = context.appHelper.utils;
|
|
57
57
|
const Toast = (0, import_materials.useToast)();
|
|
58
58
|
const logger = (0, import_useLogger.default)();
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
59
|
+
(0, import_react.useLayoutEffect)(() => {
|
|
60
|
+
const { BookingTicket } = pisellosAllModule || {};
|
|
61
|
+
const bookingTicketModule = pisellos == null ? void 0 : pisellos.getModule((0, import_utils4.getBookingTicketKey)("ticket"));
|
|
62
|
+
if (BookingTicket && !bookingTicketModule) {
|
|
63
|
+
pisellos == null ? void 0 : pisellos.registerModule(new BookingTicket((0, import_utils4.getBookingTicketKey)("ticket")), {
|
|
64
|
+
initialState: {},
|
|
65
|
+
otherParams: {
|
|
66
|
+
cacheId: (0, import_utils4.getBookingTicketKey)("ticket"),
|
|
67
|
+
platform: "shop"
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
});
|
|
70
72
|
const getDataFromHost = () => {
|
|
71
73
|
try {
|
|
72
74
|
const is_price_include_tax = getData("is_price_include_tax");
|