@pisell/private-materials 3.3.65 → 3.3.66
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 +0 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Content/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Voucher/index.less +0 -2
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/deposit/index.d.ts +0 -1
- package/es/components/appointmentBooking/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/es/components/booking/components/footer/index.js +30 -15
- package/es/components/booking/components/voucher/index.d.ts +0 -1
- package/es/components/booking/components/voucher/index.less +0 -1
- package/es/components/booking/forms/footer.d.ts +0 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/es/components/booking/hooks/useClearCart.d.ts +0 -1
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/index.d.ts +0 -1
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/es/components/booking/info/service/serviceItem/index.d.ts +0 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/editService/index.js +13 -9
- package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -1
- package/es/components/booking/info2/utilsByBooking.js +17 -10
- package/es/components/booking/utils.js +10 -4
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/es/components/eftposPay/component/fail/index.d.ts +0 -1
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
- 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 +0 -1
- package/es/components/eftposPay/pay.d.ts +0 -1
- package/es/components/eftposPay/store/index.d.ts +3 -3
- package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/timeResourceSelector/index.less +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/index.js +5 -4
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/index.d.ts +0 -1
- package/es/components/productSelect/components/TabProduct/index.d.ts +0 -1
- package/es/components/productSelect/components/productGroup/index.d.ts +0 -1
- package/es/components/ruleSetting/index.d.ts +0 -1
- package/es/components/schedules/calendar/index.less +158 -152
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/es/components/shoppingCart/components/Cart/index.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +12 -10
- package/es/components/ticketBooking/components/ticketBooking/index.js +135 -9
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/es/components/ticketBooking/locales.d.ts +164 -146
- package/es/components/ticketBooking/locales.js +195 -147
- package/es/components/ticketBooking/serve.d.ts +5 -0
- package/es/components/ticketBooking/serve.js +27 -0
- package/es/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
- package/es/components/ticketBooking/utils/formatProductMessage.js +53 -0
- package/es/components/ticketBooking/utils/formatTime.d.ts +31 -0
- package/es/components/ticketBooking/utils/formatTime.js +144 -0
- package/es/components/wallet/DiscountCard/index.less +0 -1
- package/es/components/wallet/PointCard/index.less +0 -1
- package/es/components/wallet/RechargeableCard/index.less +5 -9
- package/es/components/wallet/Voucher/index.less +0 -1
- package/es/components/wallet/index.less +0 -4
- package/es/components/walletList/index.js +55 -7
- package/es/components/walletList/index.less +17 -15
- package/es/components/walletList/locales.d.ts +18 -0
- package/es/components/walletList/locales.js +17 -0
- package/es/components/walletList/serve.d.ts +8 -0
- package/es/components/walletList/serve.js +38 -0
- package/es/components/walletList/status.d.ts +38 -0
- package/es/components/walletList/status.js +47 -0
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Voucher/index.less +0 -2
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/deposit/index.d.ts +0 -1
- package/lib/components/appointmentBooking/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/lib/components/booking/components/footer/index.js +14 -2
- package/lib/components/booking/components/voucher/index.d.ts +0 -1
- package/lib/components/booking/components/voucher/index.less +0 -1
- package/lib/components/booking/forms/footer.d.ts +0 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/lib/components/booking/info/service/serviceItem/index.d.ts +0 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/editService/index.js +7 -3
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -1
- package/lib/components/booking/info2/utilsByBooking.js +7 -9
- package/lib/components/booking/utils.js +7 -3
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
- 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 +0 -1
- package/lib/components/eftposPay/pay.d.ts +0 -1
- package/lib/components/eftposPay/store/index.d.ts +3 -3
- package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/timeResourceSelector/index.less +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/index.js +10 -9
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -1
- package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -1
- package/lib/components/productSelect/components/productGroup/index.d.ts +0 -1
- package/lib/components/ruleSetting/index.d.ts +0 -1
- package/lib/components/schedules/calendar/index.less +158 -152
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +5 -3
- package/lib/components/ticketBooking/components/ticketBooking/index.js +134 -8
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/lib/components/ticketBooking/locales.d.ts +164 -146
- package/lib/components/ticketBooking/locales.js +22 -4
- package/lib/components/ticketBooking/serve.d.ts +5 -0
- package/lib/components/ticketBooking/serve.js +8 -2
- package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
- package/lib/components/ticketBooking/utils/formatProductMessage.js +76 -0
- package/lib/components/ticketBooking/utils/formatTime.d.ts +31 -0
- package/lib/components/ticketBooking/utils/formatTime.js +139 -0
- package/lib/components/wallet/DiscountCard/index.less +0 -1
- package/lib/components/wallet/PointCard/index.less +0 -1
- package/lib/components/wallet/RechargeableCard/index.less +5 -9
- package/lib/components/wallet/Voucher/index.less +0 -1
- package/lib/components/wallet/index.less +0 -4
- package/lib/components/walletList/index.js +42 -14
- package/lib/components/walletList/index.less +17 -15
- package/lib/components/walletList/locales.d.ts +18 -0
- package/lib/components/walletList/locales.js +41 -0
- package/lib/components/walletList/serve.d.ts +8 -0
- package/lib/components/walletList/serve.js +15 -2
- package/lib/components/walletList/status.d.ts +38 -0
- package/lib/components/walletList/status.js +66 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/package.json +3 -3
|
@@ -1,167 +1,173 @@
|
|
|
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
|
-
|
|
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-size: 36px;
|
|
12
|
+
font-style: normal;
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
line-height: 44px;
|
|
15
|
+
letter-spacing: -0.72px;
|
|
16
|
+
background-color: #fff;
|
|
17
|
+
position: sticky;
|
|
18
|
+
top: 0;
|
|
19
|
+
z-index: 1;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.caleddar-month {
|
|
23
|
+
color: #344054;
|
|
24
|
+
font-size: 16px;
|
|
25
|
+
font-style: normal;
|
|
26
|
+
font-weight: 600;
|
|
27
|
+
line-height: 24px;
|
|
28
|
+
margin-bottom: 4px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// antd calendar样式修改
|
|
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;
|
|
32
65
|
}
|
|
33
66
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
67
|
+
&.excluded {
|
|
68
|
+
&::after {
|
|
69
|
+
content: '';
|
|
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
|
+
}
|
|
37
87
|
}
|
|
38
88
|
|
|
39
|
-
.
|
|
40
|
-
|
|
41
|
-
|
|
89
|
+
.caleddar-date {
|
|
90
|
+
color: #101828;
|
|
91
|
+
border-radius: 50%;
|
|
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
|
+
}
|
|
42
105
|
}
|
|
106
|
+
}
|
|
43
107
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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
|
-
}
|
|
108
|
+
.ant-picker-cell {
|
|
109
|
+
padding: 0;
|
|
110
|
+
.cell-size ();
|
|
111
|
+
}
|
|
106
112
|
}
|
|
107
113
|
|
|
108
114
|
// 布局
|
|
109
115
|
.month-list {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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
|
-
}
|
|
116
|
+
display: flex;
|
|
117
|
+
flex-wrap: wrap;
|
|
118
|
+
justify-content: space-around;
|
|
156
119
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
120
|
+
.month-item-box {
|
|
121
|
+
display: flex;
|
|
122
|
+
// &.month-item-1 {
|
|
123
|
+
// justify-content: center;
|
|
124
|
+
// }
|
|
125
|
+
|
|
126
|
+
// &.month-item-2 {
|
|
127
|
+
// justify-content: center;
|
|
128
|
+
// }
|
|
129
|
+
|
|
130
|
+
// &.month-item-3 {
|
|
131
|
+
// &:nth-child(1n) {
|
|
132
|
+
// justify-content: flex-start;
|
|
133
|
+
// }
|
|
134
|
+
|
|
135
|
+
// &:nth-child(2n) {
|
|
136
|
+
// justify-content: center;
|
|
137
|
+
// }
|
|
138
|
+
|
|
139
|
+
// &:nth-child(3n) {
|
|
140
|
+
// justify-content: flex-end;
|
|
141
|
+
// }
|
|
142
|
+
// }
|
|
143
|
+
|
|
144
|
+
// &.month-item-4 {
|
|
145
|
+
// &:nth-child(1n) {
|
|
146
|
+
// justify-content: flex-start;
|
|
147
|
+
// }
|
|
148
|
+
|
|
149
|
+
// &:nth-child(2n) {
|
|
150
|
+
// justify-content: center;
|
|
151
|
+
// }
|
|
152
|
+
|
|
153
|
+
// &:nth-child(3n) {
|
|
154
|
+
// justify-content: center;
|
|
155
|
+
// }
|
|
156
|
+
|
|
157
|
+
// &:nth-child(4n) {
|
|
158
|
+
// justify-content: flex-end;
|
|
159
|
+
// }
|
|
160
|
+
// }
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.month-item {
|
|
164
|
+
width: 280px;
|
|
165
|
+
margin: 10px;
|
|
166
|
+
}
|
|
161
167
|
}
|
|
162
168
|
|
|
163
169
|
.pisell-lowcode-picker-cell-disabled {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
}
|
|
170
|
+
&::before {
|
|
171
|
+
display: none;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
@@ -67,6 +67,8 @@ var AddSerivce = (props) => {
|
|
|
67
67
|
state == null ? void 0 : state.renderType
|
|
68
68
|
);
|
|
69
69
|
const [currentProduct, setCurrentProduct] = (0, import_react.useState)(null);
|
|
70
|
+
const stateRef = (0, import_react.useRef)(state);
|
|
71
|
+
stateRef.current = state;
|
|
70
72
|
const menuList = (0, import_react.useMemo)(() => {
|
|
71
73
|
var _a2, _b2, _c2;
|
|
72
74
|
return ((_c2 = (_b2 = (_a2 = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a2.config) == null ? void 0 : _b2.menu_list_tab) == null ? void 0 : _c2.menu_list) || [];
|
|
@@ -124,13 +126,13 @@ var AddSerivce = (props) => {
|
|
|
124
126
|
});
|
|
125
127
|
};
|
|
126
128
|
const removeNotAvailableService = (list) => {
|
|
127
|
-
var _a2, _b2, _c2;
|
|
128
|
-
if (!((_b2 = (_a2 =
|
|
129
|
+
var _a2, _b2, _c2, _d2, _e2;
|
|
130
|
+
if (!((_c2 = (_b2 = (_a2 = stateRef.current) == null ? void 0 : _a2.service) == null ? void 0 : _b2.value) == null ? void 0 : _c2.length)) return;
|
|
129
131
|
const listMap = list.reduce((acc, cur) => {
|
|
130
132
|
acc[cur.id] = cur;
|
|
131
133
|
return acc;
|
|
132
134
|
}, {});
|
|
133
|
-
const newValue = (((
|
|
135
|
+
const newValue = (((_e2 = (_d2 = stateRef.current) == null ? void 0 : _d2.service) == null ? void 0 : _e2.value) || []).filter(
|
|
134
136
|
(item) => listMap[item.product_id]
|
|
135
137
|
);
|
|
136
138
|
dispatch({
|
|
@@ -45,19 +45,32 @@ var import_utils2 = require("../../utils");
|
|
|
45
45
|
var import_addServiceVariant = __toESM(require("../addServiceVariant"));
|
|
46
46
|
var import_timeBar = __toESM(require("../timeBar"));
|
|
47
47
|
var import_index = require("./index.less");
|
|
48
|
+
var import_utils3 = require("../../../booking/info/service2/utils");
|
|
49
|
+
var import_amount = require("../../../booking/components/footer/amount");
|
|
50
|
+
var import_formatProductMessage = __toESM(require("../../utils/formatProductMessage"));
|
|
48
51
|
var TicketBooking = () => {
|
|
49
52
|
var _a;
|
|
50
53
|
const [state, setState] = (0, import_miniRedux.useStore)();
|
|
51
54
|
const engineContext = (0, import_useEngineContext.default)();
|
|
52
55
|
const { props: engineProps } = engineContext.engine;
|
|
53
|
-
const {
|
|
56
|
+
const {
|
|
57
|
+
action,
|
|
58
|
+
isTerminal,
|
|
59
|
+
lowcodeRef,
|
|
60
|
+
interaction,
|
|
61
|
+
store,
|
|
62
|
+
storage,
|
|
63
|
+
Toast,
|
|
64
|
+
getSymbolic,
|
|
65
|
+
translation
|
|
66
|
+
} = (_a = engineContext.appHelper) == null ? void 0 : _a.utils;
|
|
54
67
|
const _persistentRef = (0, import_react.useRef)(false);
|
|
55
68
|
const _initStateRef = (0, import_react.useRef)({});
|
|
56
69
|
const _listTimerRef = (0, import_react.useRef)();
|
|
57
70
|
const _timerRef = (0, import_react.useRef)();
|
|
58
71
|
const _callbackFnRef = (0, import_react.useRef)();
|
|
59
72
|
(0, import_react.useEffect)(() => {
|
|
60
|
-
var _a2, _b, _c, _d, _e;
|
|
73
|
+
var _a2, _b, _c, _d, _e, _f;
|
|
61
74
|
_persistentRef.current = storage.get(`drawer-booking`) === "true" ? true : isTerminal();
|
|
62
75
|
if (lowcodeRef) {
|
|
63
76
|
lowcodeRef.onReady(void 0);
|
|
@@ -95,10 +108,15 @@ var TicketBooking = () => {
|
|
|
95
108
|
"booking",
|
|
96
109
|
"refreshBookingDetail",
|
|
97
110
|
(type, orderId) => {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
111
|
+
_initFn(() => {
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
);
|
|
115
|
+
(_f = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _f.mountFunction(
|
|
116
|
+
"booking",
|
|
117
|
+
"voidBooking",
|
|
118
|
+
(orderId) => {
|
|
119
|
+
(0, import_serve.voidAppointment)(orderId);
|
|
102
120
|
}
|
|
103
121
|
);
|
|
104
122
|
return () => {
|
|
@@ -132,6 +150,112 @@ var TicketBooking = () => {
|
|
|
132
150
|
intervalSetTime: isInterval
|
|
133
151
|
});
|
|
134
152
|
};
|
|
153
|
+
(0, import_react.useEffect)(() => {
|
|
154
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
155
|
+
const cartItems = (_b = (_a2 = state == null ? void 0 : state.modalState) == null ? void 0 : _a2.service) == null ? void 0 : _b.value;
|
|
156
|
+
if (!Array.isArray(cartItems) || cartItems.length === 0) {
|
|
157
|
+
(_d = (_c = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _c.postMessageToApp) == null ? void 0 : _d.call(_c, {
|
|
158
|
+
module: "cds",
|
|
159
|
+
key: "cartUpdate",
|
|
160
|
+
data: {
|
|
161
|
+
currency_symbol: getSymbolic(),
|
|
162
|
+
total: "0",
|
|
163
|
+
// 小计
|
|
164
|
+
products: [],
|
|
165
|
+
fees: []
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
const total = (0, import_amount.getSumTotal)(state.modalState, true);
|
|
170
|
+
let formatedProducts = [];
|
|
171
|
+
try {
|
|
172
|
+
formatedProducts = (0, import_utils3.formatProducts)(
|
|
173
|
+
cartItems,
|
|
174
|
+
state.modalState,
|
|
175
|
+
false,
|
|
176
|
+
true,
|
|
177
|
+
true
|
|
178
|
+
);
|
|
179
|
+
} catch (error) {
|
|
180
|
+
console.error(error);
|
|
181
|
+
}
|
|
182
|
+
console.log("formatedProducts", total, formatedProducts);
|
|
183
|
+
let fees = [];
|
|
184
|
+
let products = [];
|
|
185
|
+
for (const item of formatedProducts) {
|
|
186
|
+
const { id, name, image, origin_total, total: total2, num, note, _origin } = item;
|
|
187
|
+
(_e = _origin == null ? void 0 : _origin.discount_list) == null ? void 0 : _e.forEach((dl) => {
|
|
188
|
+
fees.push({
|
|
189
|
+
isReduce: dl.type === "good_pass",
|
|
190
|
+
title: translation(dl == null ? void 0 : dl.discount.title),
|
|
191
|
+
price: dl.amount,
|
|
192
|
+
type: dl.type
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
let msg = "";
|
|
196
|
+
try {
|
|
197
|
+
msg = (0, import_formatProductMessage.default)(
|
|
198
|
+
{
|
|
199
|
+
...item,
|
|
200
|
+
currency_symbol: getSymbolic()
|
|
201
|
+
},
|
|
202
|
+
(_f = engineContext.appHelper) == null ? void 0 : _f.utils
|
|
203
|
+
);
|
|
204
|
+
} catch (error) {
|
|
205
|
+
console.error(error);
|
|
206
|
+
}
|
|
207
|
+
let _item = {
|
|
208
|
+
productID: id,
|
|
209
|
+
title: name,
|
|
210
|
+
cover: image,
|
|
211
|
+
// 封面图
|
|
212
|
+
price: total2,
|
|
213
|
+
// 售价
|
|
214
|
+
buyCount: num,
|
|
215
|
+
// 购买数量
|
|
216
|
+
productFormatMessage: msg,
|
|
217
|
+
note
|
|
218
|
+
};
|
|
219
|
+
if (origin_total !== total2) _item.modifyPrice = origin_total;
|
|
220
|
+
products.push(_item);
|
|
221
|
+
}
|
|
222
|
+
console.log(
|
|
223
|
+
"formatedProducts",
|
|
224
|
+
(_g = import_utils.locales.getText("pisell2.product.card.cart-items")) == null ? void 0 : _g(products.length)
|
|
225
|
+
);
|
|
226
|
+
if (products.length > 0) {
|
|
227
|
+
fees.unshift({
|
|
228
|
+
title: import_utils.locales.getText("pisell2.product.card.subtotal"),
|
|
229
|
+
price: total.productAmount,
|
|
230
|
+
type: "subtotal",
|
|
231
|
+
message: (_h = import_utils.locales.getText("pisell2.product.card.cart-items")) == null ? void 0 : _h(
|
|
232
|
+
products.length
|
|
233
|
+
)
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
console.log("start post message, config:", {
|
|
237
|
+
module: "cds",
|
|
238
|
+
key: "cartUpdate",
|
|
239
|
+
data: {
|
|
240
|
+
currency_symbol: getSymbolic(),
|
|
241
|
+
total: total.productAmount,
|
|
242
|
+
// 小计
|
|
243
|
+
products,
|
|
244
|
+
fees
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
(_j = (_i = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _i.postMessageToApp) == null ? void 0 : _j.call(_i, {
|
|
248
|
+
module: "cds",
|
|
249
|
+
key: "cartUpdate",
|
|
250
|
+
data: {
|
|
251
|
+
currency_symbol: getSymbolic(),
|
|
252
|
+
total: total.expectAmount,
|
|
253
|
+
// 小计
|
|
254
|
+
products,
|
|
255
|
+
fees
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
}, [state.modalState]);
|
|
135
259
|
const _setModalState = (props) => {
|
|
136
260
|
var _a2, _b;
|
|
137
261
|
console.log("同步state到外层", props);
|
|
@@ -645,8 +769,10 @@ var TicketBooking = () => {
|
|
|
645
769
|
}
|
|
646
770
|
);
|
|
647
771
|
};
|
|
648
|
-
const _callback = (data) => {
|
|
649
|
-
|
|
772
|
+
const _callback = (data, type) => {
|
|
773
|
+
if (isTerminal() && type === "checkout") {
|
|
774
|
+
return;
|
|
775
|
+
}
|
|
650
776
|
setState({
|
|
651
777
|
createCount: state.createCount + 1
|
|
652
778
|
});
|