@pisell/private-materials 3.2.17 → 3.2.18
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 +44 -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 +17 -941
- 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.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/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.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/{es/components/eventBooking/components/Provider → lib/components/appointmentBooking/components}/Cart/Item/index.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,90 +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 SelectHolder from "../selectHolder";
|
|
9
|
-
import { locales } from '@pisell/utils';
|
|
10
|
-
import { useHolder, useSales, useStep, useCart } from "../../../Sales";
|
|
11
|
-
var SelectHolderModal = function SelectHolderModal(props) {
|
|
12
|
-
var _holderData$holderLis;
|
|
13
|
-
var open = props.open;
|
|
14
|
-
var _useSales = useSales(),
|
|
15
|
-
data = _useSales.data;
|
|
16
|
-
var _useHolder = useHolder(),
|
|
17
|
-
onHolderClose = _useHolder.onHolderClose,
|
|
18
|
-
onOpenCreateHolder = _useHolder.onOpenCreateHolder,
|
|
19
|
-
selectHolder = _useHolder.selectHolder,
|
|
20
|
-
holderData = _useHolder.holderData,
|
|
21
|
-
updateHolderList = _useHolder.updateHolderList,
|
|
22
|
-
defaultSelectedHolder = _useHolder.defaultSelectedHolder;
|
|
23
|
-
var _useStep = useStep(),
|
|
24
|
-
nextStep = _useStep.nextStep,
|
|
25
|
-
prevStep = _useStep.prevStep,
|
|
26
|
-
currentStepData = _useStep.currentStepData;
|
|
27
|
-
var _useState = useState(defaultSelectedHolder),
|
|
28
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
29
|
-
selectedHolder = _useState2[0],
|
|
30
|
-
setSelectedHolder = _useState2[1];
|
|
31
|
-
var _useCart = useCart(),
|
|
32
|
-
onCloseCart = _useCart.onCloseCart;
|
|
33
|
-
useEffect(function () {
|
|
34
|
-
setSelectedHolder(defaultSelectedHolder);
|
|
35
|
-
}, [defaultSelectedHolder]);
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* @title: 点击holder卡片
|
|
39
|
-
* @description:
|
|
40
|
-
* @param {any} e
|
|
41
|
-
* @return {*}
|
|
42
|
-
* @Author: WangHan
|
|
43
|
-
* @Date: 2025-01-16 22:29
|
|
44
|
-
*/
|
|
45
|
-
var handleHolder = function handleHolder(e) {
|
|
46
|
-
var _data$initData;
|
|
47
|
-
// 当前选中的holder
|
|
48
|
-
if (!(e !== null && e !== void 0 && e.isAddCard)) {
|
|
49
|
-
setSelectedHolder(e);
|
|
50
|
-
// return onSelect(e);
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// 添加holder
|
|
55
|
-
onOpenCreateHolder({
|
|
56
|
-
form_id: (_data$initData = data.initData) === null || _data$initData === void 0 || (_data$initData = _data$initData.boardSetting) === null || _data$initData === void 0 || (_data$initData = _data$initData.config) === null || _data$initData === void 0 || (_data$initData = _data$initData.basic) === null || _data$initData === void 0 || (_data$initData = _data$initData.appointment_subject) === null || _data$initData === void 0 ? void 0 : _data$initData.form_id,
|
|
57
|
-
form_title: locales.getText('pisell2.event.create.form'),
|
|
58
|
-
callback: function callback(res) {
|
|
59
|
-
updateHolderList(res === null || res === void 0 ? void 0 : res.values);
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
};
|
|
63
|
-
return /*#__PURE__*/React.createElement(SelectHolder, {
|
|
64
|
-
open: open,
|
|
65
|
-
options: (holderData === null || holderData === void 0 ? void 0 : holderData.holderList) || [],
|
|
66
|
-
onCancel: function onCancel() {
|
|
67
|
-
return onHolderClose();
|
|
68
|
-
},
|
|
69
|
-
value: selectedHolder === null || selectedHolder === void 0 ? void 0 : selectedHolder.id,
|
|
70
|
-
title: locales.getText('pisell2.event.holder.modal.title'),
|
|
71
|
-
okText: locales.getText('pisell2.event.confirm'),
|
|
72
|
-
onClick: function onClick(e) {
|
|
73
|
-
return handleHolder(e);
|
|
74
|
-
},
|
|
75
|
-
disabled: !(holderData !== null && holderData !== void 0 && (_holderData$holderLis = holderData.holderList) !== null && _holderData$holderLis !== void 0 && _holderData$holderLis.length) || !(selectedHolder !== null && selectedHolder !== void 0 && selectedHolder.id),
|
|
76
|
-
errorTipText: locales.getText('pisell2.event.error.holder'),
|
|
77
|
-
onOk: function onOk() {
|
|
78
|
-
onCloseCart();
|
|
79
|
-
var isEvent = (currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.key) === 'select-event';
|
|
80
|
-
selectHolder(selectedHolder, isEvent ? 'addToCart' : 'createCartItem');
|
|
81
|
-
if (isEvent) {
|
|
82
|
-
nextStep();
|
|
83
|
-
} else {
|
|
84
|
-
prevStep();
|
|
85
|
-
}
|
|
86
|
-
onHolderClose();
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
};
|
|
90
|
-
export default SelectHolderModal;
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { useCart, useSales } from "../../../Sales";
|
|
3
|
-
import { locales } from '@pisell/utils';
|
|
4
|
-
import { PisellCard } from '@pisell/materials';
|
|
5
|
-
import "./index.less";
|
|
6
|
-
var SelectProduct = function SelectProduct() {
|
|
7
|
-
var _cartData$cartItems2;
|
|
8
|
-
var _useSales = useSales(),
|
|
9
|
-
data = _useSales.data;
|
|
10
|
-
var _useCart = useCart(),
|
|
11
|
-
addToCart = _useCart.addToCart,
|
|
12
|
-
cartData = _useCart.cartData;
|
|
13
|
-
var handleAddToCart = function handleAddToCart(product) {
|
|
14
|
-
addToCart(product);
|
|
15
|
-
};
|
|
16
|
-
var renderProductCard = function renderProductCard(product) {
|
|
17
|
-
var _cartData$cartItems;
|
|
18
|
-
var isSelected = cartData === null || cartData === void 0 || (_cartData$cartItems = cartData.cartItems) === null || _cartData$cartItems === void 0 ? void 0 : _cartData$cartItems.some(function (item) {
|
|
19
|
-
return item.id === product.id;
|
|
20
|
-
});
|
|
21
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
22
|
-
key: product.id,
|
|
23
|
-
className: "product-card ".concat(isSelected ? 'product-card-selected' : ''),
|
|
24
|
-
onClick: function onClick() {
|
|
25
|
-
return handleAddToCart(product);
|
|
26
|
-
}
|
|
27
|
-
}, /*#__PURE__*/React.createElement(PisellCard, {
|
|
28
|
-
bodyStyle: {
|
|
29
|
-
padding: '16px'
|
|
30
|
-
}
|
|
31
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
32
|
-
className: "product-content"
|
|
33
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
34
|
-
className: "product-title"
|
|
35
|
-
}, product.title), /*#__PURE__*/React.createElement("div", {
|
|
36
|
-
className: "product-price"
|
|
37
|
-
}, product.price, " ", product.currency))));
|
|
38
|
-
};
|
|
39
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
40
|
-
className: "select-product-container"
|
|
41
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
42
|
-
className: "step-header"
|
|
43
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
44
|
-
className: "step-number"
|
|
45
|
-
}, "Step 1"), /*#__PURE__*/React.createElement("div", {
|
|
46
|
-
className: "step-title"
|
|
47
|
-
}, "Select Product")), /*#__PURE__*/React.createElement("div", {
|
|
48
|
-
className: "category-section"
|
|
49
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
50
|
-
className: "category-title"
|
|
51
|
-
}, "Other"), /*#__PURE__*/React.createElement("div", {
|
|
52
|
-
className: "product-list"
|
|
53
|
-
}, renderProductCard({
|
|
54
|
-
id: '1',
|
|
55
|
-
title: 'appointment',
|
|
56
|
-
price: '1.00',
|
|
57
|
-
currency: 'AUD'
|
|
58
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
59
|
-
className: "cart-section"
|
|
60
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
61
|
-
className: "cart-title"
|
|
62
|
-
}, "Your cart"), cartData !== null && cartData !== void 0 && (_cartData$cartItems2 = cartData.cartItems) !== null && _cartData$cartItems2 !== void 0 && _cartData$cartItems2.length ? /*#__PURE__*/React.createElement("div", {
|
|
63
|
-
className: "cart-items"
|
|
64
|
-
}, cartData.cartItems.map(function (item) {
|
|
65
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
66
|
-
key: item.id,
|
|
67
|
-
className: "cart-item"
|
|
68
|
-
}, item.title);
|
|
69
|
-
})) : /*#__PURE__*/React.createElement("div", {
|
|
70
|
-
className: "cart-empty"
|
|
71
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
72
|
-
className: "cart-empty-icon"
|
|
73
|
-
}, "\uD83D\uDED2"), /*#__PURE__*/React.createElement("div", {
|
|
74
|
-
className: "cart-empty-text"
|
|
75
|
-
}, locales.getText('pisell2.event.cart.empty')))));
|
|
76
|
-
};
|
|
77
|
-
export default SelectProduct;
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
.select-product-container {
|
|
2
|
-
padding: 24px;
|
|
3
|
-
background: #fff;
|
|
4
|
-
|
|
5
|
-
.step-header {
|
|
6
|
-
margin-bottom: 24px;
|
|
7
|
-
|
|
8
|
-
.step-number {
|
|
9
|
-
font-size: 14px;
|
|
10
|
-
color: #666;
|
|
11
|
-
margin-bottom: 8px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.step-title {
|
|
15
|
-
font-size: 24px;
|
|
16
|
-
font-weight: 500;
|
|
17
|
-
color: #333;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.category-section {
|
|
22
|
-
margin-bottom: 24px;
|
|
23
|
-
|
|
24
|
-
.category-title {
|
|
25
|
-
font-size: 16px;
|
|
26
|
-
font-weight: 500;
|
|
27
|
-
color: #333;
|
|
28
|
-
margin-bottom: 16px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.product-list {
|
|
32
|
-
display: grid;
|
|
33
|
-
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
34
|
-
gap: 16px;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.product-card {
|
|
39
|
-
cursor: pointer;
|
|
40
|
-
transition: all 0.3s;
|
|
41
|
-
|
|
42
|
-
&:hover {
|
|
43
|
-
transform: translateY(-2px);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&.product-card-selected {
|
|
47
|
-
.pisell-card {
|
|
48
|
-
border-color: #1890ff;
|
|
49
|
-
background: rgba(24, 144, 255, 0.05);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.product-content {
|
|
54
|
-
text-align: center;
|
|
55
|
-
|
|
56
|
-
.product-title {
|
|
57
|
-
font-size: 16px;
|
|
58
|
-
color: #333;
|
|
59
|
-
margin-bottom: 8px;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.product-price {
|
|
63
|
-
font-size: 14px;
|
|
64
|
-
color: #666;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.cart-section {
|
|
70
|
-
background: #f5f5f5;
|
|
71
|
-
border-radius: 4px;
|
|
72
|
-
padding: 24px;
|
|
73
|
-
|
|
74
|
-
.cart-title {
|
|
75
|
-
font-size: 18px;
|
|
76
|
-
font-weight: 500;
|
|
77
|
-
color: #333;
|
|
78
|
-
margin-bottom: 16px;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.cart-empty {
|
|
82
|
-
text-align: center;
|
|
83
|
-
padding: 32px 0;
|
|
84
|
-
|
|
85
|
-
.cart-empty-icon {
|
|
86
|
-
font-size: 24px;
|
|
87
|
-
margin-bottom: 8px;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.cart-empty-text {
|
|
91
|
-
color: #999;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.cart-items {
|
|
96
|
-
.cart-item {
|
|
97
|
-
padding: 12px;
|
|
98
|
-
background: #fff;
|
|
99
|
-
border-radius: 4px;
|
|
100
|
-
margin-bottom: 8px;
|
|
101
|
-
|
|
102
|
-
&:last-child {
|
|
103
|
-
margin-bottom: 0;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// 移动端适配
|
|
111
|
-
@media screen and (max-width: 768px) {
|
|
112
|
-
.select-product-container {
|
|
113
|
-
padding: 16px;
|
|
114
|
-
|
|
115
|
-
.step-header {
|
|
116
|
-
margin-bottom: 16px;
|
|
117
|
-
|
|
118
|
-
.step-title {
|
|
119
|
-
font-size: 20px;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.product-list {
|
|
124
|
-
grid-template-columns: 1fr !important;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.cart-section {
|
|
128
|
-
padding: 16px;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
import dayjs from 'dayjs';
|
|
2
|
-
export declare const formatActiveKey: (lists: any[], platform: string, isEdit: boolean) => any[];
|
|
3
|
-
/**
|
|
4
|
-
* @title: 获取资源名称
|
|
5
|
-
* @description:
|
|
6
|
-
* @param {any} id
|
|
7
|
-
* @param {any} state
|
|
8
|
-
* @return {*}
|
|
9
|
-
* @Author: WangHan
|
|
10
|
-
* @Date: 2024-11-29 18:02
|
|
11
|
-
*/
|
|
12
|
-
export declare const getResourceItem: (id: any, state: any) => any;
|
|
13
|
-
/**
|
|
14
|
-
* @title: 错误提示
|
|
15
|
-
* @description:
|
|
16
|
-
* @param {any} service
|
|
17
|
-
* @param {any} resourceItem
|
|
18
|
-
* @return {*}
|
|
19
|
-
* @Author: WangHan
|
|
20
|
-
* @Date: 2024-11-29 18:41
|
|
21
|
-
*/
|
|
22
|
-
export declare const getErrorMessage: (service: any, resourceItem: any, isDay?: boolean) => any;
|
|
23
|
-
/**
|
|
24
|
-
* @title: 格式化主体列表
|
|
25
|
-
* @description:
|
|
26
|
-
* @param {any} lists
|
|
27
|
-
* @param {boolean} isOpenGroup
|
|
28
|
-
* @return {*}
|
|
29
|
-
* @Author: WangHan
|
|
30
|
-
* @Date: 2024-12-04 11:27
|
|
31
|
-
*/
|
|
32
|
-
export declare const formatHolderLists: (lists: any) => any;
|
|
33
|
-
export declare const isBookingProduct: (extension_type: any, bol?: boolean) => boolean | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* @title: 是否是预约商品
|
|
36
|
-
* @description:
|
|
37
|
-
* @return {*}
|
|
38
|
-
* @Author: WangHan
|
|
39
|
-
* @Date: 2024-12-06 11:24
|
|
40
|
-
*/
|
|
41
|
-
export declare const isDayBookingProduct: (item: any, state: any) => boolean | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* @title: 更新商品数据
|
|
44
|
-
* @description:
|
|
45
|
-
* @param {any} state
|
|
46
|
-
* @param {string} type
|
|
47
|
-
* @param {any} _id // 商品id
|
|
48
|
-
* @param {any} other
|
|
49
|
-
* @return {*}
|
|
50
|
-
* @Author: WangHan
|
|
51
|
-
* @Date: 2025-01-03 15:00
|
|
52
|
-
*/
|
|
53
|
-
export declare const updateServices: (state: any, currentItem: any, type?: string, other?: any) => any;
|
|
54
|
-
export declare const formItems: (items: any[]) => any[];
|
|
55
|
-
/**
|
|
56
|
-
* @title: 格式化商品数据
|
|
57
|
-
* @description:
|
|
58
|
-
* @param {any} lists
|
|
59
|
-
* @return {*}
|
|
60
|
-
* @Author: WangHan
|
|
61
|
-
* @Date: 2024-11-29 17:36
|
|
62
|
-
*/
|
|
63
|
-
export declare const formatProducts: (lists: any[], state: any, isRenderGroup?: boolean) => {
|
|
64
|
-
id: any;
|
|
65
|
-
_id: any;
|
|
66
|
-
name: any;
|
|
67
|
-
price: any;
|
|
68
|
-
total: any;
|
|
69
|
-
origin_total: any;
|
|
70
|
-
num: any;
|
|
71
|
-
image: any;
|
|
72
|
-
isShowNote: boolean;
|
|
73
|
-
note: any;
|
|
74
|
-
like_status: any;
|
|
75
|
-
bundle: any;
|
|
76
|
-
options: any;
|
|
77
|
-
errorMessage: string;
|
|
78
|
-
product_option_string: any;
|
|
79
|
-
discount_reason: any;
|
|
80
|
-
resource_id: any;
|
|
81
|
-
relation_form_name: any;
|
|
82
|
-
holder_title: any;
|
|
83
|
-
start_date: any;
|
|
84
|
-
end_date: any;
|
|
85
|
-
holder_id: any;
|
|
86
|
-
isNormalProduct: boolean;
|
|
87
|
-
locale: any;
|
|
88
|
-
symbol: any;
|
|
89
|
-
items: any[];
|
|
90
|
-
_origin: any;
|
|
91
|
-
}[];
|
|
92
|
-
/**
|
|
93
|
-
* @title: 禁用日期
|
|
94
|
-
* @description:
|
|
95
|
-
* @param {any} current
|
|
96
|
-
* @param {string} position
|
|
97
|
-
* @param {any} startDate
|
|
98
|
-
* @return {*}
|
|
99
|
-
* @Author: WangHan
|
|
100
|
-
* @Date: 2024-12-03 17:51
|
|
101
|
-
*/
|
|
102
|
-
export declare const disabledDate: (current: any, position: string, currentDate: any) => any;
|
|
103
|
-
/**
|
|
104
|
-
* @title: 是否是跨日预约
|
|
105
|
-
* @description:
|
|
106
|
-
* @param {any} state
|
|
107
|
-
* @return {*}
|
|
108
|
-
* @Author: WangHan
|
|
109
|
-
* @Date: 2024-12-04 09:49
|
|
110
|
-
*/
|
|
111
|
-
export declare const isDayBooking: (state: any) => boolean;
|
|
112
|
-
export declare const isDaysBooking: (state: any) => boolean;
|
|
113
|
-
export declare const isEventBooking: (state: any) => boolean;
|
|
114
|
-
export declare const isAppointmentProduct: (item: any) => boolean;
|
|
115
|
-
/**
|
|
116
|
-
* @title: 是否是terminal上的跨日预约
|
|
117
|
-
* @description:
|
|
118
|
-
* @param {any} state
|
|
119
|
-
* @return {*}
|
|
120
|
-
* @Author: WangHan
|
|
121
|
-
* @Date: 2024-12-04 15:31
|
|
122
|
-
*/
|
|
123
|
-
export declare const isTerminalDayBooking: (state: any) => any;
|
|
124
|
-
export declare const formatDayDate: (_extend: any) => any;
|
|
125
|
-
/**
|
|
126
|
-
* @title: 根据营业日时间格式化时间
|
|
127
|
-
* @description:
|
|
128
|
-
* @param {any} state
|
|
129
|
-
* @return {*}
|
|
130
|
-
* @Author: WangHan
|
|
131
|
-
* @Date: 2024-12-04 12:07
|
|
132
|
-
*/
|
|
133
|
-
export declare const formatDayTime: ({ startDate, endDate }: any) => {
|
|
134
|
-
startDateTime: dayjs.Dayjs;
|
|
135
|
-
endDateTime: dayjs.Dayjs;
|
|
136
|
-
};
|
|
137
|
-
export declare const formatDateTime: (start_date: any, end_date: any) => {
|
|
138
|
-
value: dayjs.Dayjs;
|
|
139
|
-
end_date: dayjs.Dayjs;
|
|
140
|
-
};
|
|
141
|
-
/**
|
|
142
|
-
* @title: 初始化日期
|
|
143
|
-
* @description:
|
|
144
|
-
* @return {*}
|
|
145
|
-
* @Author: WangHan
|
|
146
|
-
* @Date: 2024-12-06 17:24
|
|
147
|
-
*/
|
|
148
|
-
export declare const initDate: () => {
|
|
149
|
-
value: dayjs.Dayjs;
|
|
150
|
-
end_date: dayjs.Dayjs;
|
|
151
|
-
};
|
|
152
|
-
/**
|
|
153
|
-
* @title: 是否有预约商品
|
|
154
|
-
* @description:
|
|
155
|
-
* @return {*}
|
|
156
|
-
* @Author: WangHan
|
|
157
|
-
* @Date: 2024-12-12 15:47
|
|
158
|
-
*/
|
|
159
|
-
export declare const isHasDayAppointmentProduct: (state: any) => boolean;
|
|
160
|
-
/**
|
|
161
|
-
* @title: 过滤出如果是预约商品,则只获取跨日的预约商品
|
|
162
|
-
* @description:
|
|
163
|
-
* @param {any} lists
|
|
164
|
-
* @return {*}
|
|
165
|
-
* @Author: WangHan
|
|
166
|
-
* @Date: 2024-12-13 16:44
|
|
167
|
-
*/
|
|
168
|
-
export declare const getDayProducts: (holderId: number, lists: any, isTerminal?: boolean) => any;
|
|
169
|
-
/**
|
|
170
|
-
* @title: 格式化表单数据
|
|
171
|
-
* @description:
|
|
172
|
-
* @param {any} state
|
|
173
|
-
* @return {*}
|
|
174
|
-
* @Author: WangHan
|
|
175
|
-
* @Date: 2024-12-30 22:19
|
|
176
|
-
*/
|
|
177
|
-
export declare const getPets: (state: any) => any;
|
|
178
|
-
/**
|
|
179
|
-
* @title: 得出预约商品
|
|
180
|
-
* @description:
|
|
181
|
-
* @param {any} state
|
|
182
|
-
* @return {*}
|
|
183
|
-
* @Author: WangHan
|
|
184
|
-
* @Date: 2024-12-30 22:26
|
|
185
|
-
*/
|
|
186
|
-
export declare const getAppointmentService: (state: any) => any;
|
|
187
|
-
/**
|
|
188
|
-
* @title: 判断是否打开删除宠物弹窗
|
|
189
|
-
* @description:
|
|
190
|
-
* @param {any} state
|
|
191
|
-
* @param {any} newVal
|
|
192
|
-
* @return {*}
|
|
193
|
-
* @Author: WangHan
|
|
194
|
-
* @Date: 2024-12-16 16:12
|
|
195
|
-
*/
|
|
196
|
-
export declare const isOpenDeletePet: (state: any, newVal: any) => {
|
|
197
|
-
ids: any;
|
|
198
|
-
lists: any;
|
|
199
|
-
};
|
|
200
|
-
/**
|
|
201
|
-
* @title: 当前选中的表单id
|
|
202
|
-
* @description:
|
|
203
|
-
* @param {any} state
|
|
204
|
-
* @return {*}
|
|
205
|
-
* @Author: WangHan
|
|
206
|
-
* @Date: 2024-12-17 14:40
|
|
207
|
-
*/
|
|
208
|
-
export declare const holderId: (state: any) => number;
|
|
209
|
-
/**
|
|
210
|
-
* @title: 更新套餐的价格
|
|
211
|
-
* @description:
|
|
212
|
-
* @param {any} currentValue
|
|
213
|
-
* @param {any} newBundleData
|
|
214
|
-
* @return {*}
|
|
215
|
-
* @Author: WangHan
|
|
216
|
-
* @Date: 2024-12-31 15:16
|
|
217
|
-
*/
|
|
218
|
-
export declare function updateNormalBundlePrice(currentValue: any, newBundleData: any): any[];
|
|
219
|
-
/**
|
|
220
|
-
* @title: 更新预约商品报价单
|
|
221
|
-
* @description:
|
|
222
|
-
* @param {any} state
|
|
223
|
-
* @param {any} cacheItem
|
|
224
|
-
* @return {*}
|
|
225
|
-
* @Author: WangHan
|
|
226
|
-
* @Date: 2024-12-25 16:41
|
|
227
|
-
*/
|
|
228
|
-
export declare const updateAppointmentServicePrice: (state: any, { start_date, end_date, product_id }: any) => Promise<{
|
|
229
|
-
multiDayPrices: any;
|
|
230
|
-
price: number;
|
|
231
|
-
}>;
|
|
232
|
-
/**
|
|
233
|
-
* @title: 更新普通商品报价单价格
|
|
234
|
-
* @description:
|
|
235
|
-
* @param {any} state
|
|
236
|
-
* @return {*}
|
|
237
|
-
* @Author: WangHan
|
|
238
|
-
* @Date: 2024-12-24 11:32
|
|
239
|
-
*/
|
|
240
|
-
export declare const updateServicePrice: (state: any) => Promise<any> | never[];
|