@pisell/private-materials 3.2.17 → 3.2.19
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 +7 -7
- package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/ContinueButton/index.js +19 -10
- package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/Item/Total.js +10 -20
- package/es/components/appointmentBooking/components/Cart/Item/index.js +73 -0
- package/es/components/appointmentBooking/components/Content/index.js +29 -15
- package/es/components/appointmentBooking/components/Date/index.js +77 -12
- package/es/components/appointmentBooking/components/Date/index.less +1 -0
- package/es/components/appointmentBooking/components/Footer/index.js +3 -3
- package/es/components/appointmentBooking/components/Guest/index.d.ts +3 -0
- package/es/components/appointmentBooking/components/{Provider/Information → Guest}/index.js +50 -59
- package/es/components/appointmentBooking/components/Header/index.js +6 -4
- package/es/components/appointmentBooking/components/Resource/index.d.ts +1 -1
- package/es/components/appointmentBooking/components/Resource/index.js +62 -29
- package/es/components/appointmentBooking/components/Resource/index.less +6 -0
- package/es/components/appointmentBooking/components/Services/index.js +25 -135
- package/es/components/appointmentBooking/components/TimeSlicing/index.d.ts +1 -1
- package/es/components/appointmentBooking/components/TimeSlicing/index.js +57 -755
- package/es/components/appointmentBooking/context.d.ts +23 -0
- package/es/components/appointmentBooking/context.js +71 -0
- package/es/components/appointmentBooking/hooks.d.ts +6 -8
- package/es/components/appointmentBooking/hooks.js +119 -62
- package/es/components/appointmentBooking/index.js +2 -3
- package/es/components/appointmentBooking/locales.d.ts +12 -0
- package/es/components/appointmentBooking/locales.js +21 -3
- package/es/components/appointmentBooking/utils.d.ts +12 -0
- package/es/components/appointmentBooking/utils.js +70 -0
- package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/ContinueButton/index.js +18 -16
- package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/Item/Total.js +7 -11
- package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/Item/index.js +22 -21
- package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/index.js +1 -1
- package/lib/components/appointmentBooking/components/Content/index.js +26 -14
- package/lib/components/appointmentBooking/components/Date/index.js +53 -16
- package/lib/components/appointmentBooking/components/Date/index.less +1 -0
- package/lib/components/appointmentBooking/components/Footer/index.js +3 -3
- package/lib/components/appointmentBooking/components/Guest/index.d.ts +3 -0
- package/lib/components/appointmentBooking/components/{Provider/Information → Guest}/index.js +43 -52
- package/lib/components/appointmentBooking/components/Header/index.js +2 -3
- package/lib/components/appointmentBooking/components/Resource/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Resource/index.js +55 -41
- package/lib/components/appointmentBooking/components/Resource/index.less +6 -0
- package/lib/components/appointmentBooking/components/Services/index.js +15 -155
- package/lib/components/appointmentBooking/components/TimeSlicing/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/TimeSlicing/index.js +27 -940
- package/lib/components/appointmentBooking/context.d.ts +23 -0
- package/lib/components/appointmentBooking/context.js +85 -0
- package/lib/components/appointmentBooking/hooks.d.ts +6 -8
- package/lib/components/appointmentBooking/hooks.js +44 -20
- package/lib/components/appointmentBooking/index.js +2 -5
- package/lib/components/appointmentBooking/locales.d.ts +12 -0
- package/lib/components/appointmentBooking/locales.js +15 -3
- package/lib/components/appointmentBooking/utils.d.ts +12 -0
- package/lib/components/appointmentBooking/utils.js +62 -2
- package/package.json +2 -2
- package/es/components/appointmentBooking/components/Information/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Information/index.js +0 -178
- package/es/components/appointmentBooking/components/Provider/Cart/Item/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Provider/Cart/Item/index.js +0 -68
- package/es/components/appointmentBooking/components/Provider/Content/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Provider/Content/index.js +0 -64
- package/es/components/appointmentBooking/components/Provider/Content/index.less +0 -31
- package/es/components/appointmentBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Provider/EmptyHolderModal/index.js +0 -34
- package/es/components/appointmentBooking/components/Provider/EmptyHolderModal/index.less +0 -17
- package/es/components/appointmentBooking/components/Provider/Event/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Provider/Event/index.js +0 -93
- package/es/components/appointmentBooking/components/Provider/Event/index.less +0 -20
- package/es/components/appointmentBooking/components/Provider/Information/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Provider/InformationOptionsModal/index.js +0 -34
- package/es/components/appointmentBooking/components/Provider/InformationOptionsModal/index.less +0 -27
- package/es/components/appointmentBooking/components/Provider/OrderProductModal/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Provider/OrderProductModal/index.js +0 -27
- package/es/components/appointmentBooking/components/Provider/OrderProductModal/index.less +0 -32
- package/es/components/appointmentBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -2
- package/es/components/appointmentBooking/components/Provider/RemoveOptionConfirmModal.js +0 -31
- package/es/components/appointmentBooking/components/Provider/Resource/index.d.ts +0 -3
- package/es/components/appointmentBooking/components/Provider/Resource/index.js +0 -79
- package/es/components/appointmentBooking/components/Provider/Resource/index.less +0 -46
- package/es/components/appointmentBooking/components/Provider/SelectHolderModal.d.ts +0 -2
- package/es/components/appointmentBooking/components/Provider/SelectHolderModal.js +0 -90
- package/es/components/appointmentBooking/components/Provider/SelectProduct/index.d.ts +0 -4
- package/es/components/appointmentBooking/components/Provider/SelectProduct/index.js +0 -77
- package/es/components/appointmentBooking/components/Provider/SelectProduct/index.less +0 -131
- package/es/components/booking/info/service2/utils.d.ts +0 -240
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -3
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Information/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Information/index.js +0 -151
- package/lib/components/appointmentBooking/components/Information/index.less +0 -92
- package/lib/components/appointmentBooking/components/Provider/Cart/Item/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Provider/Content/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Provider/Content/index.js +0 -90
- package/lib/components/appointmentBooking/components/Provider/Content/index.less +0 -31
- package/lib/components/appointmentBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Provider/EmptyHolderModal/index.js +0 -60
- package/lib/components/appointmentBooking/components/Provider/EmptyHolderModal/index.less +0 -17
- package/lib/components/appointmentBooking/components/Provider/Event/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Provider/Event/index.js +0 -100
- package/lib/components/appointmentBooking/components/Provider/Event/index.less +0 -20
- package/lib/components/appointmentBooking/components/Provider/Information/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Provider/Information/index.less +0 -92
- package/lib/components/appointmentBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Provider/InformationOptionsModal/index.js +0 -67
- package/lib/components/appointmentBooking/components/Provider/InformationOptionsModal/index.less +0 -27
- package/lib/components/appointmentBooking/components/Provider/OrderProductModal/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Provider/OrderProductModal/index.js +0 -57
- package/lib/components/appointmentBooking/components/Provider/OrderProductModal/index.less +0 -32
- package/lib/components/appointmentBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -2
- package/lib/components/appointmentBooking/components/Provider/RemoveOptionConfirmModal.js +0 -62
- package/lib/components/appointmentBooking/components/Provider/Resource/index.d.ts +0 -3
- package/lib/components/appointmentBooking/components/Provider/Resource/index.js +0 -90
- package/lib/components/appointmentBooking/components/Provider/Resource/index.less +0 -46
- package/lib/components/appointmentBooking/components/Provider/SelectHolderModal.d.ts +0 -2
- package/lib/components/appointmentBooking/components/Provider/SelectHolderModal.js +0 -97
- package/lib/components/appointmentBooking/components/Provider/SelectProduct/index.d.ts +0 -4
- package/lib/components/appointmentBooking/components/Provider/SelectProduct/index.js +0 -69
- package/lib/components/appointmentBooking/components/Provider/SelectProduct/index.less +0 -131
- package/lib/components/booking/info/service2/utils.d.ts +0 -240
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -3
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -3
- /package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/ContinueButton/index.d.ts +0 -0
- /package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/ContinueButton/index.less +0 -0
- /package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/Item/Total.d.ts +0 -0
- /package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/Item/index.less +0 -0
- /package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/index.d.ts +0 -0
- /package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/index.js +0 -0
- /package/es/components/appointmentBooking/components/{Provider/Cart → Cart}/index.less +0 -0
- /package/es/components/appointmentBooking/components/{Information → Guest}/index.less +0 -0
- /package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/ContinueButton/index.d.ts +0 -0
- /package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/ContinueButton/index.less +0 -0
- /package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/Item/Total.d.ts +0 -0
- /package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/Item/index.less +0 -0
- /package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/index.d.ts +0 -0
- /package/lib/components/appointmentBooking/components/{Provider/Cart → Cart}/index.less +0 -0
- /package/{es/components/appointmentBooking/components/Provider/Information → lib/components/appointmentBooking/components/Guest}/index.less +0 -0
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { isMobile, locales } from '@pisell/utils';
|
|
3
|
-
import ShoppingCart from "../../../../../shoppingCart";
|
|
4
|
-
// import { useCart, useHolder, useSummary, useStep } from '../../../../../Sales';
|
|
5
|
-
|
|
6
|
-
import ContinueButton from "../ContinueButton";
|
|
7
|
-
import { useAppointmentBookingCart, useAppointmentBookingAccount, useAppointmentBookingStep } from "../../../../hooks";
|
|
8
|
-
import Total from "./Total";
|
|
9
|
-
import "./index.less";
|
|
10
|
-
var CartItem = function CartItem() {
|
|
11
|
-
// const { open, holderData, selectedHolderIds } = useHolder();
|
|
12
|
-
// const {
|
|
13
|
-
// deleteCartItem,
|
|
14
|
-
// deleteCartItemByHolder,
|
|
15
|
-
// cartData,
|
|
16
|
-
// addNoteToCartItem,
|
|
17
|
-
// } = useCart();
|
|
18
|
-
// const { subtotal } = useSummary();
|
|
19
|
-
// const { isLastStep } = useStep();
|
|
20
|
-
var open = false;
|
|
21
|
-
var holderData = {};
|
|
22
|
-
var selectedHolderIds = [];
|
|
23
|
-
var cartData = {};
|
|
24
|
-
var appointmentBookingCart = useAppointmentBookingCart();
|
|
25
|
-
var appointmentBookingAccount = useAppointmentBookingAccount();
|
|
26
|
-
var appointmentBookingStep = useAppointmentBookingStep();
|
|
27
|
-
var products = appointmentBookingCart.products;
|
|
28
|
-
var isLastStep = appointmentBookingStep.isLastStep;
|
|
29
|
-
console.log(appointmentBookingCart, appointmentBookingAccount, 'whappointmentBookingCart');
|
|
30
|
-
var handleClickCard = function handleClickCard(e, type, key) {
|
|
31
|
-
if (type === 'note') {
|
|
32
|
-
// return addNoteToCartItem(e);
|
|
33
|
-
}
|
|
34
|
-
console.log(e, type, key, 'wh9988767');
|
|
35
|
-
// 删除
|
|
36
|
-
if (type === 'delete') {
|
|
37
|
-
// return deleteCartItem(e);
|
|
38
|
-
}
|
|
39
|
-
if (type === 'delete_holders') {
|
|
40
|
-
// return deleteCartItemByHolder(key);
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
44
|
-
className: "cart-item-wrap ".concat(isMobile() ? 'cart-mobile-item-wrap' : '')
|
|
45
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
46
|
-
className: "content"
|
|
47
|
-
}, /*#__PURE__*/React.createElement(ShoppingCart, {
|
|
48
|
-
productParams: {
|
|
49
|
-
products: products,
|
|
50
|
-
hideAddBtn: false,
|
|
51
|
-
holders: (holderData === null || holderData === void 0 ? void 0 : holderData.selectedHolderItems) || [],
|
|
52
|
-
disabledEdit: isLastStep
|
|
53
|
-
},
|
|
54
|
-
collapseParams: {
|
|
55
|
-
activeKey: selectedHolderIds,
|
|
56
|
-
ghost: true
|
|
57
|
-
},
|
|
58
|
-
platform: "h5",
|
|
59
|
-
emptyText: locales.getText('pisell2.event.empty.service'),
|
|
60
|
-
isOpenGroup: !!(selectedHolderIds !== null && selectedHolderIds !== void 0 && selectedHolderIds.length),
|
|
61
|
-
onChange: function onChange(e, type, key) {
|
|
62
|
-
return handleClickCard(e, type, key);
|
|
63
|
-
}
|
|
64
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
65
|
-
className: "event-footer"
|
|
66
|
-
}, /*#__PURE__*/React.createElement(Total, null), /*#__PURE__*/React.createElement(ContinueButton, null))));
|
|
67
|
-
};
|
|
68
|
-
export default CartItem;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import React, { useMemo, useEffect } from 'react';
|
|
2
|
-
// import { useStep } from '../../../../Sales';
|
|
3
|
-
import { isMobile } from '@pisell/utils';
|
|
4
|
-
import Resource from "../Resource";
|
|
5
|
-
import Event from "../Event";
|
|
6
|
-
import Information from "../Information";
|
|
7
|
-
import "./index.less";
|
|
8
|
-
var Layout = function Layout() {
|
|
9
|
-
// const { currentStepData, isFirstStep } = useStep();
|
|
10
|
-
var currentStepData = {
|
|
11
|
-
key: 'select-event'
|
|
12
|
-
};
|
|
13
|
-
var isFirstStep = false;
|
|
14
|
-
useEffect(function () {
|
|
15
|
-
window.scrollTo({
|
|
16
|
-
top: 0,
|
|
17
|
-
behavior: 'smooth'
|
|
18
|
-
});
|
|
19
|
-
}, [currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.key]);
|
|
20
|
-
var Com = useMemo(function () {
|
|
21
|
-
var key = currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.key;
|
|
22
|
-
if (!key) return null;
|
|
23
|
-
var components = {
|
|
24
|
-
// 选择资源
|
|
25
|
-
'select-category': Resource,
|
|
26
|
-
// 选择event
|
|
27
|
-
'select-event': Event,
|
|
28
|
-
// 确认信息
|
|
29
|
-
'confirm-information': Information
|
|
30
|
-
};
|
|
31
|
-
var Com = components[key];
|
|
32
|
-
return /*#__PURE__*/React.createElement(Com, null);
|
|
33
|
-
}, [currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.key]);
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* @title: 动态计算中间内容区域的高度
|
|
37
|
-
* @description:
|
|
38
|
-
* @return {*}
|
|
39
|
-
* @Author: WangHan
|
|
40
|
-
* @Date: 2025-02-18 15:36
|
|
41
|
-
*/
|
|
42
|
-
useEffect(function () {
|
|
43
|
-
if (isMobile()) {
|
|
44
|
-
var _header$getBoundingCl, _footer$getBoundingCl;
|
|
45
|
-
var header = document.querySelector('.event-progress-bar');
|
|
46
|
-
var footer = document.querySelector('.pisell-section-footers-wrapper');
|
|
47
|
-
var content = document.querySelector('.event-content-mobile-wrap');
|
|
48
|
-
var headerHeight = (header === null || header === void 0 || (_header$getBoundingCl = header.getBoundingClientRect()) === null || _header$getBoundingCl === void 0 ? void 0 : _header$getBoundingCl.height) || 0;
|
|
49
|
-
var footerHeight = (footer === null || footer === void 0 || (_footer$getBoundingCl = footer.getBoundingClientRect()) === null || _footer$getBoundingCl === void 0 ? void 0 : _footer$getBoundingCl.height) || 0;
|
|
50
|
-
var windowHeight = window.innerHeight;
|
|
51
|
-
var contentHeight = windowHeight - headerHeight - footerHeight;
|
|
52
|
-
if (content && content !== null && content !== void 0 && content.style) {
|
|
53
|
-
content.style.height = "".concat(contentHeight, "px");
|
|
54
|
-
content.style.overflowY = 'auto';
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}, [currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.key]);
|
|
58
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
59
|
-
className: "event-content-wrap ".concat(isMobile() ? 'event-content-mobile-wrap' : '')
|
|
60
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
61
|
-
className: "event-content-left"
|
|
62
|
-
}, "content"));
|
|
63
|
-
};
|
|
64
|
-
export default Layout;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
.event-content-wrap {
|
|
2
|
-
width: 1000px;
|
|
3
|
-
display: flex;
|
|
4
|
-
gap: 6px;
|
|
5
|
-
// align-items: center;
|
|
6
|
-
flex: 1;
|
|
7
|
-
|
|
8
|
-
.event-content-left {
|
|
9
|
-
flex: 1;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.event-content-right {
|
|
13
|
-
margin-top: 16px;
|
|
14
|
-
width: 360px;
|
|
15
|
-
position: sticky;
|
|
16
|
-
top: 93px;
|
|
17
|
-
height: fit-content;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.event-content-mobile-wrap {
|
|
22
|
-
width: 100%;
|
|
23
|
-
flex: none;
|
|
24
|
-
.event-content-left {
|
|
25
|
-
width: 100%;
|
|
26
|
-
flex: none;
|
|
27
|
-
.provider-information-wrap {
|
|
28
|
-
width: 100%;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import React, { useMemo } from 'react';
|
|
2
|
-
import { PisellModal } from '@pisell/materials';
|
|
3
|
-
import { locales } from '@pisell/utils';
|
|
4
|
-
import "./index.less";
|
|
5
|
-
var EmptyHolderModal = function EmptyHolderModal(props) {
|
|
6
|
-
var open = props.open,
|
|
7
|
-
_onCancel = props.onCancel,
|
|
8
|
-
_onOk = props.onOk,
|
|
9
|
-
lists = props.lists;
|
|
10
|
-
var content = useMemo(function () {
|
|
11
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
12
|
-
className: "event-booking-empty-holder-describe"
|
|
13
|
-
}, /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.event.empty.holder.tip')), /*#__PURE__*/React.createElement("ul", null, lists.map(function (item, index) {
|
|
14
|
-
return /*#__PURE__*/React.createElement("li", {
|
|
15
|
-
key: index
|
|
16
|
-
}, item);
|
|
17
|
-
})), /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.event.empty.holder.continue.tip')));
|
|
18
|
-
}, [lists]);
|
|
19
|
-
return /*#__PURE__*/React.createElement(PisellModal.Information, {
|
|
20
|
-
open: open,
|
|
21
|
-
title: locales.getText('pisell2.event.empty.holder.title'),
|
|
22
|
-
describe: content,
|
|
23
|
-
okText: locales.getText('pisell2.event.empty.holder.continue.anyway'),
|
|
24
|
-
cancelText: locales.getText('pisell2.event.empty.holder.go.back'),
|
|
25
|
-
closable: true,
|
|
26
|
-
onCancel: function onCancel() {
|
|
27
|
-
return _onCancel();
|
|
28
|
-
},
|
|
29
|
-
onOk: function onOk() {
|
|
30
|
-
return _onOk();
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
export default EmptyHolderModal;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
.event-booking-empty-holder-describe {
|
|
2
|
-
color: var(--Gray-900, #101828);
|
|
3
|
-
font-size: 16px;
|
|
4
|
-
font-weight: 400;
|
|
5
|
-
line-height: 24px;
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
gap: 4px;
|
|
9
|
-
|
|
10
|
-
ul {
|
|
11
|
-
list-style-type: disc !important;
|
|
12
|
-
padding-left: 20px;
|
|
13
|
-
li {
|
|
14
|
-
list-style-type: disc !important;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
-
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."); }
|
|
3
|
-
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); }
|
|
4
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
-
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; } }
|
|
6
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
import React, { useEffect, useState } from 'react';
|
|
8
|
-
import { isMobile, locales } from '@pisell/utils';
|
|
9
|
-
import { Skeleton } from 'antd';
|
|
10
|
-
import { useEvent, useSales, useEventDetail } from "../../../../Sales";
|
|
11
|
-
import BookingServiceList from "../../bookingServiceList";
|
|
12
|
-
import BookingDetailModal from "../../bookingDetailModal";
|
|
13
|
-
import "./index.less";
|
|
14
|
-
var Event = function Event() {
|
|
15
|
-
var _data$resourceData2;
|
|
16
|
-
var _useEvent = useEvent(),
|
|
17
|
-
eventData = _useEvent.eventData,
|
|
18
|
-
selectEvent = _useEvent.selectEvent,
|
|
19
|
-
getEventList = _useEvent.getEventList,
|
|
20
|
-
getEventListByTitle = _useEvent.getEventListByTitle;
|
|
21
|
-
var _useSales = useSales(),
|
|
22
|
-
data = _useSales.data;
|
|
23
|
-
var _useEventDetail = useEventDetail(),
|
|
24
|
-
onOpenEventDetail = _useEventDetail.onOpenEventDetail,
|
|
25
|
-
open = _useEventDetail.open;
|
|
26
|
-
var _useState = useState(),
|
|
27
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
28
|
-
lists = _useState2[0],
|
|
29
|
-
setLists = _useState2[1];
|
|
30
|
-
useEffect(function () {
|
|
31
|
-
setLists((eventData === null || eventData === void 0 ? void 0 : eventData.eventList) || []);
|
|
32
|
-
}, [eventData === null || eventData === void 0 ? void 0 : eventData.eventList]);
|
|
33
|
-
useEffect(function () {
|
|
34
|
-
var _data$resourceData;
|
|
35
|
-
var id = data === null || data === void 0 || (_data$resourceData = data.resourceData) === null || _data$resourceData === void 0 || (_data$resourceData = _data$resourceData.currentResourceItem) === null || _data$resourceData === void 0 ? void 0 : _data$resourceData.id;
|
|
36
|
-
if (!id) return;
|
|
37
|
-
getEventList.run({
|
|
38
|
-
event_item_resource_id: id,
|
|
39
|
-
skip: 1,
|
|
40
|
-
num: 100
|
|
41
|
-
});
|
|
42
|
-
}, [data === null || data === void 0 || (_data$resourceData2 = data.resourceData) === null || _data$resourceData2 === void 0 || (_data$resourceData2 = _data$resourceData2.currentResourceItem) === null || _data$resourceData2 === void 0 ? void 0 : _data$resourceData2.id]);
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @title: 点击选择event
|
|
46
|
-
* @description:
|
|
47
|
-
* @param {any} item
|
|
48
|
-
* @return {*}
|
|
49
|
-
* @Author: WangHan
|
|
50
|
-
* @Date: 2025-01-15 22:06
|
|
51
|
-
*/
|
|
52
|
-
var handleClick = function handleClick(item) {
|
|
53
|
-
selectEvent(item);
|
|
54
|
-
onOpenEventDetail(item);
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @title: 搜索
|
|
59
|
-
* @description:
|
|
60
|
-
* @param {string} value
|
|
61
|
-
* @return {*}
|
|
62
|
-
* @Author: WangHan
|
|
63
|
-
* @Date: 2025-01-16 10:25
|
|
64
|
-
*/
|
|
65
|
-
var handleSearch = function handleSearch(e) {
|
|
66
|
-
var _e$target;
|
|
67
|
-
var value = (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value;
|
|
68
|
-
var events = getEventListByTitle(value);
|
|
69
|
-
setLists(events);
|
|
70
|
-
};
|
|
71
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
72
|
-
className: "event-interface-service-wrap ".concat(isMobile() ? 'event-interface-service-mobile-wrap' : '')
|
|
73
|
-
}, /*#__PURE__*/React.createElement(Skeleton, {
|
|
74
|
-
active: true,
|
|
75
|
-
loading: getEventList.loading,
|
|
76
|
-
style: {
|
|
77
|
-
padding: '16px'
|
|
78
|
-
}
|
|
79
|
-
}, /*#__PURE__*/React.createElement(BookingServiceList, {
|
|
80
|
-
dataSource: lists,
|
|
81
|
-
showSearch: true,
|
|
82
|
-
showCategory: false,
|
|
83
|
-
showImage: true,
|
|
84
|
-
onClick: handleClick,
|
|
85
|
-
onSearch: handleSearch,
|
|
86
|
-
placeholder: locales.getText('pisell2.event.search'),
|
|
87
|
-
isShowEmpty: !getEventList.loading,
|
|
88
|
-
description: locales.getText('pisell2.event.empty.event')
|
|
89
|
-
}))), /*#__PURE__*/React.createElement(BookingDetailModal, {
|
|
90
|
-
open: open
|
|
91
|
-
}));
|
|
92
|
-
};
|
|
93
|
-
export default Event;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
.event-interface-service-wrap {
|
|
2
|
-
display: flex;
|
|
3
|
-
padding: 0;
|
|
4
|
-
margin: 16px auto;
|
|
5
|
-
|
|
6
|
-
.event-booking-service-list {
|
|
7
|
-
flex: 1;
|
|
8
|
-
background: #ffffff;
|
|
9
|
-
// min-height: calc(100vh - 93px);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.event-interface-service-mobile-wrap {
|
|
14
|
-
margin-top: 0;
|
|
15
|
-
width: 100%;
|
|
16
|
-
|
|
17
|
-
.event-booking-service-list {
|
|
18
|
-
width: 100%;
|
|
19
|
-
}
|
|
20
|
-
}
|
package/es/components/appointmentBooking/components/Provider/InformationOptionsModal/index.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PisellModal } from '@pisell/materials';
|
|
3
|
-
import "./index.less";
|
|
4
|
-
var InformationOptionsModal = function InformationOptionsModal(props) {
|
|
5
|
-
var open = props.open,
|
|
6
|
-
onCancel = props.onCancel,
|
|
7
|
-
options = props.options,
|
|
8
|
-
_onClick = props.onClick;
|
|
9
|
-
return /*#__PURE__*/React.createElement(PisellModal, {
|
|
10
|
-
open: open,
|
|
11
|
-
platform: 'h5',
|
|
12
|
-
closable: true,
|
|
13
|
-
bodyStyle: {
|
|
14
|
-
padding: '0 24px'
|
|
15
|
-
},
|
|
16
|
-
destroyOnClose: true,
|
|
17
|
-
footer: null,
|
|
18
|
-
onCancel: onCancel,
|
|
19
|
-
mobileModalHeight: 'auto',
|
|
20
|
-
className: 'information-option-modal',
|
|
21
|
-
headerDivider: false
|
|
22
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
23
|
-
className: "information-options-wrap"
|
|
24
|
-
}, options.map(function (item) {
|
|
25
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
26
|
-
key: item.key,
|
|
27
|
-
className: "information-options-wrap-item",
|
|
28
|
-
onClick: function onClick() {
|
|
29
|
-
return _onClick(item);
|
|
30
|
-
}
|
|
31
|
-
}, item.label);
|
|
32
|
-
})));
|
|
33
|
-
};
|
|
34
|
-
export default InformationOptionsModal;
|
package/es/components/appointmentBooking/components/Provider/InformationOptionsModal/index.less
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
.information-options-wrap {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
gap: 16px;
|
|
5
|
-
.information-options-wrap-item {
|
|
6
|
-
color: var(--Gray-900, #101828);
|
|
7
|
-
font-size: 16px;
|
|
8
|
-
font-weight: 600;
|
|
9
|
-
line-height: 24px;
|
|
10
|
-
display: flex;
|
|
11
|
-
padding: 9px 10px;
|
|
12
|
-
align-items: center;
|
|
13
|
-
flex: 1 0 0;
|
|
14
|
-
&:last-child {
|
|
15
|
-
color: var(--Error-700, #b42318);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.information-option-modal {
|
|
21
|
-
.pisell-lowcode-modal-header {
|
|
22
|
-
border: none;
|
|
23
|
-
}
|
|
24
|
-
.pisell-lowcode-modal-body {
|
|
25
|
-
height: max-content;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PisellModal } from '@pisell/materials';
|
|
3
|
-
import { locales } from '@pisell/utils';
|
|
4
|
-
import "./index.less";
|
|
5
|
-
var OrderProductModal = function OrderProductModal(props) {
|
|
6
|
-
var open = props.open,
|
|
7
|
-
_onCancel = props.onCancel,
|
|
8
|
-
_props$type = props.type,
|
|
9
|
-
type = _props$type === void 0 ? 'cart' : _props$type;
|
|
10
|
-
return /*#__PURE__*/React.createElement(PisellModal.Information, {
|
|
11
|
-
open: open,
|
|
12
|
-
title: type === 'cart' ? locales.getText('pisell2.event.event.full.title') : locales.getText('pisell2.event.capacity.limit.reached.title'),
|
|
13
|
-
describe: type === 'cart' ? locales.getText('pisell2.event.event.full.tip') : locales.getText('pisell2.event.capacity.limit.reached.tip'),
|
|
14
|
-
okText: locales.getText('pisell2.event.event.full.ok'),
|
|
15
|
-
cancelText: "",
|
|
16
|
-
cancelVisible: false,
|
|
17
|
-
closable: true,
|
|
18
|
-
onCancel: function onCancel() {
|
|
19
|
-
return _onCancel();
|
|
20
|
-
},
|
|
21
|
-
onOk: function onOk() {
|
|
22
|
-
return _onCancel();
|
|
23
|
-
},
|
|
24
|
-
zIndex: 1001
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
export default OrderProductModal;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
.event-booking-order-product-modal {
|
|
2
|
-
.event-booking-order-product-modal-content {
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
gap: 4px;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.event-booking-order-product-modal-content-title {
|
|
9
|
-
color: var(--Gray-900, #101828);
|
|
10
|
-
font-size: 24px;
|
|
11
|
-
font-weight: 600;
|
|
12
|
-
line-height: 32px;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.event-booking-order-product-modal-content-describe {
|
|
16
|
-
color: var(--Gray-900, #101828);
|
|
17
|
-
font-size: 16px;
|
|
18
|
-
font-weight: 400;
|
|
19
|
-
line-height: 24px;
|
|
20
|
-
display: flex;
|
|
21
|
-
flex-direction: column;
|
|
22
|
-
gap: 4px;
|
|
23
|
-
|
|
24
|
-
ul {
|
|
25
|
-
list-style-type: disc !important;
|
|
26
|
-
padding-left: 20px;
|
|
27
|
-
li {
|
|
28
|
-
list-style-type: disc !important;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PisellModal } from '@pisell/materials';
|
|
3
|
-
import { locales } from '@pisell/utils';
|
|
4
|
-
var RemoveOptionConfirmModal = function RemoveOptionConfirmModal(props) {
|
|
5
|
-
var removeOpen = props.removeOpen,
|
|
6
|
-
_onCancel = props.onCancel,
|
|
7
|
-
_onOk = props.onOk;
|
|
8
|
-
return /*#__PURE__*/React.createElement(PisellModal.Information, {
|
|
9
|
-
open: removeOpen,
|
|
10
|
-
title: locales.getText('pisell2.event.remove.title'),
|
|
11
|
-
describe: locales.getText('pisell2.event.remove.tip'),
|
|
12
|
-
okText: locales.getText('pisell2.event.remove'),
|
|
13
|
-
cancelText: locales.getText('pisell2.event.remove.cancel'),
|
|
14
|
-
closable: true,
|
|
15
|
-
onCancel: function onCancel() {
|
|
16
|
-
return _onCancel();
|
|
17
|
-
},
|
|
18
|
-
zIndex: 1001,
|
|
19
|
-
okButtonProps: {
|
|
20
|
-
style: {
|
|
21
|
-
border: '1px solid var(--Error-600, #D92D20)',
|
|
22
|
-
background: 'var(--Error-600, #D92D20)',
|
|
23
|
-
boxShadow: '0px 1px 2px 0px rgba(16, 24, 40, 0.05)'
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
onOk: function onOk() {
|
|
27
|
-
return _onOk();
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
export default RemoveOptionConfirmModal;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PisellViewGrid } from '@pisell/materials';
|
|
3
|
-
import { isMobile, locales } from '@pisell/utils';
|
|
4
|
-
import { useResource, useSales, useCart, useStep } from "../../../../Sales";
|
|
5
|
-
import ResourceDisplay from "../../resourceDisplay";
|
|
6
|
-
import { resourceTitle } from "../../../utils";
|
|
7
|
-
import "./index.less";
|
|
8
|
-
var Resource = function Resource() {
|
|
9
|
-
var _data$resourceData;
|
|
10
|
-
var _useSales = useSales(),
|
|
11
|
-
data = _useSales.data;
|
|
12
|
-
var _useResource = useResource(),
|
|
13
|
-
getResourceList = _useResource.getResourceList,
|
|
14
|
-
selectResource = _useResource.selectResource;
|
|
15
|
-
var _useCart = useCart(),
|
|
16
|
-
createCartItem = _useCart.createCartItem;
|
|
17
|
-
var _useStep = useStep(),
|
|
18
|
-
nextStep = _useStep.nextStep;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* @title: 选择资源
|
|
22
|
-
* @description:
|
|
23
|
-
* @param {any} item
|
|
24
|
-
* @return {*}
|
|
25
|
-
* @Author: WangHan
|
|
26
|
-
* @Date: 2025-01-15 18:08
|
|
27
|
-
*/
|
|
28
|
-
var handleClick = function handleClick(item) {
|
|
29
|
-
createCartItem();
|
|
30
|
-
selectResource(item);
|
|
31
|
-
nextStep();
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @title: 渲染内容
|
|
36
|
-
* @description:
|
|
37
|
-
* @param {any} item
|
|
38
|
-
* @return {*}
|
|
39
|
-
* @Author: WangHan
|
|
40
|
-
* @Date: 2025-01-15 11:30
|
|
41
|
-
*/
|
|
42
|
-
var renderItem = function renderItem(item) {
|
|
43
|
-
return /*#__PURE__*/React.createElement(ResourceDisplay, {
|
|
44
|
-
mode: "campus",
|
|
45
|
-
dataSource: item,
|
|
46
|
-
direction: "vertical",
|
|
47
|
-
shape: "square",
|
|
48
|
-
bordered: false,
|
|
49
|
-
borderRadius: 8,
|
|
50
|
-
padding: 8,
|
|
51
|
-
onClick: function onClick() {
|
|
52
|
-
return handleClick(item);
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
};
|
|
56
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
57
|
-
className: "event-interface-resource-wrap ".concat(isMobile() ? 'event-interface-resource-mobile-wrap' : '')
|
|
58
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
59
|
-
className: "title"
|
|
60
|
-
}, locales.getText('pisell2.event.select.campus')(resourceTitle(data))), /*#__PURE__*/React.createElement("div", {
|
|
61
|
-
className: "content"
|
|
62
|
-
}, data === null || data === void 0 || (_data$resourceData = data.resourceData) === null || _data$resourceData === void 0 || (_data$resourceData = _data$resourceData.resourceList) === null || _data$resourceData === void 0 ? void 0 : _data$resourceData.map(function (item, index) {
|
|
63
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
64
|
-
key: index,
|
|
65
|
-
className: "content-item"
|
|
66
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
67
|
-
className: "content-title"
|
|
68
|
-
}, item === null || item === void 0 ? void 0 : item.title), /*#__PURE__*/React.createElement(PisellViewGrid, {
|
|
69
|
-
dataSource: item === null || item === void 0 ? void 0 : item.children,
|
|
70
|
-
columns: isMobile() ? 1 : 3,
|
|
71
|
-
verticalGap: 20,
|
|
72
|
-
horizontalGap: 20,
|
|
73
|
-
loading: getResourceList.loading,
|
|
74
|
-
renderItem: renderItem,
|
|
75
|
-
className: "content-grid"
|
|
76
|
-
}));
|
|
77
|
-
})));
|
|
78
|
-
};
|
|
79
|
-
export default Resource;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
.event-interface-resource-wrap {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
margin-bottom: 24px;
|
|
5
|
-
|
|
6
|
-
.title {
|
|
7
|
-
color: var(--Gray-900, #101828);
|
|
8
|
-
font-size: 20px;
|
|
9
|
-
font-weight: 600;
|
|
10
|
-
line-height: 30px;
|
|
11
|
-
text-align: center;
|
|
12
|
-
margin: 8px 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.content {
|
|
16
|
-
display: flex;
|
|
17
|
-
flex-direction: column;
|
|
18
|
-
gap: 24px;
|
|
19
|
-
.pisell-card-wrap {
|
|
20
|
-
background: transparent;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.content-item {
|
|
24
|
-
display: flex;
|
|
25
|
-
flex-direction: column;
|
|
26
|
-
gap: 8px;
|
|
27
|
-
|
|
28
|
-
.content-title {
|
|
29
|
-
color: var(--Gray-900, #101828);
|
|
30
|
-
font-size: 16px;
|
|
31
|
-
font-weight: 600;
|
|
32
|
-
line-height: 24px;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.content-grid {
|
|
37
|
-
padding: 20px 12px;
|
|
38
|
-
border-radius: 8px;
|
|
39
|
-
border: 1px solid var(--Gray-300, #d0d5dd);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.event-interface-resource-mobile-wrap {
|
|
45
|
-
padding: 0 20px 20px;
|
|
46
|
-
}
|