@pisell/private-materials 3.3.78 → 3.3.80
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 +13 -13
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +5 -5
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +7 -7
- package/es/businessModel/SalesModel/Sales/index.js +4 -37
- package/es/components/Sales/Resource/index.js +2 -2
- package/es/components/Sales/Resource/serve.d.ts +0 -7
- package/es/components/Sales/Resource/serve.js +0 -10
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.js +2 -4
- package/es/components/appointmentBooking/components/Cart/Item/index.less +3 -3
- package/es/components/appointmentBooking/components/Content/index.less +1 -1
- package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Header/index.js +14 -8
- package/es/components/appointmentBooking/components/Services/index.js +36 -38
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Voucher/index.js +0 -13
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +7 -6
- package/es/components/appointmentBooking/index.d.ts +0 -1
- package/es/components/appointmentBooking/index.js +0 -14
- package/es/components/appointmentBooking/index.less +1 -1
- package/es/components/appointmentBooking/locales.js +3 -3
- package/es/components/booking/addons/index.js +2 -9
- package/es/components/booking/addons/model.d.ts +10 -1
- package/es/components/booking/addons/model.js +0 -5
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/selectProductItem/index.js +1 -3
- package/es/components/booking/components/TabProduct/selectProductItem/index.less +0 -6
- package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
- package/es/components/booking/components/browserSelect/index.js +1 -1
- package/es/components/booking/components/footer/amount.js +1 -2
- package/es/components/booking/components/footer/index.d.ts +0 -1
- package/es/components/booking/components/footer/index.js +3 -9
- package/es/components/booking/components/footer/utils.js +36 -74
- package/es/components/booking/components/voucher/index.d.ts +0 -1
- package/es/components/booking/components/voucher/index.js +66 -110
- package/es/components/booking/forms/model.d.ts +10 -1
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/info/model.d.ts +10 -1
- package/es/components/booking/info/service/like/index.js +1 -1
- package/es/components/booking/info/service2/utils.js +2 -6
- package/es/components/booking/info/utils.js +1 -1
- package/es/components/booking/info2/service/addService/index.d.ts +0 -1
- package/es/components/booking/info2/service/addService/index.js +2 -2
- package/es/components/booking/info2/service/editService/index.js +2 -5
- package/es/components/booking/info2/utilsByBooking.d.ts +1 -1
- package/es/components/booking/info2/utilsByBooking.js +3 -5
- package/es/components/booking/locales.d.ts +0 -3
- package/es/components/booking/locales.js +3 -6
- package/es/components/booking/materiels/startTime/index.js +1 -1
- package/es/components/booking/model.d.ts +9 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/index.js +11 -11
- package/es/components/booking/notes/model.d.ts +10 -1
- package/es/components/booking/notes/model.js +5 -5
- package/es/components/booking/payments/model.d.ts +10 -1
- package/es/components/booking/payments/model.js +5 -5
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Event/index.js +4 -13
- package/es/components/eventBooking/components/bookingDetailModal/index.js +3 -19
- package/es/components/eventBooking/index.d.ts +0 -1
- package/es/components/eventBooking/index.js +7 -21
- package/es/components/eventBooking/locales.js +3 -3
- package/es/components/index.d.ts +1 -2
- package/es/components/index.js +1 -2
- package/es/components/listComponent/index.js +5 -5
- package/es/components/pay/toC/PaymentMethods/index.js +4 -5
- package/es/components/pay/toC/model.d.ts +9 -1
- package/es/components/productExtension/card/index.js +3 -3
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
- package/es/components/productExtension/fields/Forms/index.js +12 -12
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
- package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
- package/es/components/productExtension/server.js +2 -2
- package/es/components/ruleSetting/ruleBorder/index.js +1 -1
- package/es/components/schedules/calendar/index.js +4 -4
- package/es/components/schedules/calendar/serve.js +2 -2
- package/es/components/schedules/components/CurrentDay/index.js +5 -5
- package/es/components/schedules/components/CurrentDay/serve.js +2 -2
- package/es/components/schedules/components/DropdownSort/index.js +1 -1
- package/es/components/schedules/components/ResourceList/index.js +1 -1
- package/es/components/schedules/components/Search/index.js +5 -5
- package/es/components/schedules/model.d.ts +9 -1
- package/es/components/schedules/model.js +5 -5
- package/es/components/schedules/openHours/index.js +1 -1
- package/es/components/schedules/openHours/serve.js +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
- package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
- package/es/components/schedules/products/serve.js +2 -2
- package/es/components/schedules/products/utils.js +5 -5
- package/es/components/schedules/resources/detail/detailContent.js +2 -2
- package/es/components/schedules/resources/detail/index.js +10 -10
- package/es/components/schedules/resources/list/index.js +2 -2
- package/es/components/schedules/resources/relationProduct/index.js +1 -1
- package/es/components/schedules/resources/serve.js +2 -2
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
- package/es/components/schedules/utils.d.ts +1 -1
- package/es/components/schedules/utils.js +4 -4
- package/es/components/selectModal/index.js +2 -2
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +5 -6
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/es/components/ticketBooking/components/ticketBooking/index.js +3 -124
- package/es/components/ticketBooking/locales.d.ts +146 -164
- package/es/components/ticketBooking/locales.js +147 -195
- package/es/components/ticketBooking/utils/index.d.ts +1 -5
- package/es/components/ticketBooking/utils/index.js +6 -58
- 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/hooks/useComponents.js +1 -1
- package/es/index.d.ts +0 -1
- package/es/index.js +1 -2
- package/es/utils/index.d.ts +1 -1
- package/lib/businessModel/SalesModel/Sales/index.js +8 -22
- package/lib/components/Sales/Resource/index.js +1 -1
- package/lib/components/Sales/Resource/serve.d.ts +0 -7
- package/lib/components/Sales/Resource/serve.js +2 -9
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +4 -5
- package/lib/components/appointmentBooking/components/Cart/Item/index.less +3 -3
- package/lib/components/appointmentBooking/components/Content/index.less +1 -1
- package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Header/index.js +3 -2
- package/lib/components/appointmentBooking/components/Services/index.js +18 -19
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Voucher/index.js +0 -9
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +1 -0
- package/lib/components/appointmentBooking/index.d.ts +0 -1
- package/lib/components/appointmentBooking/index.js +0 -11
- package/lib/components/appointmentBooking/index.less +1 -1
- package/lib/components/appointmentBooking/locales.js +3 -3
- package/lib/components/booking/addons/index.js +2 -10
- package/lib/components/booking/addons/model.d.ts +10 -1
- package/lib/components/booking/addons/model.js +0 -3
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/selectProductItem/index.js +1 -5
- package/lib/components/booking/components/TabProduct/selectProductItem/index.less +0 -6
- package/lib/components/booking/components/footer/amount.js +1 -2
- package/lib/components/booking/components/footer/index.d.ts +0 -1
- package/lib/components/booking/components/footer/index.js +5 -10
- package/lib/components/booking/components/footer/utils.js +12 -48
- package/lib/components/booking/components/voucher/index.d.ts +0 -1
- package/lib/components/booking/components/voucher/index.js +67 -111
- 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/service2/utils.js +1 -3
- package/lib/components/booking/info/utils.js +3 -1
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/index.js +2 -2
- package/lib/components/booking/info2/service/editService/index.js +2 -5
- package/lib/components/booking/info2/utilsByBooking.d.ts +1 -1
- package/lib/components/booking/info2/utilsByBooking.js +2 -3
- package/lib/components/booking/locales.d.ts +0 -3
- package/lib/components/booking/locales.js +3 -6
- 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/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Event/index.js +3 -10
- package/lib/components/eventBooking/components/bookingDetailModal/index.js +3 -9
- package/lib/components/eventBooking/index.d.ts +0 -1
- package/lib/components/eventBooking/index.js +7 -11
- package/lib/components/eventBooking/locales.js +3 -3
- package/lib/components/index.d.ts +1 -2
- package/lib/components/index.js +0 -3
- package/lib/components/pay/toC/PaymentMethods/index.js +9 -10
- package/lib/components/pay/toC/model.d.ts +9 -1
- package/lib/components/schedules/model.d.ts +9 -1
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +4 -6
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.js +3 -124
- package/lib/components/ticketBooking/locales.d.ts +146 -164
- package/lib/components/ticketBooking/locales.js +4 -22
- package/lib/components/ticketBooking/utils/index.d.ts +1 -5
- package/lib/components/ticketBooking/utils/index.js +5 -48
- 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/index.d.ts +0 -1
- package/lib/index.js +0 -3
- package/lib/utils/index.d.ts +1 -1
- package/package.json +4 -4
- package/es/components/booking/components/voucher/utils.d.ts +0 -4
- package/es/components/booking/components/voucher/utils.js +0 -15
- package/es/components/stepController/components/Content/index.d.ts +0 -7
- package/es/components/stepController/components/Content/index.js +0 -9
- package/es/components/stepController/components/Content/index.less +0 -8
- package/es/components/stepController/components/Footer/index.d.ts +0 -8
- package/es/components/stepController/components/Footer/index.js +0 -15
- package/es/components/stepController/components/Footer/index.less +0 -39
- package/es/components/stepController/components/Header/index.d.ts +0 -20
- package/es/components/stepController/components/Header/index.js +0 -97
- package/es/components/stepController/components/Header/index.less +0 -21
- package/es/components/stepController/index.d.ts +0 -5
- package/es/components/stepController/index.js +0 -64
- package/es/components/stepController/index.less +0 -11
- package/es/components/stepController/locales.d.ts +0 -27
- package/es/components/stepController/locales.js +0 -32
- package/es/components/stepController/types.d.ts +0 -23
- package/es/components/stepController/types.js +0 -1
- package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
- package/es/components/ticketBooking/utils/formatProductMessage.js +0 -62
- package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
- package/es/components/ticketBooking/utils/formatTime.js +0 -144
- package/es/hooks/useWindowSize.d.ts +0 -5
- package/es/hooks/useWindowSize.js +0 -26
- package/lib/components/booking/components/voucher/utils.d.ts +0 -4
- package/lib/components/booking/components/voucher/utils.js +0 -43
- package/lib/components/stepController/components/Content/index.d.ts +0 -7
- package/lib/components/stepController/components/Content/index.js +0 -40
- package/lib/components/stepController/components/Content/index.less +0 -8
- package/lib/components/stepController/components/Footer/index.d.ts +0 -8
- package/lib/components/stepController/components/Footer/index.js +0 -49
- package/lib/components/stepController/components/Footer/index.less +0 -39
- package/lib/components/stepController/components/Header/index.d.ts +0 -20
- package/lib/components/stepController/components/Header/index.js +0 -104
- package/lib/components/stepController/components/Header/index.less +0 -21
- package/lib/components/stepController/index.d.ts +0 -5
- package/lib/components/stepController/index.js +0 -89
- package/lib/components/stepController/index.less +0 -11
- package/lib/components/stepController/locales.d.ts +0 -27
- package/lib/components/stepController/locales.js +0 -50
- package/lib/components/stepController/types.d.ts +0 -23
- package/lib/components/stepController/types.js +0 -17
- package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
- package/lib/components/ticketBooking/utils/formatProductMessage.js +0 -84
- package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
- package/lib/components/ticketBooking/utils/formatTime.js +0 -139
- package/lib/hooks/useWindowSize.d.ts +0 -5
- package/lib/hooks/useWindowSize.js +0 -51
- package/lowcode/step-controller/meta.ts +0 -88
package/es/utils/index.d.ts
CHANGED
|
@@ -18,6 +18,6 @@ declare let modal: Omit<ModalStaticFunctions, 'warn'>;
|
|
|
18
18
|
export declare const setModal: (m: Omit<ModalStaticFunctions, 'warn'>) => void;
|
|
19
19
|
export declare const saveConfirm: () => Promise<{
|
|
20
20
|
destroy: () => void;
|
|
21
|
-
update: (configUpdate: import("antd
|
|
21
|
+
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
22
22
|
}>;
|
|
23
23
|
export { modal };
|
|
@@ -35,7 +35,6 @@ __export(Sales_exports, {
|
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(Sales_exports);
|
|
37
37
|
var import_react = __toESM(require("react"));
|
|
38
|
-
var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext"));
|
|
39
38
|
var defaultData = {};
|
|
40
39
|
var SALES_MODEL_SESSION_STORAGE_KEY = "shop_h5_sales_model_data";
|
|
41
40
|
var SalesContext = (0, import_react.createContext)(
|
|
@@ -46,13 +45,14 @@ var SalesProvider = (props) => {
|
|
|
46
45
|
const dataRef = (0, import_react.useRef)({});
|
|
47
46
|
const [data, setData] = (0, import_react.useState)(defaultData);
|
|
48
47
|
const [hooks, setHooks] = (0, import_react.useState)(props.hooks);
|
|
49
|
-
const context = (0, import_useEngineContext.default)();
|
|
50
|
-
const utils = context.appHelper.utils || {};
|
|
51
48
|
const _setData = (newData) => {
|
|
52
49
|
dataRef.current = { ...dataRef.current, ...newData };
|
|
53
50
|
console.log("sales_model_newData", dataRef.current);
|
|
54
51
|
if (config == null ? void 0 : config.useSessionStorage) {
|
|
55
|
-
|
|
52
|
+
sessionStorage.setItem(
|
|
53
|
+
SALES_MODEL_SESSION_STORAGE_KEY,
|
|
54
|
+
JSON.stringify(dataRef.current || {})
|
|
55
|
+
);
|
|
56
56
|
}
|
|
57
57
|
setData({ ...dataRef.current });
|
|
58
58
|
};
|
|
@@ -60,28 +60,14 @@ var SalesProvider = (props) => {
|
|
|
60
60
|
return dataRef.current;
|
|
61
61
|
};
|
|
62
62
|
const setSessionStorage = () => {
|
|
63
|
-
var _a, _b, _c;
|
|
64
|
-
const history = ((_a = utils == null ? void 0 : utils.getHistory) == null ? void 0 : _a.call(utils)) || {};
|
|
65
|
-
const cacheId = ((_c = (_b = history == null ? void 0 : history.location) == null ? void 0 : _b.query) == null ? void 0 : _c.cacheId) || "";
|
|
66
|
-
const sessionData = { ...dataRef.current || {}, cacheId };
|
|
67
63
|
sessionStorage.setItem(
|
|
68
|
-
|
|
69
|
-
JSON.stringify(
|
|
64
|
+
SALES_MODEL_SESSION_STORAGE_KEY,
|
|
65
|
+
JSON.stringify(dataRef.current || {})
|
|
70
66
|
);
|
|
71
67
|
};
|
|
72
68
|
const getSessionStorage = () => {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
const strResult = sessionStorage.getItem(SALES_MODEL_SESSION_STORAGE_KEY);
|
|
76
|
-
const result = strResult ? JSON.parse(strResult || "{}") : {};
|
|
77
|
-
const cacheId = ((_c = (_b = history == null ? void 0 : history.location) == null ? void 0 : _b.query) == null ? void 0 : _c.cacheId) || "";
|
|
78
|
-
if (!cacheId && !(result == null ? void 0 : result.cacheId)) {
|
|
79
|
-
return result;
|
|
80
|
-
}
|
|
81
|
-
if (cacheId && (result == null ? void 0 : result.cacheId) === cacheId) {
|
|
82
|
-
return result;
|
|
83
|
-
}
|
|
84
|
-
return {};
|
|
69
|
+
const result = sessionStorage.getItem(SALES_MODEL_SESSION_STORAGE_KEY);
|
|
70
|
+
return JSON.parse(result || "{}");
|
|
85
71
|
};
|
|
86
72
|
const removeSessionStorage = () => {
|
|
87
73
|
sessionStorage.removeItem(SALES_MODEL_SESSION_STORAGE_KEY);
|
|
@@ -90,7 +90,7 @@ var ResourceProvider = ({
|
|
|
90
90
|
resourceMap.forEach((v) => renderData.push(v));
|
|
91
91
|
return renderData;
|
|
92
92
|
};
|
|
93
|
-
const getResourceList = (0, import_ahooks.useRequest)(import_serve.
|
|
93
|
+
const getResourceList = (0, import_ahooks.useRequest)(import_serve.getResourceListApi, {
|
|
94
94
|
manual: true,
|
|
95
95
|
onSuccess: (res) => {
|
|
96
96
|
const formatData = formatResourceList(res);
|
|
@@ -3,10 +3,3 @@ export declare const getResourceListApi: (params: {
|
|
|
3
3
|
shop_id: string;
|
|
4
4
|
form_data_status: string;
|
|
5
5
|
}) => Promise<any>;
|
|
6
|
-
/**
|
|
7
|
-
* @title: 获取特殊资源列表
|
|
8
|
-
* @Author: xiangfeng.xue
|
|
9
|
-
*/
|
|
10
|
-
export declare const getSpecialResourceListApi: (params: {
|
|
11
|
-
event_item_ids?: string | number[];
|
|
12
|
-
}) => Promise<any>;
|
|
@@ -19,21 +19,14 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
// src/components/Sales/Resource/serve.ts
|
|
20
20
|
var serve_exports = {};
|
|
21
21
|
__export(serve_exports, {
|
|
22
|
-
getResourceListApi: () => getResourceListApi
|
|
23
|
-
getSpecialResourceListApi: () => getSpecialResourceListApi
|
|
22
|
+
getResourceListApi: () => getResourceListApi
|
|
24
23
|
});
|
|
25
24
|
module.exports = __toCommonJS(serve_exports);
|
|
26
25
|
var import_utils = require("../../../utils");
|
|
27
26
|
var getResourceListApi = (params) => {
|
|
28
27
|
return import_utils.request.getRequest().get("/h5/form/data/v1", params, { useCache: true });
|
|
29
28
|
};
|
|
30
|
-
var getSpecialResourceListApi = (params) => {
|
|
31
|
-
return import_utils.request.getRequest().get("/h5/eventbookingv2/item/specify-resources", params, {
|
|
32
|
-
useCache: true
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
29
|
// Annotate the CommonJS export names for ESM import in node:
|
|
36
30
|
0 && (module.exports = {
|
|
37
|
-
getResourceListApi
|
|
38
|
-
getSpecialResourceListApi
|
|
31
|
+
getResourceListApi
|
|
39
32
|
});
|
|
@@ -25,7 +25,7 @@ export declare const calculateSubtotal: (items: CartItem[]) => string;
|
|
|
25
25
|
* @return {*}
|
|
26
26
|
* @Author: xiangfeng.xue
|
|
27
27
|
*/
|
|
28
|
-
export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) =>
|
|
28
|
+
export declare const calculateTaxFee: (shopInfo: any, items: CartItem[]) => "0.00" | Decimal;
|
|
29
29
|
/**
|
|
30
30
|
* 计算所有价格明细
|
|
31
31
|
* @param items - 购物车商品数组
|
|
@@ -46,7 +46,7 @@ var import_Deposit = __toESM(require("../../Deposit"));
|
|
|
46
46
|
var import_utils3 = require("../utils");
|
|
47
47
|
var import_index = require("./index.less");
|
|
48
48
|
var CartItem = ({ onNext }) => {
|
|
49
|
-
var _a, _b, _c, _d
|
|
49
|
+
var _a, _b, _c, _d;
|
|
50
50
|
const appointmentBooking = (0, import_hooks.useAppointmentBooking)();
|
|
51
51
|
const {
|
|
52
52
|
carts,
|
|
@@ -78,7 +78,6 @@ var CartItem = ({ onNext }) => {
|
|
|
78
78
|
return (0, import_utils2.formatHolder)(accountLists);
|
|
79
79
|
}, [accountLists, isFormSubject]);
|
|
80
80
|
const hasGoodPassApp = !!((_a = businessUtils == null ? void 0 : businessUtils.getAppByModal) == null ? void 0 : _a.call(businessUtils, "goodpass"));
|
|
81
|
-
const hasDiscountCardApp = !!((_b = businessUtils == null ? void 0 : businessUtils.getAppByModal) == null ? void 0 : _b.call(businessUtils, "discountcard"));
|
|
82
81
|
const handleClickCard = (e, type, val) => {
|
|
83
82
|
console.log(e, type, val, "handleClickCard");
|
|
84
83
|
if (type === "note") {
|
|
@@ -188,8 +187,8 @@ var CartItem = ({ onNext }) => {
|
|
|
188
187
|
hideAddBtn: false,
|
|
189
188
|
holders,
|
|
190
189
|
disabledEdit: isLastStep,
|
|
191
|
-
isShowChangeResource: (
|
|
192
|
-
isShowDelete: ((
|
|
190
|
+
isShowChangeResource: (_c = (_b = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _b.key) == null ? void 0 : _c.startsWith("select-resource"),
|
|
191
|
+
isShowDelete: ((_d = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _d.key) === "select-service",
|
|
193
192
|
isShowPackageNote: false,
|
|
194
193
|
isShowChangeHolder: isLastStep ? false : isFormSubject && isLogin,
|
|
195
194
|
isShowHolder: isFormSubject,
|
|
@@ -206,7 +205,7 @@ var CartItem = ({ onNext }) => {
|
|
|
206
205
|
onChange: (e, type, key) => handleClickCard(e, type, key)
|
|
207
206
|
}
|
|
208
207
|
)),
|
|
209
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-footer" }, hasGoodPassApp
|
|
208
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-footer" }, hasGoodPassApp ? /* @__PURE__ */ import_react.default.createElement(import_Voucher.default, { currentUser, products: carts }) : null, /* @__PURE__ */ import_react.default.createElement(import_Total.default, null), (carts == null ? void 0 : carts.length) > 0 && (deposit == null ? void 0 : deposit.hasDeposit) ? /* @__PURE__ */ import_react.default.createElement(import_Deposit.default, null) : null, /* @__PURE__ */ import_react.default.createElement(import_ContinueButton.default, { onNext }))
|
|
210
209
|
));
|
|
211
210
|
};
|
|
212
211
|
var Item_default = CartItem;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.appointment-cart-item-wrap {
|
|
2
|
-
height: calc(
|
|
2
|
+
height: calc(100vh - 100px);
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
flex-direction: column;
|
|
40
40
|
align-items: start;
|
|
41
41
|
|
|
42
|
-
>
|
|
42
|
+
>div {
|
|
43
43
|
display: flex;
|
|
44
44
|
align-items: center;
|
|
45
45
|
justify-content: space-between;
|
|
@@ -105,4 +105,4 @@
|
|
|
105
105
|
flex: none;
|
|
106
106
|
z-index: 10;
|
|
107
107
|
}
|
|
108
|
-
}
|
|
108
|
+
}
|
|
@@ -74,7 +74,7 @@ var Header = () => {
|
|
|
74
74
|
return ((_c = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _c.description) || "";
|
|
75
75
|
}, [(_a = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _a.key, currentSelectedResources]);
|
|
76
76
|
const handleBack = async () => {
|
|
77
|
-
var _a2;
|
|
77
|
+
var _a2, _b;
|
|
78
78
|
const key = (_a2 = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _a2.key;
|
|
79
79
|
const types = {
|
|
80
80
|
"select-time": "time",
|
|
@@ -89,7 +89,8 @@ var Header = () => {
|
|
|
89
89
|
}
|
|
90
90
|
if (key === "select-service") {
|
|
91
91
|
appointmentBooking.clearCart();
|
|
92
|
-
|
|
92
|
+
const type = await checkProductType((_b = carts == null ? void 0 : carts[0]) == null ? void 0 : _b.id);
|
|
93
|
+
if (type === "duration") {
|
|
93
94
|
appointmentBooking.deleteCartItemInfo("time");
|
|
94
95
|
}
|
|
95
96
|
}
|
|
@@ -74,7 +74,9 @@ var Services = (0, import_react.forwardRef)((props, ref) => {
|
|
|
74
74
|
let type = "";
|
|
75
75
|
if (!isRetailTemplate) {
|
|
76
76
|
type = await checkProductType(item == null ? void 0 : item.id);
|
|
77
|
-
|
|
77
|
+
if (type === "session") {
|
|
78
|
+
appointmentBooking.openProductDetail(item.id);
|
|
79
|
+
}
|
|
78
80
|
}
|
|
79
81
|
utils == null ? void 0 : utils.action({
|
|
80
82
|
type: "pisell1.productDetail",
|
|
@@ -84,10 +86,6 @@ var Services = (0, import_react.forwardRef)((props, ref) => {
|
|
|
84
86
|
},
|
|
85
87
|
callback: async (data) => {
|
|
86
88
|
var _a, _b;
|
|
87
|
-
if (data.isCancel) {
|
|
88
|
-
appointmentBooking.closeProductDetail();
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
89
|
const product = {
|
|
92
90
|
...data,
|
|
93
91
|
options: (data == null ? void 0 : data.option) || []
|
|
@@ -98,6 +96,13 @@ var Services = (0, import_react.forwardRef)((props, ref) => {
|
|
|
98
96
|
appointmentBooking.storeProduct(product);
|
|
99
97
|
return;
|
|
100
98
|
}
|
|
99
|
+
if (data == null ? void 0 : data.isCancel) {
|
|
100
|
+
if (type === "session") {
|
|
101
|
+
appointmentBooking.closeProductDetail();
|
|
102
|
+
appointmentBooking.getAvailableDate();
|
|
103
|
+
}
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
101
106
|
const session = data == null ? void 0 : data.session;
|
|
102
107
|
if (session) {
|
|
103
108
|
const startDate = (0, import_dayjs.default)(session == null ? void 0 : session.start_at).format("YYYY-MM-DD");
|
|
@@ -109,6 +114,7 @@ var Services = (0, import_react.forwardRef)((props, ref) => {
|
|
|
109
114
|
endTime: `${endDate} ${session == null ? void 0 : session.end_time}`
|
|
110
115
|
}
|
|
111
116
|
});
|
|
117
|
+
appointmentBooking.closeProductDetail();
|
|
112
118
|
await appointmentBooking.getAvailableDate({
|
|
113
119
|
startDate,
|
|
114
120
|
endDate
|
|
@@ -126,23 +132,16 @@ var Services = (0, import_react.forwardRef)((props, ref) => {
|
|
|
126
132
|
await appointmentBooking.getAvailableDate();
|
|
127
133
|
}
|
|
128
134
|
}
|
|
129
|
-
appointmentBooking.closeProductDetail();
|
|
130
135
|
if (isDateSelectedFirst) {
|
|
131
136
|
const index = (currentStep == null ? void 0 : currentStep.index) + 2;
|
|
132
|
-
if (type === "duration"
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
|
|
137
|
+
if (type === "duration") {
|
|
138
|
+
const description = import_utils.locales.getText(
|
|
139
|
+
"pisell2.appointment.select.time"
|
|
140
|
+
);
|
|
141
|
+
appointmentBooking.addStep(
|
|
142
|
+
{ index, key: "select-time", description },
|
|
143
|
+
"select-resource"
|
|
136
144
|
);
|
|
137
|
-
if (hasResourceStep) {
|
|
138
|
-
const description = import_utils.locales.getText(
|
|
139
|
-
"pisell2.appointment.select.time"
|
|
140
|
-
);
|
|
141
|
-
appointmentBooking.addStep(
|
|
142
|
-
{ index, key: "select-time", description },
|
|
143
|
-
"select-resource"
|
|
144
|
-
);
|
|
145
|
-
}
|
|
146
145
|
} else {
|
|
147
146
|
removeStep("select-time");
|
|
148
147
|
}
|
|
@@ -76,7 +76,6 @@ var VoucherCard = (props) => {
|
|
|
76
76
|
return discountList.filter((item) => !!item.isAvailable).map((discount) => {
|
|
77
77
|
return {
|
|
78
78
|
...discount,
|
|
79
|
-
isDisabled: discount.isDisabled || discount.isDisabledForProductUsed,
|
|
80
79
|
savedAmount: shopDiscount.calcDiscountApplicableProductTotalPrice(discount)
|
|
81
80
|
};
|
|
82
81
|
});
|
|
@@ -123,7 +122,6 @@ var VoucherCard = (props) => {
|
|
|
123
122
|
);
|
|
124
123
|
pisellos.effects.on("appointmentBooking_cart:onAddItem", onCartChange);
|
|
125
124
|
pisellos.effects.on("appointmentBooking_cart:onUpdateQuotationPrice", onCartChange);
|
|
126
|
-
pisellos.effects.on("appointmentBooking_cart:onUpdateCartItemNums", onCartChange);
|
|
127
125
|
pisellos.effects.on("appointmentBooking_cart:onRemoveItem", onCartChange);
|
|
128
126
|
pisellos.effects.on(
|
|
129
127
|
ShopDiscountHooks.onDiscountListChange,
|
|
@@ -171,11 +169,6 @@ var VoucherCard = (props) => {
|
|
|
171
169
|
import_utils.locales.getText("pisell2.text.goodpass.login")
|
|
172
170
|
), /* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("pisell2.text.goodpass.login-tip"))));
|
|
173
171
|
};
|
|
174
|
-
const mixedSort = (val) => {
|
|
175
|
-
return [...val].sort((a, b) => {
|
|
176
|
-
return Number(b == null ? void 0 : b.isSelected) - Number(a == null ? void 0 : a.isSelected);
|
|
177
|
-
});
|
|
178
|
-
};
|
|
179
172
|
const renderVoucherInfo = () => {
|
|
180
173
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "voucher-title" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "voucher-title-left" }, import_utils.locales.getText("pisell2.text.goodpass")), /* @__PURE__ */ import_react.default.createElement(
|
|
181
174
|
"span",
|
|
@@ -208,7 +201,6 @@ var VoucherCard = (props) => {
|
|
|
208
201
|
{
|
|
209
202
|
style: { width: "100%" },
|
|
210
203
|
dataSource: availableData,
|
|
211
|
-
mixedSort,
|
|
212
204
|
onChange: (val) => {
|
|
213
205
|
const detail = shopDiscount.setDiscountSelected({
|
|
214
206
|
discountId: val.id,
|
|
@@ -223,7 +215,6 @@ var VoucherCard = (props) => {
|
|
|
223
215
|
import_materials.PisellInput,
|
|
224
216
|
{
|
|
225
217
|
value: code,
|
|
226
|
-
allowClear: true,
|
|
227
218
|
onChange: (e) => {
|
|
228
219
|
var _a2;
|
|
229
220
|
setCode((_a2 = e.target) == null ? void 0 : _a2.value);
|
|
@@ -58,17 +58,6 @@ var AppointmentBooking = () => {
|
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
}, []);
|
|
61
|
-
(0, import_react.useEffect)(() => {
|
|
62
|
-
const setRealVH = () => {
|
|
63
|
-
const vh = window.innerHeight * 0.01;
|
|
64
|
-
document.documentElement.style.setProperty("--vh", `${vh}px`);
|
|
65
|
-
};
|
|
66
|
-
setRealVH();
|
|
67
|
-
window.addEventListener("resize", setRealVH);
|
|
68
|
-
return () => {
|
|
69
|
-
window.removeEventListener("resize", setRealVH);
|
|
70
|
-
};
|
|
71
|
-
}, []);
|
|
72
61
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
73
62
|
"div",
|
|
74
63
|
{
|
|
@@ -132,7 +132,7 @@ var locales_default = {
|
|
|
132
132
|
"pisell2.appointment.policy.confirm": "Confirm",
|
|
133
133
|
"pisell2.appointment.resource.tip": (val) => `Tip: Change ${val || "resource"} using the dropdown in the cart.`,
|
|
134
134
|
"pisell2.text.apply": "Apply",
|
|
135
|
-
"pisell2.text.goodpass": "
|
|
135
|
+
"pisell2.text.goodpass": "GoodPass",
|
|
136
136
|
"pisell2.text.goodpass.product-vouchers": "Product Vouchers",
|
|
137
137
|
"pisell2.text.goodpass.view-more": "View More",
|
|
138
138
|
"pisell2.text.goodpass.code": "Code",
|
|
@@ -250,7 +250,7 @@ var locales_default = {
|
|
|
250
250
|
"pisell2.appointment.policy.confirm": "确定",
|
|
251
251
|
"pisell2.appointment.resource.tip": (val) => `提示:在右侧购物车中,通过下拉框修改“${val || "资源"}”`,
|
|
252
252
|
"pisell2.text.apply": "应用",
|
|
253
|
-
"pisell2.text.goodpass": "
|
|
253
|
+
"pisell2.text.goodpass": "商品券",
|
|
254
254
|
"pisell2.text.goodpass.product-vouchers": "商品兑换券",
|
|
255
255
|
"pisell2.text.goodpass.view-more": "查看更多",
|
|
256
256
|
"pisell2.text.goodpass.code": "券码",
|
|
@@ -368,7 +368,7 @@ var locales_default = {
|
|
|
368
368
|
"pisell2.appointment.policy.confirm": "確定",
|
|
369
369
|
"pisell2.appointment.resource.tip": (val) => `提示:在右側購物車中,透過下拉框修改“${val || "資源"}”`,
|
|
370
370
|
"pisell2.text.apply": "應用",
|
|
371
|
-
"pisell2.text.goodpass": "
|
|
371
|
+
"pisell2.text.goodpass": "商品券",
|
|
372
372
|
"pisell2.text.goodpass.product-vouchers": "商品兌換券",
|
|
373
373
|
"pisell2.text.goodpass.view-more": "查看更多",
|
|
374
374
|
"pisell2.text.goodpass.code": "券碼",
|
|
@@ -106,13 +106,11 @@ var formatProductValues = (data) => {
|
|
|
106
106
|
...d,
|
|
107
107
|
id: d.product_id,
|
|
108
108
|
title: d.product_title,
|
|
109
|
-
isAddons: true,
|
|
110
109
|
quantity: d.product_quantity,
|
|
111
110
|
cover: d.product_cover,
|
|
112
111
|
price: Number(d.source_product_price),
|
|
113
112
|
_extend: {
|
|
114
113
|
total: Number(d.selling_price),
|
|
115
|
-
origin_total: Number(d.selling_price),
|
|
116
114
|
payment_price: Number(d.payment_price),
|
|
117
115
|
price: Number(d.source_product_price),
|
|
118
116
|
quantity: d.product_quantity,
|
|
@@ -238,7 +236,6 @@ var Addons = (0, import_model.Provider)((props) => {
|
|
|
238
236
|
let product = {
|
|
239
237
|
..._detail,
|
|
240
238
|
_id: (0, import_utils3.getUniqueId)(),
|
|
241
|
-
isAddons: true,
|
|
242
239
|
_key: e.key,
|
|
243
240
|
_extend: {
|
|
244
241
|
price: _detail.price,
|
|
@@ -249,11 +246,7 @@ var Addons = (0, import_model.Provider)((props) => {
|
|
|
249
246
|
};
|
|
250
247
|
let _total = (0, import_utils2.getProductTotalPrice)(product);
|
|
251
248
|
product._extend.total = _total;
|
|
252
|
-
|
|
253
|
-
let _item = _list.find((d) => {
|
|
254
|
-
var _a2;
|
|
255
|
-
return d._extend.other.rowKey === e.rowKey && !d.booking_id && !((_a2 = d.discount_list) == null ? void 0 : _a2.length);
|
|
256
|
-
});
|
|
249
|
+
let _item = _list.find((d) => d._extend.other.rowKey === e.rowKey);
|
|
257
250
|
if (_item) {
|
|
258
251
|
_item._extend.quantity = _item._extend.quantity + product.quantity;
|
|
259
252
|
} else {
|
|
@@ -399,7 +392,6 @@ var Addons = (0, import_model.Provider)((props) => {
|
|
|
399
392
|
let product = {
|
|
400
393
|
...item,
|
|
401
394
|
..._detail,
|
|
402
|
-
isAddons: true,
|
|
403
395
|
// 编辑商品时清除折扣信息
|
|
404
396
|
discount_list: [],
|
|
405
397
|
_extend: {
|
|
@@ -413,8 +405,8 @@ var Addons = (0, import_model.Provider)((props) => {
|
|
|
413
405
|
}
|
|
414
406
|
let _total = (0, import_utils2.getProductTotalPrice)(product);
|
|
415
407
|
product._extend.total = _total;
|
|
416
|
-
product._extend.origin_total = _total;
|
|
417
408
|
let _list = [...state.addons.value];
|
|
409
|
+
console.log("cacheItem", product);
|
|
418
410
|
_list = _list.map((d) => d._id === product._id ? product : d);
|
|
419
411
|
dispatch({
|
|
420
412
|
type: "setAddons",
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormState } from "../model";
|
|
3
|
+
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
+
state: FormState;
|
|
5
|
+
} & {
|
|
6
|
+
dispatch: (params: {
|
|
7
|
+
type: string;
|
|
8
|
+
payload: any;
|
|
9
|
+
}) => void;
|
|
10
|
+
}>;
|
|
@@ -34,9 +34,6 @@ var { Provider, Context } = (0, import_utils.miniRedux)({
|
|
|
34
34
|
},
|
|
35
35
|
setAddons(state, payload) {
|
|
36
36
|
state.setGlobalState({ addons: { ...state.addons, ...payload } });
|
|
37
|
-
},
|
|
38
|
-
setService(state, payload) {
|
|
39
|
-
state.setGlobalState({ service: { ...state.service, ...payload } });
|
|
40
37
|
}
|
|
41
38
|
}
|
|
42
39
|
});
|
|
@@ -101,11 +101,7 @@ var SelectProductItem = ({
|
|
|
101
101
|
disabled
|
|
102
102
|
}
|
|
103
103
|
),
|
|
104
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "server-select-product-total" },
|
|
105
|
-
item._extend.origin_total * item._extend.quantity,
|
|
106
|
-
2,
|
|
107
|
-
amountSymbol
|
|
108
|
-
)), (0, import_utils.formatAmount)(
|
|
104
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "server-select-product-total" }, (0, import_utils.formatAmount)(
|
|
109
105
|
item._extend.total * item._extend.quantity,
|
|
110
106
|
2,
|
|
111
107
|
amountSymbol
|
|
@@ -66,7 +66,6 @@
|
|
|
66
66
|
font-style: normal;
|
|
67
67
|
font-weight: 400;
|
|
68
68
|
|
|
69
|
-
|
|
70
69
|
.server-select-product-total {
|
|
71
70
|
color: var(--Base-Black, #000);
|
|
72
71
|
font-size: 16px;
|
|
@@ -74,11 +73,6 @@
|
|
|
74
73
|
font-weight: 500;
|
|
75
74
|
line-height: 24px;
|
|
76
75
|
}
|
|
77
|
-
.server-select-product-origin-total {
|
|
78
|
-
text-decoration: line-through;
|
|
79
|
-
color: #4e4e4e;
|
|
80
|
-
margin-right: 12px;
|
|
81
|
-
}
|
|
82
76
|
}
|
|
83
77
|
|
|
84
78
|
|
|
@@ -50,8 +50,7 @@ var getProductAmount = (state, isEdit) => {
|
|
|
50
50
|
const _duration = (0, import_utils3.isDayBookingProduct)(item, state) ? item._extend.duration : 0;
|
|
51
51
|
duration += _duration;
|
|
52
52
|
} else {
|
|
53
|
-
|
|
54
|
-
price += Number(item._extend.total) * Number(quantity);
|
|
53
|
+
price += Number(item._extend.total);
|
|
55
54
|
price += getRelationDetailsTotal(item._extend.relation_details || []);
|
|
56
55
|
duration += import_utils.flexibleObj.getValue(item._extend.duration);
|
|
57
56
|
}
|
|
@@ -54,7 +54,7 @@ var import_useIsBooking4Shop = require("../../hooks/useIsBooking4Shop");
|
|
|
54
54
|
var import_utils4 = require("@pisell/utils");
|
|
55
55
|
var import_dayjs = __toESM(require("dayjs"));
|
|
56
56
|
var Footer = (props) => {
|
|
57
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k
|
|
57
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
58
58
|
const { state, buttons, dispatch, source } = props;
|
|
59
59
|
const [showDetail, setShowDetail] = (0, import_react.useState)(false);
|
|
60
60
|
const [loading, setLoading] = (0, import_react.useState)(false);
|
|
@@ -194,7 +194,6 @@ var Footer = (props) => {
|
|
|
194
194
|
return false;
|
|
195
195
|
}, [state, params]);
|
|
196
196
|
const hasGoodPassApp = !!((_h = businessUtils == null ? void 0 : businessUtils.getAppByModal) == null ? void 0 : _h.call(businessUtils, "goodpass"));
|
|
197
|
-
const hasDiscountCardApp = !!((_i = businessUtils == null ? void 0 : businessUtils.getAppByModal) == null ? void 0 : _i.call(businessUtils, "discountcard"));
|
|
198
197
|
console.log("has goodpass app:", hasGoodPassApp);
|
|
199
198
|
const goCheckout = async (order_id) => {
|
|
200
199
|
var _a2, _b2;
|
|
@@ -799,7 +798,7 @@ var Footer = (props) => {
|
|
|
799
798
|
}, [
|
|
800
799
|
state.bookingId,
|
|
801
800
|
state.bookingDetail,
|
|
802
|
-
(
|
|
801
|
+
(_i = state.addons) == null ? void 0 : _i.load,
|
|
803
802
|
state.renderType
|
|
804
803
|
]);
|
|
805
804
|
const menuChange = (e) => {
|
|
@@ -882,7 +881,7 @@ var Footer = (props) => {
|
|
|
882
881
|
label: import_utils.locales.getText("pisell1.text.rounding")
|
|
883
882
|
}
|
|
884
883
|
];
|
|
885
|
-
}, [total, (
|
|
884
|
+
}, [total, (_j = state.bookingDetail) == null ? void 0 : _j.surcharge, state, state.bookingId]);
|
|
886
885
|
const orderTotalList = (0, import_react.useMemo)(() => {
|
|
887
886
|
return [
|
|
888
887
|
// 订单已付金额
|
|
@@ -916,12 +915,8 @@ var Footer = (props) => {
|
|
|
916
915
|
label: import_utils.locales.getText("pisell2.text.refunded-amount")
|
|
917
916
|
}
|
|
918
917
|
];
|
|
919
|
-
}, [total, (
|
|
920
|
-
|
|
921
|
-
var _a2;
|
|
922
|
-
return ["partially_refunded", "refunded"].includes((_a2 = state == null ? void 0 : state.bookingDetail) == null ? void 0 : _a2.payment_status);
|
|
923
|
-
}, [state == null ? void 0 : state.bookingDetail]);
|
|
924
|
-
return /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { title: false, round: true, loading: showFooter, active: true }, (hasGoodPassApp || hasDiscountCardApp) && ["addons", "info"].includes(source) && !paymentRefundedStatus ? /* @__PURE__ */ import_react.default.createElement(import_voucher.default, { state, dispatch, source }) : null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-footer-total" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left-total" }, totalText), /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left-arrears" }, arrearsText)), /* @__PURE__ */ import_react.default.createElement(
|
|
918
|
+
}, [total, (_k = state.bookingDetail) == null ? void 0 : _k.surcharge, state, state.bookingId]);
|
|
919
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { title: false, round: true, loading: showFooter, active: true }, hasGoodPassApp && source === "info" ? /* @__PURE__ */ import_react.default.createElement(import_voucher.default, { state, dispatch }) : null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-footer-total" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left-total" }, totalText), /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left-arrears" }, arrearsText)), /* @__PURE__ */ import_react.default.createElement(
|
|
925
920
|
"span",
|
|
926
921
|
{
|
|
927
922
|
className: "pisell-lowcode__booking-footer-right",
|