@pisell/private-materials 3.3.64 → 3.3.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +6 -6
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Voucher/index.less +2 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
- package/es/components/appointmentBooking/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/es/components/booking/components/footer/index.js +15 -30
- package/es/components/booking/components/voucher/index.d.ts +1 -0
- package/es/components/booking/components/voucher/index.less +1 -0
- package/es/components/booking/forms/footer.d.ts +1 -0
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/es/components/booking/hooks/useClearCart.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/index.d.ts +1 -0
- package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/editService/index.js +9 -13
- package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
- package/es/components/booking/info2/utilsByBooking.js +10 -17
- package/es/components/booking/utils.js +4 -10
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/index.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/index.d.ts +1 -0
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/timeResourceSelector/index.less +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/index.js +4 -5
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
- package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
- package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/es/components/ruleSetting/index.d.ts +1 -0
- package/es/components/schedules/calendar/index.less +152 -158
- package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +10 -12
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/es/components/ticketBooking/components/ticketBooking/index.js +9 -135
- package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/es/components/ticketBooking/locales.d.ts +146 -164
- package/es/components/ticketBooking/locales.js +147 -195
- package/es/components/ticketBooking/serve.d.ts +0 -5
- package/es/components/ticketBooking/serve.js +0 -27
- package/es/components/wallet/DiscountCard/index.less +1 -0
- package/es/components/wallet/PointCard/index.less +1 -0
- package/es/components/wallet/RechargeableCard/index.less +9 -5
- package/es/components/wallet/Voucher/index.less +1 -0
- package/es/components/wallet/index.less +4 -0
- package/es/components/walletList/index.js +7 -55
- package/es/components/walletList/index.less +15 -17
- package/es/components/walletList/serve.d.ts +0 -8
- package/es/components/walletList/serve.js +0 -38
- package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Voucher/index.less +2 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
- package/lib/components/appointmentBooking/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/lib/components/booking/components/footer/index.js +2 -14
- package/lib/components/booking/components/voucher/index.d.ts +1 -0
- package/lib/components/booking/components/voucher/index.less +1 -0
- package/lib/components/booking/forms/footer.d.ts +1 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/editService/index.js +3 -7
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
- package/lib/components/booking/info2/utilsByBooking.js +9 -7
- package/lib/components/booking/utils.js +3 -7
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/index.d.ts +1 -0
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/timeResourceSelector/index.less +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/index.js +9 -10
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
- package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
- package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/lib/components/ruleSetting/index.d.ts +1 -0
- package/lib/components/schedules/calendar/index.less +152 -158
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +3 -5
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.js +8 -134
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/lib/components/ticketBooking/locales.d.ts +146 -164
- package/lib/components/ticketBooking/locales.js +4 -22
- package/lib/components/ticketBooking/serve.d.ts +0 -5
- package/lib/components/ticketBooking/serve.js +2 -8
- package/lib/components/wallet/DiscountCard/index.less +1 -0
- package/lib/components/wallet/PointCard/index.less +1 -0
- package/lib/components/wallet/RechargeableCard/index.less +9 -5
- package/lib/components/wallet/Voucher/index.less +1 -0
- package/lib/components/wallet/index.less +4 -0
- package/lib/components/walletList/index.js +14 -42
- package/lib/components/walletList/index.less +15 -17
- package/lib/components/walletList/serve.d.ts +0 -8
- package/lib/components/walletList/serve.js +2 -15
- package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/package.json +3 -3
- package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
- package/es/components/ticketBooking/utils/formatProductMessage.js +0 -53
- package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
- package/es/components/ticketBooking/utils/formatTime.js +0 -144
- package/es/components/walletList/locales.d.ts +0 -18
- package/es/components/walletList/locales.js +0 -17
- package/es/components/walletList/status.d.ts +0 -38
- package/es/components/walletList/status.js +0 -47
- package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
- package/lib/components/ticketBooking/utils/formatProductMessage.js +0 -76
- package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
- package/lib/components/ticketBooking/utils/formatTime.js +0 -139
- package/lib/components/walletList/locales.d.ts +0 -18
- package/lib/components/walletList/locales.js +0 -41
- package/lib/components/walletList/status.d.ts +0 -38
- package/lib/components/walletList/status.js +0 -66
|
@@ -35,7 +35,7 @@ var isOfflinePayment = function isOfflinePayment(type) {
|
|
|
35
35
|
return ['pisell.bank_deposit', 'pisell.offline_payment', 'pisell.other.cashmanual', 'pisell.custom_bank_transfer'].includes(type);
|
|
36
36
|
};
|
|
37
37
|
var PaymentMethods = function PaymentMethods(props, ref) {
|
|
38
|
-
var _context$appHelper
|
|
38
|
+
var _context$appHelper;
|
|
39
39
|
var MWCreditCardRef = useRef(null);
|
|
40
40
|
var SuperPayAliPayH5Ref = useRef(null);
|
|
41
41
|
var StripePayRef = useRef(null);
|
|
@@ -118,11 +118,10 @@ var PaymentMethods = function PaymentMethods(props, ref) {
|
|
|
118
118
|
return _ref2.apply(this, arguments);
|
|
119
119
|
};
|
|
120
120
|
}();
|
|
121
|
-
console.log('paymentResult isAppEnv', interaction === null || interaction === void 0 || (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 || (_interaction$utils$is = _interaction$utils.isAppEnv) === null || _interaction$utils$is === void 0 ? void 0 : _interaction$utils$is.call(_interaction$utils), interaction, context);
|
|
122
121
|
useEffect(function () {
|
|
123
|
-
var _interaction$
|
|
124
|
-
console.log('paymentResult isAppEnv', interaction === null || interaction === void 0 || (_interaction$
|
|
125
|
-
if (interaction !== null && interaction !== void 0 && (_interaction$
|
|
122
|
+
var _interaction$utils, _interaction$utils$is, _interaction$utils2, _interaction$utils2$i;
|
|
123
|
+
console.log('paymentResult isAppEnv', interaction === null || interaction === void 0 || (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 || (_interaction$utils$is = _interaction$utils.isAppEnv) === null || _interaction$utils$is === void 0 ? void 0 : _interaction$utils$is.call(_interaction$utils));
|
|
124
|
+
if (interaction !== null && interaction !== void 0 && (_interaction$utils2 = interaction.utils) !== null && _interaction$utils2 !== void 0 && (_interaction$utils2$i = _interaction$utils2.isAppEnv) !== null && _interaction$utils2$i !== void 0 && _interaction$utils2$i.call(_interaction$utils2)) {
|
|
126
125
|
interaction.utils.mountFunction('global', 'paymentResult', function (strResult) {
|
|
127
126
|
console.log('paymentResult', strResult);
|
|
128
127
|
if (!isJson(strResult)) return;
|
|
@@ -1,173 +1,167 @@
|
|
|
1
1
|
.calender-box {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
.ant-picker-panel {
|
|
33
|
-
border-top: none;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.pisell-lowcode-picker-cell {
|
|
37
|
-
padding: 0;
|
|
38
|
-
border-top: none;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.cell-size {
|
|
42
|
-
width: 40px;
|
|
43
|
-
height: 40px;
|
|
44
|
-
padding: 4px;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.date-cell {
|
|
48
|
-
.cell-size ();
|
|
49
|
-
text-align: center;
|
|
50
|
-
line-height: 50px;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.ant-picker-content th {
|
|
54
|
-
.date-cell();
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.caleddar-date-cell {
|
|
58
|
-
.cell-size ();
|
|
59
|
-
position: relative;
|
|
60
|
-
border-radius: 50%;
|
|
61
|
-
|
|
62
|
-
&.select {
|
|
63
|
-
background-color: #fedf89;
|
|
64
|
-
padding: 4px;
|
|
2
|
+
padding: 0 10px;
|
|
3
|
+
|
|
4
|
+
.calender-year-wrap {
|
|
5
|
+
position: relative;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.calender-year {
|
|
9
|
+
padding: 20px 0;
|
|
10
|
+
color: #000;
|
|
11
|
+
font-family: Inter;
|
|
12
|
+
font-size: 36px;
|
|
13
|
+
font-style: normal;
|
|
14
|
+
font-weight: 500;
|
|
15
|
+
line-height: 44px;
|
|
16
|
+
letter-spacing: -0.72px;
|
|
17
|
+
background-color: #fff;
|
|
18
|
+
position: sticky;
|
|
19
|
+
top: 0;
|
|
20
|
+
z-index: 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.caleddar-month {
|
|
24
|
+
color: #344054;
|
|
25
|
+
font-family: Inter;
|
|
26
|
+
font-size: 16px;
|
|
27
|
+
font-style: normal;
|
|
28
|
+
font-weight: 600;
|
|
29
|
+
line-height: 24px;
|
|
30
|
+
margin-bottom: 4px;
|
|
31
|
+
|
|
65
32
|
}
|
|
66
33
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
position: absolute;
|
|
71
|
-
top: 0%;
|
|
72
|
-
left: 0%;
|
|
73
|
-
width: 100%;
|
|
74
|
-
height: 100%;
|
|
75
|
-
background: linear-gradient(
|
|
76
|
-
-45deg,
|
|
77
|
-
#ffffff 25%,
|
|
78
|
-
transparent 25%,
|
|
79
|
-
transparent 50%,
|
|
80
|
-
#ffffff 50%,
|
|
81
|
-
#ffffff 75%,
|
|
82
|
-
transparent 75%,
|
|
83
|
-
transparent
|
|
84
|
-
);
|
|
85
|
-
background-size: 10px 10px;
|
|
86
|
-
}
|
|
34
|
+
// antd calendar样式修改
|
|
35
|
+
.ant-picker-panel {
|
|
36
|
+
border-top: none;
|
|
87
37
|
}
|
|
88
38
|
|
|
89
|
-
.
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
width: 100%;
|
|
93
|
-
height: 100%;
|
|
94
|
-
display: flex;
|
|
95
|
-
align-items: center;
|
|
96
|
-
justify-content: center;
|
|
97
|
-
|
|
98
|
-
&.has-status {
|
|
99
|
-
color: #ffffff;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
&.disabled-date {
|
|
103
|
-
color: #7d89b0;
|
|
104
|
-
}
|
|
39
|
+
.pisell-lowcode-picker-cell {
|
|
40
|
+
padding: 0;
|
|
41
|
+
border-top: none;
|
|
105
42
|
}
|
|
106
|
-
}
|
|
107
43
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
44
|
+
.cell-size {
|
|
45
|
+
width: 40px;
|
|
46
|
+
height: 40px;
|
|
47
|
+
padding: 4px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.date-cell {
|
|
51
|
+
.cell-size ();
|
|
52
|
+
text-align: center;
|
|
53
|
+
line-height: 50px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.ant-picker-content th {
|
|
57
|
+
.date-cell()
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.caleddar-date-cell {
|
|
61
|
+
.cell-size ();
|
|
62
|
+
position: relative;
|
|
63
|
+
border-radius: 50%;
|
|
64
|
+
|
|
65
|
+
&.select {
|
|
66
|
+
background-color: #FEDF89;
|
|
67
|
+
padding: 4px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&.excluded {
|
|
71
|
+
&::after {
|
|
72
|
+
content: '';
|
|
73
|
+
position: absolute;
|
|
74
|
+
top: 0%;
|
|
75
|
+
left: 0%;
|
|
76
|
+
width: 100%;
|
|
77
|
+
height: 100%;
|
|
78
|
+
background: linear-gradient(-45deg, #ffffff 25%, transparent 25%, transparent 50%, #ffffff 50%, #ffffff 75%, transparent 75%, transparent);
|
|
79
|
+
background-size: 10px 10px;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.caleddar-date {
|
|
84
|
+
color: #101828;
|
|
85
|
+
border-radius: 50%;
|
|
86
|
+
width: 100%;
|
|
87
|
+
height: 100%;
|
|
88
|
+
display: flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
justify-content: center;
|
|
91
|
+
|
|
92
|
+
&.has-status {
|
|
93
|
+
color: #ffffff;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&.disabled-date {
|
|
97
|
+
color: #7D89B0;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.ant-picker-cell {
|
|
103
|
+
padding: 0;
|
|
104
|
+
.cell-size ();
|
|
105
|
+
}
|
|
112
106
|
}
|
|
113
107
|
|
|
114
108
|
// 布局
|
|
115
109
|
.month-list {
|
|
116
|
-
display: flex;
|
|
117
|
-
flex-wrap: wrap;
|
|
118
|
-
justify-content: space-around;
|
|
119
|
-
|
|
120
|
-
.month-item-box {
|
|
121
110
|
display: flex;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
111
|
+
flex-wrap: wrap;
|
|
112
|
+
justify-content: space-around;
|
|
113
|
+
|
|
114
|
+
.month-item-box {
|
|
115
|
+
display: flex;
|
|
116
|
+
// &.month-item-1 {
|
|
117
|
+
// justify-content: center;
|
|
118
|
+
// }
|
|
119
|
+
|
|
120
|
+
// &.month-item-2 {
|
|
121
|
+
// justify-content: center;
|
|
122
|
+
// }
|
|
123
|
+
|
|
124
|
+
// &.month-item-3 {
|
|
125
|
+
// &:nth-child(1n) {
|
|
126
|
+
// justify-content: flex-start;
|
|
127
|
+
// }
|
|
128
|
+
|
|
129
|
+
// &:nth-child(2n) {
|
|
130
|
+
// justify-content: center;
|
|
131
|
+
// }
|
|
132
|
+
|
|
133
|
+
// &:nth-child(3n) {
|
|
134
|
+
// justify-content: flex-end;
|
|
135
|
+
// }
|
|
136
|
+
// }
|
|
137
|
+
|
|
138
|
+
// &.month-item-4 {
|
|
139
|
+
// &:nth-child(1n) {
|
|
140
|
+
// justify-content: flex-start;
|
|
141
|
+
// }
|
|
142
|
+
|
|
143
|
+
// &:nth-child(2n) {
|
|
144
|
+
// justify-content: center;
|
|
145
|
+
// }
|
|
146
|
+
|
|
147
|
+
// &:nth-child(3n) {
|
|
148
|
+
// justify-content: center;
|
|
149
|
+
// }
|
|
150
|
+
|
|
151
|
+
// &:nth-child(4n) {
|
|
152
|
+
// justify-content: flex-end;
|
|
153
|
+
// }
|
|
154
|
+
// }
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.month-item {
|
|
158
|
+
width: 280px;
|
|
159
|
+
margin: 10px;
|
|
160
|
+
}
|
|
167
161
|
}
|
|
168
162
|
|
|
169
163
|
.pisell-lowcode-picker-cell-disabled {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}
|
|
164
|
+
&::before {
|
|
165
|
+
display: none;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
@@ -33,7 +33,7 @@ import "./index.less";
|
|
|
33
33
|
import { addService, addServiceScroll } from "../../utils";
|
|
34
34
|
import NotAvailable from "../notAvailable";
|
|
35
35
|
var AddSerivce = function AddSerivce(props) {
|
|
36
|
-
var _context$appHelper, _context$appHelper$ut, _context$appHelper$ut2, _state$bookingConfig2, _state$client2, _state$
|
|
36
|
+
var _context$appHelper, _context$appHelper$ut, _context$appHelper$ut2, _state$bookingConfig2, _state$client2, _state$service5, _state$service6;
|
|
37
37
|
var onEdit = props.onEdit,
|
|
38
38
|
state = props.state,
|
|
39
39
|
dispatch = props.dispatch,
|
|
@@ -61,8 +61,6 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
61
61
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
62
62
|
currentProduct = _useState4[0],
|
|
63
63
|
setCurrentProduct = _useState4[1];
|
|
64
|
-
var stateRef = useRef(state);
|
|
65
|
-
stateRef.current = state;
|
|
66
64
|
var menuList = useMemo(function () {
|
|
67
65
|
var _state$bookingConfig;
|
|
68
66
|
return (state === null || state === void 0 || (_state$bookingConfig = state.bookingConfig) === null || _state$bookingConfig === void 0 || (_state$bookingConfig = _state$bookingConfig.config) === null || _state$bookingConfig === void 0 || (_state$bookingConfig = _state$bookingConfig.menu_list_tab) === null || _state$bookingConfig === void 0 ? void 0 : _state$bookingConfig.menu_list) || [];
|
|
@@ -165,13 +163,13 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
165
163
|
};
|
|
166
164
|
}();
|
|
167
165
|
var removeNotAvailableService = function removeNotAvailableService(list) {
|
|
168
|
-
var
|
|
169
|
-
if (!((
|
|
166
|
+
var _state$service, _state$service2;
|
|
167
|
+
if (!((_state$service = state.service) !== null && _state$service !== void 0 && (_state$service = _state$service.value) !== null && _state$service !== void 0 && _state$service.length)) return;
|
|
170
168
|
var listMap = list.reduce(function (acc, cur) {
|
|
171
169
|
acc[cur.id] = cur;
|
|
172
170
|
return acc;
|
|
173
171
|
}, {});
|
|
174
|
-
var newValue = (((
|
|
172
|
+
var newValue = (((_state$service2 = state.service) === null || _state$service2 === void 0 ? void 0 : _state$service2.value) || []).filter(function (item) {
|
|
175
173
|
return listMap[item.product_id];
|
|
176
174
|
});
|
|
177
175
|
dispatch({
|
|
@@ -185,7 +183,7 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
185
183
|
var getServices = /*#__PURE__*/function () {
|
|
186
184
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(params) {
|
|
187
185
|
var _state$eventOtherPara, _data$data2, _data$data3;
|
|
188
|
-
var data, _state$
|
|
186
|
+
var data, _state$service3, _notAvailableRef$curr, _data$data;
|
|
189
187
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
190
188
|
while (1) switch (_context2.prev = _context2.next) {
|
|
191
189
|
case 0:
|
|
@@ -230,7 +228,7 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
230
228
|
setLoading(false);
|
|
231
229
|
if ((data === null || data === void 0 ? void 0 : data.code) === 607100) {
|
|
232
230
|
// 第一次加载时,或者之前有数据
|
|
233
|
-
if (!isLoadedServiceRef.current || (_state$
|
|
231
|
+
if (!isLoadedServiceRef.current || (_state$service3 = state.service) !== null && _state$service3 !== void 0 && (_state$service3 = _state$service3.services) !== null && _state$service3 !== void 0 && _state$service3.length) {
|
|
234
232
|
(_notAvailableRef$curr = notAvailableRef.current) === null || _notAvailableRef$curr === void 0 || _notAvailableRef$curr.open();
|
|
235
233
|
}
|
|
236
234
|
}
|
|
@@ -410,8 +408,8 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
410
408
|
});
|
|
411
409
|
});
|
|
412
410
|
var renderList = useMemo(function () {
|
|
413
|
-
var _state$
|
|
414
|
-
var _list = ((_state$
|
|
411
|
+
var _state$service4;
|
|
412
|
+
var _list = ((_state$service4 = state.service) === null || _state$service4 === void 0 ? void 0 : _state$service4.services) || [];
|
|
415
413
|
|
|
416
414
|
// 跨日预约
|
|
417
415
|
if (isDaysBooking(state)) {
|
|
@@ -423,7 +421,7 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
423
421
|
}
|
|
424
422
|
}
|
|
425
423
|
return _list;
|
|
426
|
-
}, [(_state$
|
|
424
|
+
}, [(_state$service5 = state.service) === null || _state$service5 === void 0 ? void 0 : _state$service5.services, state === null || state === void 0 ? void 0 : state.activeCartId]);
|
|
427
425
|
var currentDate = useMemo(function () {
|
|
428
426
|
return state.date.value.format('YYYY-MM-DD');
|
|
429
427
|
}, [state.date.value]);
|
|
@@ -464,6 +462,6 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
464
462
|
}));
|
|
465
463
|
}
|
|
466
464
|
return null;
|
|
467
|
-
}, [(_state$
|
|
465
|
+
}, [(_state$service6 = state.service) === null || _state$service6 === void 0 || (_state$service6 = _state$service6.cacheItem) === null || _state$service6 === void 0 ? void 0 : _state$service6.autoClose, state.service.addModal, locales, renderList, state.amountSymbol, state.renderType, state === null || state === void 0 ? void 0 : state.activeCartId, holderId(state), loading, currentProduct, isBooking4]);
|
|
468
466
|
};
|
|
469
467
|
export default AddSerivce;
|