@pisell/private-materials 3.3.64 → 3.3.65
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 +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +6 -6
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Voucher/index.less +2 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
- package/es/components/appointmentBooking/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/es/components/booking/components/footer/index.js +15 -30
- package/es/components/booking/components/voucher/index.d.ts +1 -0
- package/es/components/booking/components/voucher/index.less +1 -0
- package/es/components/booking/forms/footer.d.ts +1 -0
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/es/components/booking/hooks/useClearCart.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/index.d.ts +1 -0
- package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/editService/index.js +9 -13
- package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
- package/es/components/booking/info2/utilsByBooking.js +10 -17
- package/es/components/booking/utils.js +4 -10
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/index.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/index.d.ts +1 -0
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/timeResourceSelector/index.less +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/index.js +4 -5
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
- package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
- package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/es/components/ruleSetting/index.d.ts +1 -0
- package/es/components/schedules/calendar/index.less +152 -158
- package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +10 -12
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/es/components/ticketBooking/components/ticketBooking/index.js +9 -135
- package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/es/components/ticketBooking/locales.d.ts +146 -164
- package/es/components/ticketBooking/locales.js +147 -195
- package/es/components/ticketBooking/serve.d.ts +0 -5
- package/es/components/ticketBooking/serve.js +0 -27
- package/es/components/wallet/DiscountCard/index.less +1 -0
- package/es/components/wallet/PointCard/index.less +1 -0
- package/es/components/wallet/RechargeableCard/index.less +9 -5
- package/es/components/wallet/Voucher/index.less +1 -0
- package/es/components/wallet/index.less +4 -0
- package/es/components/walletList/index.js +7 -55
- package/es/components/walletList/index.less +15 -17
- package/es/components/walletList/serve.d.ts +0 -8
- package/es/components/walletList/serve.js +0 -38
- package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Voucher/index.less +2 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
- package/lib/components/appointmentBooking/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/lib/components/booking/components/footer/index.js +2 -14
- package/lib/components/booking/components/voucher/index.d.ts +1 -0
- package/lib/components/booking/components/voucher/index.less +1 -0
- package/lib/components/booking/forms/footer.d.ts +1 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/editService/index.js +3 -7
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
- package/lib/components/booking/info2/utilsByBooking.js +9 -7
- package/lib/components/booking/utils.js +3 -7
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/index.d.ts +1 -0
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/timeResourceSelector/index.less +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/index.js +9 -10
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
- package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
- package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/lib/components/ruleSetting/index.d.ts +1 -0
- package/lib/components/schedules/calendar/index.less +152 -158
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +3 -5
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.js +8 -134
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/lib/components/ticketBooking/locales.d.ts +146 -164
- package/lib/components/ticketBooking/locales.js +4 -22
- package/lib/components/ticketBooking/serve.d.ts +0 -5
- package/lib/components/ticketBooking/serve.js +2 -8
- package/lib/components/wallet/DiscountCard/index.less +1 -0
- package/lib/components/wallet/PointCard/index.less +1 -0
- package/lib/components/wallet/RechargeableCard/index.less +9 -5
- package/lib/components/wallet/Voucher/index.less +1 -0
- package/lib/components/wallet/index.less +4 -0
- package/lib/components/walletList/index.js +14 -42
- package/lib/components/walletList/index.less +15 -17
- package/lib/components/walletList/serve.d.ts +0 -8
- package/lib/components/walletList/serve.js +2 -15
- package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/package.json +3 -3
- package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
- package/es/components/ticketBooking/utils/formatProductMessage.js +0 -53
- package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
- package/es/components/ticketBooking/utils/formatTime.js +0 -144
- package/es/components/walletList/locales.d.ts +0 -18
- package/es/components/walletList/locales.js +0 -17
- package/es/components/walletList/status.d.ts +0 -38
- package/es/components/walletList/status.js +0 -47
- package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
- package/lib/components/ticketBooking/utils/formatProductMessage.js +0 -76
- package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
- package/lib/components/ticketBooking/utils/formatTime.js +0 -139
- package/lib/components/walletList/locales.d.ts +0 -18
- package/lib/components/walletList/locales.js +0 -41
- package/lib/components/walletList/status.d.ts +0 -38
- package/lib/components/walletList/status.js +0 -66
|
@@ -11,7 +11,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
11
11
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
12
12
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
13
13
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
14
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
15
14
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
16
15
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
17
16
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -21,7 +20,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
21
20
|
import React, { useEffect, useRef } from 'react';
|
|
22
21
|
import { locales } from '@pisell/utils';
|
|
23
22
|
import { message } from 'antd';
|
|
24
|
-
import { getOrderInfoByCode, getBookingDetail, getEventBookingDetail, getBookingConfig, getServices
|
|
23
|
+
import { getOrderInfoByCode, getBookingDetail, getEventBookingDetail, getBookingConfig, getServices } from "../../serve";
|
|
25
24
|
import * as apis from "../../serve";
|
|
26
25
|
import dayjs from 'dayjs';
|
|
27
26
|
import useEngineContext from "../../../../hooks/useEngineContext";
|
|
@@ -31,9 +30,6 @@ import { formatDateToStr, getNextTimeSlice, getDisabledEdit, restoreProductOther
|
|
|
31
30
|
import AddServiceVariant from "../addServiceVariant";
|
|
32
31
|
import TimeBar from "../timeBar";
|
|
33
32
|
import "./index.less";
|
|
34
|
-
import { formatProducts } from "../../../booking/info/service2/utils";
|
|
35
|
-
import { getSumTotal } from "../../../booking/components/footer/amount";
|
|
36
|
-
import formatProductMessage from "../../utils/formatProductMessage";
|
|
37
33
|
var TicketBooking = function TicketBooking() {
|
|
38
34
|
var _engineContext$appHel2;
|
|
39
35
|
var _useStore = useStore(),
|
|
@@ -49,16 +45,14 @@ var TicketBooking = function TicketBooking() {
|
|
|
49
45
|
interaction = _engineContext$appHel.interaction,
|
|
50
46
|
store = _engineContext$appHel.store,
|
|
51
47
|
storage = _engineContext$appHel.storage,
|
|
52
|
-
Toast = _engineContext$appHel.Toast
|
|
53
|
-
getSymbolic = _engineContext$appHel.getSymbolic,
|
|
54
|
-
translation = _engineContext$appHel.translation;
|
|
48
|
+
Toast = _engineContext$appHel.Toast;
|
|
55
49
|
var _persistentRef = useRef(false);
|
|
56
50
|
var _initStateRef = useRef({});
|
|
57
51
|
var _listTimerRef = useRef();
|
|
58
52
|
var _timerRef = useRef();
|
|
59
53
|
var _callbackFnRef = useRef();
|
|
60
54
|
useEffect(function () {
|
|
61
|
-
var _interaction$utils, _store$getState, _interaction$utils2
|
|
55
|
+
var _interaction$utils, _store$getState, _interaction$utils2;
|
|
62
56
|
_persistentRef.current = storage.get("drawer-booking") === 'true' ? true : isTerminal();
|
|
63
57
|
if (lowcodeRef) {
|
|
64
58
|
lowcodeRef.onReady(_this);
|
|
@@ -86,14 +80,10 @@ var TicketBooking = function TicketBooking() {
|
|
|
86
80
|
_setShopOpeningHours();
|
|
87
81
|
_setIntervalTime(true);
|
|
88
82
|
interaction === null || interaction === void 0 || (_interaction$utils2 = interaction.utils) === null || _interaction$utils2 === void 0 || _interaction$utils2.mountFunction('booking', 'refreshBookingDetail', function (type, orderId) {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
// 作废预约
|
|
95
|
-
interaction === null || interaction === void 0 || (_interaction$utils3 = interaction.utils) === null || _interaction$utils3 === void 0 || _interaction$utils3.mountFunction('booking', 'voidBooking', function (orderId) {
|
|
96
|
-
voidAppointment(orderId);
|
|
83
|
+
console.log(type, orderId, 'type, orderId');
|
|
84
|
+
if (state.bookingId) {
|
|
85
|
+
_getBookingDetail();
|
|
86
|
+
}
|
|
97
87
|
});
|
|
98
88
|
return function () {
|
|
99
89
|
off === null || off === void 0 || off();
|
|
@@ -131,119 +121,6 @@ var TicketBooking = function TicketBooking() {
|
|
|
131
121
|
});
|
|
132
122
|
};
|
|
133
123
|
|
|
134
|
-
// 商品加购信息发生变化时,需要发送至native端
|
|
135
|
-
useEffect(function () {
|
|
136
|
-
var _state$modalState, _locales$getText, _interaction$utils5, _interaction$utils5$p;
|
|
137
|
-
var cartItems = state === null || state === void 0 || (_state$modalState = state.modalState) === null || _state$modalState === void 0 || (_state$modalState = _state$modalState.service) === null || _state$modalState === void 0 ? void 0 : _state$modalState.value;
|
|
138
|
-
if (!Array.isArray(cartItems) || cartItems.length === 0) {
|
|
139
|
-
var _interaction$utils4, _interaction$utils4$p;
|
|
140
|
-
interaction === null || interaction === void 0 || (_interaction$utils4 = interaction.utils) === null || _interaction$utils4 === void 0 || (_interaction$utils4$p = _interaction$utils4.postMessageToApp) === null || _interaction$utils4$p === void 0 || _interaction$utils4$p.call(_interaction$utils4, {
|
|
141
|
-
module: 'cds',
|
|
142
|
-
key: 'cartUpdate',
|
|
143
|
-
data: {
|
|
144
|
-
currency_symbol: getSymbolic(),
|
|
145
|
-
total: '0',
|
|
146
|
-
// 小计
|
|
147
|
-
products: [],
|
|
148
|
-
fees: []
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
var total = getSumTotal(state.modalState, true);
|
|
153
|
-
var formatedProducts = [];
|
|
154
|
-
try {
|
|
155
|
-
formatedProducts = formatProducts(cartItems, state.modalState, false, true, true);
|
|
156
|
-
} catch (error) {
|
|
157
|
-
console.error(error);
|
|
158
|
-
}
|
|
159
|
-
console.log('formatedProducts', total, formatedProducts);
|
|
160
|
-
var fees = [];
|
|
161
|
-
var products = [];
|
|
162
|
-
var _iterator = _createForOfIteratorHelper(formatedProducts),
|
|
163
|
-
_step;
|
|
164
|
-
try {
|
|
165
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
166
|
-
var _origin$discount_list;
|
|
167
|
-
var item = _step.value;
|
|
168
|
-
var id = item.id,
|
|
169
|
-
name = item.name,
|
|
170
|
-
image = item.image,
|
|
171
|
-
origin_total = item.origin_total,
|
|
172
|
-
_total = item.total,
|
|
173
|
-
num = item.num,
|
|
174
|
-
note = item.note,
|
|
175
|
-
_origin = item._origin;
|
|
176
|
-
_origin === null || _origin === void 0 || (_origin$discount_list = _origin.discount_list) === null || _origin$discount_list === void 0 || _origin$discount_list.forEach(function (dl) {
|
|
177
|
-
fees.push({
|
|
178
|
-
isReduce: dl.type === 'good_pass',
|
|
179
|
-
title: translation(dl === null || dl === void 0 ? void 0 : dl.discount.title),
|
|
180
|
-
price: dl.amount,
|
|
181
|
-
type: dl.type
|
|
182
|
-
});
|
|
183
|
-
});
|
|
184
|
-
var msg = '';
|
|
185
|
-
try {
|
|
186
|
-
var _engineContext$appHel3;
|
|
187
|
-
msg = formatProductMessage(_objectSpread(_objectSpread({}, item), {}, {
|
|
188
|
-
currency_symbol: getSymbolic()
|
|
189
|
-
}), (_engineContext$appHel3 = engineContext.appHelper) === null || _engineContext$appHel3 === void 0 ? void 0 : _engineContext$appHel3.utils);
|
|
190
|
-
} catch (error) {
|
|
191
|
-
console.error(error);
|
|
192
|
-
}
|
|
193
|
-
var _item = {
|
|
194
|
-
productID: id,
|
|
195
|
-
title: name,
|
|
196
|
-
cover: image,
|
|
197
|
-
// 封面图
|
|
198
|
-
price: _total,
|
|
199
|
-
// 售价
|
|
200
|
-
buyCount: num,
|
|
201
|
-
// 购买数量
|
|
202
|
-
productFormatMessage: msg,
|
|
203
|
-
note: note
|
|
204
|
-
};
|
|
205
|
-
if (origin_total !== _total) _item.modifyPrice = origin_total; //原价, 注意字段名反了
|
|
206
|
-
products.push(_item);
|
|
207
|
-
}
|
|
208
|
-
} catch (err) {
|
|
209
|
-
_iterator.e(err);
|
|
210
|
-
} finally {
|
|
211
|
-
_iterator.f();
|
|
212
|
-
}
|
|
213
|
-
console.log('formatedProducts', (_locales$getText = locales.getText('pisell2.product.card.cart-items')) === null || _locales$getText === void 0 ? void 0 : _locales$getText(products.length));
|
|
214
|
-
if (products.length > 0) {
|
|
215
|
-
var _locales$getText2;
|
|
216
|
-
fees.unshift({
|
|
217
|
-
title: locales.getText('pisell2.product.card.subtotal'),
|
|
218
|
-
price: total.productAmount,
|
|
219
|
-
type: 'subtotal',
|
|
220
|
-
message: (_locales$getText2 = locales.getText('pisell2.product.card.cart-items')) === null || _locales$getText2 === void 0 ? void 0 : _locales$getText2(products.length)
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
console.log('start post message, config:', {
|
|
224
|
-
module: 'cds',
|
|
225
|
-
key: 'cartUpdate',
|
|
226
|
-
data: {
|
|
227
|
-
currency_symbol: getSymbolic(),
|
|
228
|
-
total: total.productAmount,
|
|
229
|
-
// 小计
|
|
230
|
-
products: products,
|
|
231
|
-
fees: fees
|
|
232
|
-
}
|
|
233
|
-
});
|
|
234
|
-
interaction === null || interaction === void 0 || (_interaction$utils5 = interaction.utils) === null || _interaction$utils5 === void 0 || (_interaction$utils5$p = _interaction$utils5.postMessageToApp) === null || _interaction$utils5$p === void 0 || _interaction$utils5$p.call(_interaction$utils5, {
|
|
235
|
-
module: 'cds',
|
|
236
|
-
key: 'cartUpdate',
|
|
237
|
-
data: {
|
|
238
|
-
currency_symbol: getSymbolic(),
|
|
239
|
-
total: total.expectAmount,
|
|
240
|
-
// 小计
|
|
241
|
-
products: products,
|
|
242
|
-
fees: fees
|
|
243
|
-
}
|
|
244
|
-
});
|
|
245
|
-
}, [state.modalState]);
|
|
246
|
-
|
|
247
124
|
/**
|
|
248
125
|
* 设置弹窗内的状态
|
|
249
126
|
*/
|
|
@@ -819,11 +696,8 @@ var TicketBooking = function TicketBooking() {
|
|
|
819
696
|
};
|
|
820
697
|
|
|
821
698
|
// 新建完成之后的回调
|
|
822
|
-
var _callback = function _callback(data
|
|
823
|
-
|
|
824
|
-
if (isTerminal() && type === 'checkout') {
|
|
825
|
-
return;
|
|
826
|
-
}
|
|
699
|
+
var _callback = function _callback(data) {
|
|
700
|
+
console.log('callbackcallback');
|
|
827
701
|
setState({
|
|
828
702
|
createCount: state.createCount + 1
|
|
829
703
|
});
|
|
@@ -1,171 +1,153 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
en: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
'pisell2.product.card.cart-items': (number: number) => string;
|
|
52
|
-
'pisell2.product.card.subtotal': string;
|
|
53
|
-
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
54
|
-
'pisell2.product.card.day': (val: number) => string;
|
|
55
|
-
'pisell2.product.card.day.event': (val: number) => string;
|
|
56
|
-
'pisell2.product.card.minute': (val: number) => string;
|
|
3
|
+
"pisell2.ticket-booking.info": string;
|
|
4
|
+
"pisell2.ticket-booking.notes": string;
|
|
5
|
+
"pisell2.ticket-booking.forms": string;
|
|
6
|
+
"pisell2.ticket-booking.sales": string;
|
|
7
|
+
"pisell2.ticket-booking.payment": string;
|
|
8
|
+
"pisell2.ticket-booking.unsaved-changes": string;
|
|
9
|
+
"pisell2.ticket-booking.exit-confirm": string;
|
|
10
|
+
"pisell2.ticket-booking.go-back": string;
|
|
11
|
+
"pisell2.ticket-booking.exit": string;
|
|
12
|
+
"pisell2.ticket-booking.deposit": string;
|
|
13
|
+
"pisell2.ticket-booking.copy-success": string;
|
|
14
|
+
"pisell2.ticket-booking.no-data": string;
|
|
15
|
+
"pisell2.ticket-booking.authorized": string;
|
|
16
|
+
"pisell2.ticket-booking.paid": string;
|
|
17
|
+
"pisell2.ticket-booking.partially-paid": string;
|
|
18
|
+
"pisell2.ticket-booking.partially-refunded": string;
|
|
19
|
+
"pisell2.ticket-booking.payment-pending": string;
|
|
20
|
+
"pisell2.ticket-booking.refunded": string;
|
|
21
|
+
"pisell2.ticket-booking.unpaid": string;
|
|
22
|
+
"pisell2.ticket-booking.voided": string;
|
|
23
|
+
"pisell2.ticket-booking.pending": string;
|
|
24
|
+
"pisell2.ticket-booking.all": string;
|
|
25
|
+
"pisell2.ticket-booking.not-started": string;
|
|
26
|
+
"pisell2.ticket-booking.started": string;
|
|
27
|
+
"pisell2.ticket-booking.finished": string;
|
|
28
|
+
"pisell2.ticket-booking.canceled": string;
|
|
29
|
+
"pisell2.ticket-booking.inform": string;
|
|
30
|
+
"pisell2.ticket-booking.check-management": string;
|
|
31
|
+
"pisell2.ticket-booking.confirm": string;
|
|
32
|
+
"pisell2.ticket-booking.dashboard": string;
|
|
33
|
+
"pisell2.ticket-booking.booking-list": string;
|
|
34
|
+
"pisell2.ticket-booking.full-data": string;
|
|
35
|
+
"pisell2.ticket-booking.today": string;
|
|
36
|
+
"pisell2.ticket-booking.now": string;
|
|
37
|
+
"pisell2.ticket-booking.start-time": string;
|
|
38
|
+
"pisell2.ticket-booking.create-time": string;
|
|
39
|
+
"pisell2.ticket-booking.customer": string;
|
|
40
|
+
"pisell2.ticket-booking.total": string;
|
|
41
|
+
"pisell2.ticket-booking.search": string;
|
|
42
|
+
"pisell2.ticket-booking.refresh-success": string;
|
|
43
|
+
"pisell2.ticket-booking.loading": string;
|
|
44
|
+
"pisell2.ticket-booking.appointment-not-found": string;
|
|
45
|
+
"pisell2.ticket-booking.scan": string;
|
|
46
|
+
"pisell2.ticket-booking.create-new": string;
|
|
47
|
+
"pisell2.ticket-booking.add-to-cart": string;
|
|
48
|
+
"pisell2.ticket-booking.not-available-title": string;
|
|
49
|
+
"pisell2.ticket-booking.not-available-ok": string;
|
|
50
|
+
"pisell2.ticket-booking.in-cart": (number: number) => string;
|
|
57
51
|
};
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
'pisell2.product.card.subtotal': string;
|
|
108
|
-
'pisell2.ticket-booking.in-cart': (number: number) => string;
|
|
109
|
-
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
110
|
-
'pisell2.product.card.day': (val: number) => string;
|
|
111
|
-
'pisell2.product.card.day.event': (val: number) => string;
|
|
112
|
-
'pisell2.product.card.minute': (val: number) => string;
|
|
52
|
+
"zh-CN": {
|
|
53
|
+
"pisell2.ticket-booking.info": string;
|
|
54
|
+
"pisell2.ticket-booking.notes": string;
|
|
55
|
+
"pisell2.ticket-booking.forms": string;
|
|
56
|
+
"pisell2.ticket-booking.sales": string;
|
|
57
|
+
"pisell2.ticket-booking.payment": string;
|
|
58
|
+
"pisell2.ticket-booking.unsaved-changes": string;
|
|
59
|
+
"pisell2.ticket-booking.exit-confirm": string;
|
|
60
|
+
"pisell2.ticket-booking.go-back": string;
|
|
61
|
+
"pisell2.ticket-booking.exit": string;
|
|
62
|
+
"pisell2.ticket-booking.deposit": string;
|
|
63
|
+
"pisell2.ticket-booking.copy-success": string;
|
|
64
|
+
"pisell2.ticket-booking.no-data": string;
|
|
65
|
+
"pisell2.ticket-booking.authorized": string;
|
|
66
|
+
"pisell2.ticket-booking.paid": string;
|
|
67
|
+
"pisell2.ticket-booking.partially-paid": string;
|
|
68
|
+
"pisell2.ticket-booking.partially-refunded": string;
|
|
69
|
+
"pisell2.ticket-booking.payment-pending": string;
|
|
70
|
+
"pisell2.ticket-booking.refunded": string;
|
|
71
|
+
"pisell2.ticket-booking.unpaid": string;
|
|
72
|
+
"pisell2.ticket-booking.voided": string;
|
|
73
|
+
"pisell2.ticket-booking.pending": string;
|
|
74
|
+
"pisell2.ticket-booking.all": string;
|
|
75
|
+
"pisell2.ticket-booking.not-started": string;
|
|
76
|
+
"pisell2.ticket-booking.started": string;
|
|
77
|
+
"pisell2.ticket-booking.finished": string;
|
|
78
|
+
"pisell2.ticket-booking.canceled": string;
|
|
79
|
+
"pisell2.ticket-booking.inform": string;
|
|
80
|
+
"pisell2.ticket-booking.check-management": string;
|
|
81
|
+
"pisell2.ticket-booking.confirm": string;
|
|
82
|
+
"pisell2.ticket-booking.dashboard": string;
|
|
83
|
+
"pisell2.ticket-booking.booking-list": string;
|
|
84
|
+
"pisell2.ticket-booking.full-data": string;
|
|
85
|
+
"pisell2.ticket-booking.today": string;
|
|
86
|
+
"pisell2.ticket-booking.now": string;
|
|
87
|
+
"pisell2.ticket-booking.start-time": string;
|
|
88
|
+
"pisell2.ticket-booking.create-time": string;
|
|
89
|
+
"pisell2.ticket-booking.customer": string;
|
|
90
|
+
"pisell2.ticket-booking.total": string;
|
|
91
|
+
"pisell2.ticket-booking.search": string;
|
|
92
|
+
"pisell2.ticket-booking.refresh-success": string;
|
|
93
|
+
"pisell2.ticket-booking.loading": string;
|
|
94
|
+
"pisell2.ticket-booking.appointment-not-found": string;
|
|
95
|
+
"pisell2.ticket-booking.scan": string;
|
|
96
|
+
"pisell2.ticket-booking.create-new": string;
|
|
97
|
+
"pisell2.ticket-booking.add-to-cart": string;
|
|
98
|
+
"pisell2.ticket-booking.not-available-title": string;
|
|
99
|
+
"pisell2.ticket-booking.not-available-ok": string;
|
|
100
|
+
"pisell2.ticket-booking.in-cart": (number: number) => string;
|
|
113
101
|
};
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
'pisell2.product.card.cart-items': (number: number) => string;
|
|
164
|
-
'pisell2.product.card.subtotal': string;
|
|
165
|
-
'pisell2.product.card.hour.minute': (hour: number, minute: number) => string;
|
|
166
|
-
'pisell2.product.card.day': (val: number) => string;
|
|
167
|
-
'pisell2.product.card.day.event': (val: number) => string;
|
|
168
|
-
'pisell2.product.card.minute': (val: number) => string;
|
|
102
|
+
"zh-HK": {
|
|
103
|
+
"pisell2.ticket-booking.info": string;
|
|
104
|
+
"pisell2.ticket-booking.notes": string;
|
|
105
|
+
"pisell2.ticket-booking.forms": string;
|
|
106
|
+
"pisell2.ticket-booking.sales": string;
|
|
107
|
+
"pisell2.ticket-booking.payment": string;
|
|
108
|
+
"pisell2.ticket-booking.unsaved-changes": string;
|
|
109
|
+
"pisell2.ticket-booking.exit-confirm": string;
|
|
110
|
+
"pisell2.ticket-booking.go-back": string;
|
|
111
|
+
"pisell2.ticket-booking.exit": string;
|
|
112
|
+
"pisell2.ticket-booking.deposit": string;
|
|
113
|
+
"pisell2.ticket-booking.copy-success": string;
|
|
114
|
+
"pisell2.ticket-booking.no-data": string;
|
|
115
|
+
"pisell2.ticket-booking.authorized": string;
|
|
116
|
+
"pisell2.ticket-booking.paid": string;
|
|
117
|
+
"pisell2.ticket-booking.partially-paid": string;
|
|
118
|
+
"pisell2.ticket-booking.partially-refunded": string;
|
|
119
|
+
"pisell2.ticket-booking.payment-pending": string;
|
|
120
|
+
"pisell2.ticket-booking.refunded": string;
|
|
121
|
+
"pisell2.ticket-booking.unpaid": string;
|
|
122
|
+
"pisell2.ticket-booking.voided": string;
|
|
123
|
+
"pisell2.ticket-booking.pending": string;
|
|
124
|
+
"pisell2.ticket-booking.all": string;
|
|
125
|
+
"pisell2.ticket-booking.not-started": string;
|
|
126
|
+
"pisell2.ticket-booking.started": string;
|
|
127
|
+
"pisell2.ticket-booking.finished": string;
|
|
128
|
+
"pisell2.ticket-booking.canceled": string;
|
|
129
|
+
"pisell2.ticket-booking.inform": string;
|
|
130
|
+
"pisell2.ticket-booking.check-management": string;
|
|
131
|
+
"pisell2.ticket-booking.confirm": string;
|
|
132
|
+
"pisell2.ticket-booking.dashboard": string;
|
|
133
|
+
"pisell2.ticket-booking.booking-list": string;
|
|
134
|
+
"pisell2.ticket-booking.full-data": string;
|
|
135
|
+
"pisell2.ticket-booking.today": string;
|
|
136
|
+
"pisell2.ticket-booking.now": string;
|
|
137
|
+
"pisell2.ticket-booking.start-time": string;
|
|
138
|
+
"pisell2.ticket-booking.create-time": string;
|
|
139
|
+
"pisell2.ticket-booking.customer": string;
|
|
140
|
+
"pisell2.ticket-booking.total": string;
|
|
141
|
+
"pisell2.ticket-booking.search": string;
|
|
142
|
+
"pisell2.ticket-booking.refresh-success": string;
|
|
143
|
+
"pisell2.ticket-booking.loading": string;
|
|
144
|
+
"pisell2.ticket-booking.appointment-not-found": string;
|
|
145
|
+
"pisell2.ticket-booking.scan": string;
|
|
146
|
+
"pisell2.ticket-booking.create-new": string;
|
|
147
|
+
"pisell2.ticket-booking.add-to-cart": string;
|
|
148
|
+
"pisell2.ticket-booking.not-available-title": string;
|
|
149
|
+
"pisell2.ticket-booking.not-available-ok": string;
|
|
150
|
+
"pisell2.ticket-booking.in-cart": (number: number) => string;
|
|
169
151
|
};
|
|
170
152
|
};
|
|
171
153
|
export default _default;
|