@pisell/private-materials 3.3.26 → 3.3.27
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 +5 -5
- package/es/components/Sales/Customer/index.js +3 -1
- package/es/components/Sales/Event/Detail.js +5 -1
- package/es/components/Sales/Event/serve.d.ts +3 -0
- package/es/components/Sales/Init/index.d.ts +1 -0
- package/es/components/Sales/Init/index.js +3 -2
- package/es/components/Sales/Step/index.d.ts +2 -0
- package/es/components/Sales/Step/index.js +13 -4
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/ConfirmInformation/index.js +5 -5
- package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Services/index.js +2 -0
- package/es/components/appointmentBooking/deposit/index.js +2 -2
- package/es/components/appointmentBooking/index.d.ts +1 -0
- package/es/components/booking/components/footer/utils.js +16 -15
- package/es/components/booking/hooks/useQuotation.d.ts +4 -0
- package/es/components/booking/hooks/useQuotation.js +256 -0
- package/es/components/booking/info/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/index.js +4 -4
- package/es/components/booking/info/service/editService/index.js +6 -3
- package/es/components/booking/info/service/index.js +4 -1
- package/es/components/booking/info/service2/Group/utils.js +1 -1
- package/es/components/booking/info/service2/hooks/useSelectPet.js +6 -4
- package/es/components/booking/info/service2/index.js +4 -1
- package/es/components/booking/info2/service/addService/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/index.js +29 -9
- package/es/components/booking/info2/service/editService/index.js +2 -0
- package/es/components/booking/info2/service/index.js +4 -1
- package/es/components/booking/locales.d.ts +6 -0
- package/es/components/booking/locales.js +9 -3
- 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/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 +1 -1
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +122 -31
- package/es/components/eventBooking/components/Provider/Event/index.js +20 -4
- package/es/components/eventBooking/components/Provider/Resource/index.js +26 -5
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +2 -2
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +1 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.js +5 -2
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.js +7 -2
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +3 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.js +60 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.less +63 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.d.ts +9 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.js +59 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.less +7 -0
- package/es/components/eventBooking/components/scheduleCalendar/index.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/index.js +30 -21
- package/es/components/eventBooking/components/scheduleCalendar/index.less +2 -0
- package/es/components/eventBooking/index.d.ts +1 -0
- package/es/components/eventBooking/index.js +2 -2
- package/es/components/eventBooking/locales.d.ts +6 -0
- package/es/components/eventBooking/locales.js +166 -160
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +3 -2
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +73 -20
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.less +30 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -1
- package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.d.ts +16 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.js +60 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.less +38 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.d.ts +17 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.js +98 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.less +133 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +7 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.js +34 -0
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.less +23 -0
- package/es/components/pay/toC/WalletPassBlock/index.d.ts +9 -2
- package/es/components/pay/toC/WalletPassBlock/index.js +119 -21
- package/es/components/pay/toC/WalletPassBlock/index.less +82 -13
- package/es/components/pay/toC/index.js +138 -89
- package/es/components/pay/toC/locales.d.ts +69 -3
- package/es/components/pay/toC/locales.js +132 -6
- package/es/components/pay/toC/model.d.ts +4 -0
- package/es/components/pay/toC/model.js +9 -0
- package/es/components/pay/toC/serve.d.ts +23 -0
- package/es/components/pay/toC/serve.js +34 -2
- package/es/components/pay/toC/utils.d.ts +3 -1
- package/es/components/pay/toC/utils.js +8 -3
- package/es/components/productSelect/components/productGroup/index.less +4 -12
- package/es/components/productSelect/index.less +1 -1
- package/es/components/ruleSetting/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +15 -20
- package/es/components/ticketBooking/components/menuBar/index.less +0 -1
- package/es/components/ticketBooking/components/ticketBooking/index.less +2 -4
- package/es/hooks/useLocale.d.ts +2 -0
- package/es/hooks/useLocale.js +7 -0
- package/es/hooks/useLoginUser.d.ts +2 -0
- package/es/hooks/useLoginUser.js +19 -0
- package/lib/components/Sales/Customer/index.js +3 -1
- package/lib/components/Sales/Event/Detail.js +5 -1
- package/lib/components/Sales/Event/serve.d.ts +3 -0
- package/lib/components/Sales/Init/index.d.ts +1 -0
- package/lib/components/Sales/Init/index.js +3 -2
- package/lib/components/Sales/Step/index.d.ts +2 -0
- package/lib/components/Sales/Step/index.js +13 -4
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +2 -2
- package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Services/index.js +2 -0
- package/lib/components/appointmentBooking/deposit/index.js +2 -2
- package/lib/components/appointmentBooking/index.d.ts +1 -0
- package/lib/components/booking/components/footer/utils.js +5 -4
- package/lib/components/booking/hooks/useQuotation.d.ts +4 -0
- package/lib/components/booking/hooks/useQuotation.js +210 -0
- package/lib/components/booking/info/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/index.js +2 -3
- package/lib/components/booking/info/service/editService/index.js +5 -2
- package/lib/components/booking/info/service/index.js +3 -1
- package/lib/components/booking/info/service2/Group/utils.js +2 -2
- package/lib/components/booking/info/service2/hooks/useSelectPet.js +5 -3
- package/lib/components/booking/info/service2/index.js +3 -1
- package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/index.js +25 -17
- package/lib/components/booking/info2/service/editService/index.js +2 -1
- package/lib/components/booking/info2/service/index.js +3 -1
- package/lib/components/booking/locales.d.ts +6 -0
- package/lib/components/booking/locales.js +9 -3
- 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/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 +1 -1
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +52 -4
- package/lib/components/eventBooking/components/Provider/Event/index.js +15 -3
- package/lib/components/eventBooking/components/Provider/Resource/index.js +16 -3
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +2 -2
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +7 -7
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.js +3 -1
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.js +6 -5
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +3 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.js +75 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.less +63 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.d.ts +9 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.js +64 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.less +7 -0
- package/lib/components/eventBooking/components/scheduleCalendar/index.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/index.js +17 -11
- package/lib/components/eventBooking/components/scheduleCalendar/index.less +2 -0
- package/lib/components/eventBooking/index.d.ts +1 -0
- package/lib/components/eventBooking/index.js +2 -2
- package/lib/components/eventBooking/locales.d.ts +6 -0
- package/lib/components/eventBooking/locales.js +10 -4
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +2 -2
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +52 -11
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.less +30 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -1
- package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.d.ts +16 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.js +87 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.less +38 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.d.ts +17 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.js +103 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.less +133 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +7 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.js +52 -0
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.less +23 -0
- package/lib/components/pay/toC/WalletPassBlock/index.d.ts +9 -2
- package/lib/components/pay/toC/WalletPassBlock/index.js +115 -20
- package/lib/components/pay/toC/WalletPassBlock/index.less +82 -13
- package/lib/components/pay/toC/index.js +35 -9
- package/lib/components/pay/toC/locales.d.ts +69 -3
- package/lib/components/pay/toC/locales.js +72 -6
- package/lib/components/pay/toC/model.d.ts +4 -0
- package/lib/components/pay/toC/model.js +10 -0
- package/lib/components/pay/toC/serve.d.ts +23 -0
- package/lib/components/pay/toC/serve.js +12 -6
- package/lib/components/pay/toC/utils.d.ts +3 -1
- package/lib/components/pay/toC/utils.js +8 -3
- package/lib/components/productSelect/components/productGroup/index.less +4 -12
- package/lib/components/productSelect/index.less +1 -1
- package/lib/components/ruleSetting/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +13 -16
- package/lib/components/ticketBooking/components/menuBar/index.less +0 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.less +2 -4
- package/lib/hooks/useLocale.d.ts +2 -0
- package/lib/hooks/useLocale.js +41 -0
- package/lib/hooks/useLoginUser.d.ts +2 -0
- package/lib/hooks/useLoginUser.js +50 -0
- package/package.json +3 -3
|
@@ -60,7 +60,9 @@ export default {
|
|
|
60
60
|
'tocPay.text.scanBarQrCode': 'Scan Bar/QR code',
|
|
61
61
|
'tocPay.text.enterCodes': 'Enter codes',
|
|
62
62
|
'tocPay.text.searchDescribe': 'Please enter code or encode',
|
|
63
|
-
'tocPay.text.walletPassEmpty':
|
|
63
|
+
'tocPay.text.walletPassEmpty': function tocPayTextWalletPassEmpty(walletName) {
|
|
64
|
+
return "No ".concat(walletName);
|
|
65
|
+
},
|
|
64
66
|
'tocPay.text.walletPassDisabled': 'Disabled',
|
|
65
67
|
'tocPay.text.walletPassPermanent': 'Permanent',
|
|
66
68
|
'tocPay.text.walletPassCompleteTitle': 'Please click ‘Submit’ button at the bottom to complete',
|
|
@@ -70,7 +72,47 @@ export default {
|
|
|
70
72
|
'tocPay.text.walletSearchEmpty': 'No results found.',
|
|
71
73
|
'tocPay.text.detectIncognitoConfirm': 'You are currently in private mode, wallet payment may not succeed. Please copy the link and continue payment in a non-private browsing tab.',
|
|
72
74
|
'tocPay.text.copyLink': 'Copy link',
|
|
73
|
-
'tocPay.text.copySuccess': 'Copy Success'
|
|
75
|
+
'tocPay.text.copySuccess': 'Copy Success',
|
|
76
|
+
'tocPay.text.walletName': function tocPayTextWalletName(shopName) {
|
|
77
|
+
return "".concat(shopName, "'s wallet");
|
|
78
|
+
},
|
|
79
|
+
'tocPay.text.bestValueFound': 'Best wallet combination for you!',
|
|
80
|
+
'tocPay.text.welcomeToUseWalletPass': function tocPayTextWelcomeToUseWalletPass(walletName) {
|
|
81
|
+
return "Welcome to use ".concat(walletName);
|
|
82
|
+
},
|
|
83
|
+
'tocPay.text.totalSavings': 'Total savings',
|
|
84
|
+
'tocPay.text.bestCombination': function tocPayTextBestCombination(walletName) {
|
|
85
|
+
return "Best combination of your available ".concat(walletName, " options");
|
|
86
|
+
},
|
|
87
|
+
'tocPay.text.recommended': 'Recommended',
|
|
88
|
+
'tocPay.text.edit': 'Edit',
|
|
89
|
+
'tocPay.text.confirm': 'Confirm',
|
|
90
|
+
'tocPay.text.unusedAndContinueToPayment': 'Unused and continue to payment',
|
|
91
|
+
'tocPay.text.walletPassAvailable': function tocPayTextWalletPassAvailable(walletName) {
|
|
92
|
+
return "You have no valid ".concat(walletName);
|
|
93
|
+
},
|
|
94
|
+
'tocPay.text.useWalletPass': function tocPayTextUseWalletPass(walletName) {
|
|
95
|
+
return "Go to ".concat(walletName);
|
|
96
|
+
},
|
|
97
|
+
'tocPay.text.useWalletPassAdd': function tocPayTextUseWalletPassAdd(walletName) {
|
|
98
|
+
return "Go to ".concat(walletName);
|
|
99
|
+
},
|
|
100
|
+
'tocPay.text.editWalletPass': function tocPayTextEditWalletPass(walletName) {
|
|
101
|
+
return "Change Combination";
|
|
102
|
+
},
|
|
103
|
+
'tocPay.text.skipAndContinueToPayment': 'Skip and continue to payment',
|
|
104
|
+
'tocPay.text.youMightHaveAnEligibleWalletPass': function tocPayTextYouMightHaveAnEligibleWalletPass(walletName) {
|
|
105
|
+
return "You might have an eligible ".concat(walletName);
|
|
106
|
+
},
|
|
107
|
+
'tocPay.text.checkIfYouHaveAnyPointsCardRechargableCardOrVouchersToUse': 'Check if you have any Points Card, Rechargable Card , or Vouchers to use',
|
|
108
|
+
'tocPay.text.addPointsCard': "Add points card, rechargable card, or vouchers if have any in hand.",
|
|
109
|
+
'tocPay.text.hasNoWalletPassAmount': 'View points card, rechargable card, or vouchers options',
|
|
110
|
+
'tocPay.text.multipleSelectionAvailable': 'Multiple selection available',
|
|
111
|
+
'tocPay.text.youCanSelectMultipleWalletPassesToCombineForPayment': function tocPayTextYouCanSelectMultipleWalletPassesToCombineForPayment(walletName) {
|
|
112
|
+
return "You can select multiple ".concat(walletName, " to combine for payment");
|
|
113
|
+
},
|
|
114
|
+
'tocPay.text.bestValueCombination': 'Best value combination',
|
|
115
|
+
'tocPay.text.viewDetail': 'View detail'
|
|
74
116
|
},
|
|
75
117
|
'zh-CN': {
|
|
76
118
|
'tocPay.text.checkout': '结账',
|
|
@@ -133,7 +175,9 @@ export default {
|
|
|
133
175
|
'tocPay.text.scanBarQrCode': '扫描条形码/二维码',
|
|
134
176
|
'tocPay.text.enterCodes': '输入编码',
|
|
135
177
|
'tocPay.text.searchDescribe': '请输入卡片编码或发行编码',
|
|
136
|
-
'tocPay.text.walletPassEmpty':
|
|
178
|
+
'tocPay.text.walletPassEmpty': function tocPayTextWalletPassEmpty(walletName) {
|
|
179
|
+
return "\u6CA1\u6709\u53EF\u4F7F\u7528\u7684".concat(walletName);
|
|
180
|
+
},
|
|
137
181
|
'tocPay.text.walletPassDisabled': '不可用',
|
|
138
182
|
'tocPay.text.walletPassPermanent': '永久有效',
|
|
139
183
|
'tocPay.text.walletPassCompleteTitle': '请点击底部的“提交”按钮完成支付',
|
|
@@ -142,7 +186,47 @@ export default {
|
|
|
142
186
|
'tocPay.text.walletSearchEmpty': '没有查询到任何结果。',
|
|
143
187
|
'tocPay.text.detectIncognitoConfirm': '当前处于无痕模式,钱包支付可能失败,请复制链接在非无痕模式下继续支付。',
|
|
144
188
|
'tocPay.text.copyLink': '复制链接',
|
|
145
|
-
'tocPay.text.copySuccess': '复制成功'
|
|
189
|
+
'tocPay.text.copySuccess': '复制成功',
|
|
190
|
+
'tocPay.text.walletName': function tocPayTextWalletName(shopName) {
|
|
191
|
+
return "".concat(shopName, "\u94B1\u5305");
|
|
192
|
+
},
|
|
193
|
+
'tocPay.text.bestValueFound': '找到最佳组合选择!',
|
|
194
|
+
'tocPay.text.welcomeToUseWalletPass': function tocPayTextWelcomeToUseWalletPass(walletName) {
|
|
195
|
+
return "\u6B22\u8FCE\u4F7F\u7528".concat(walletName);
|
|
196
|
+
},
|
|
197
|
+
'tocPay.text.totalSavings': '总节省',
|
|
198
|
+
'tocPay.text.bestCombination': function tocPayTextBestCombination(walletName) {
|
|
199
|
+
return "\u53EF\u7528".concat(walletName, "\u9009\u9879\u7684\u6700\u4F73\u7EC4\u5408");
|
|
200
|
+
},
|
|
201
|
+
'tocPay.text.recommended': '推荐',
|
|
202
|
+
'tocPay.text.edit': '编辑',
|
|
203
|
+
'tocPay.text.confirm': '确认',
|
|
204
|
+
'tocPay.text.unusedAndContinueToPayment': '不使用并继续付款',
|
|
205
|
+
'tocPay.text.walletPassAvailable': function tocPayTextWalletPassAvailable(walletName) {
|
|
206
|
+
return "\u6682\u65E0".concat(walletName, "\u53EF\u7528");
|
|
207
|
+
},
|
|
208
|
+
'tocPay.text.useWalletPass': function tocPayTextUseWalletPass(walletName) {
|
|
209
|
+
return "\u524D\u5F80".concat(walletName);
|
|
210
|
+
},
|
|
211
|
+
'tocPay.text.useWalletPassAdd': function tocPayTextUseWalletPassAdd(walletName) {
|
|
212
|
+
return "\u524D\u5F80".concat(walletName, "\u6DFB\u52A0");
|
|
213
|
+
},
|
|
214
|
+
'tocPay.text.editWalletPass': function tocPayTextEditWalletPass(walletName) {
|
|
215
|
+
return "\u4FEE\u6539\u4F18\u60E0\u7EC4\u5408";
|
|
216
|
+
},
|
|
217
|
+
'tocPay.text.skipAndContinueToPayment': '跳过并继续付款',
|
|
218
|
+
'tocPay.text.youMightHaveAnEligibleWalletPass': function tocPayTextYouMightHaveAnEligibleWalletPass(walletName) {
|
|
219
|
+
return "\u60A8\u53EF\u80FD\u62E5\u6709\u7B26\u5408\u6761\u4EF6\u7684".concat(walletName);
|
|
220
|
+
},
|
|
221
|
+
'tocPay.text.checkIfYouHaveAnyPointsCardRechargableCardOrVouchersToUse': '检查您是否有积分卡、充值卡或代金券可供使用',
|
|
222
|
+
'tocPay.text.addPointsCard': "如您有任何优惠券、储值卡、积分卡",
|
|
223
|
+
'tocPay.text.hasNoWalletPassAmount': '点击查看可激活的储值、积分、代金券选项',
|
|
224
|
+
'tocPay.text.multipleSelectionAvailable': '可多选',
|
|
225
|
+
'tocPay.text.youCanSelectMultipleWalletPassesToCombineForPayment': function tocPayTextYouCanSelectMultipleWalletPassesToCombineForPayment(walletName) {
|
|
226
|
+
return "\u60A8\u53EF\u4EE5\u9009\u62E9\u591A\u4E2A".concat(walletName, "\u8FDB\u884C\u7EC4\u5408\u4ED8\u6B3E");
|
|
227
|
+
},
|
|
228
|
+
'tocPay.text.bestValueCombination': '最佳组合',
|
|
229
|
+
'tocPay.text.viewDetail': '查看详情'
|
|
146
230
|
},
|
|
147
231
|
'zh-HK': {
|
|
148
232
|
'tocPay.text.checkout': '結帳',
|
|
@@ -205,7 +289,9 @@ export default {
|
|
|
205
289
|
'tocPay.text.scanBarQrCode': '掃描條形碼/二維碼',
|
|
206
290
|
'tocPay.text.enterCodes': '輸入編碼',
|
|
207
291
|
'tocPay.text.searchDescribe': '請輸入卡片編碼或發行編碼',
|
|
208
|
-
'tocPay.text.walletPassEmpty':
|
|
292
|
+
'tocPay.text.walletPassEmpty': function tocPayTextWalletPassEmpty(walletName) {
|
|
293
|
+
return "\u6C92\u6709\u53EF\u4F7F\u7528\u7684".concat(walletName);
|
|
294
|
+
},
|
|
209
295
|
'tocPay.text.walletPassDisabled': '不可用',
|
|
210
296
|
'tocPay.text.walletPassPermanent': '永久有效',
|
|
211
297
|
'tocPay.text.walletPassCompleteTitle': '請點擊底部的“提交”按鈕完成支付',
|
|
@@ -214,6 +300,46 @@ export default {
|
|
|
214
300
|
'tocPay.text.walletSearchEmpty': '沒有查詢到任何結果。',
|
|
215
301
|
'tocPay.text.detectIncognitoConfirm': '目前處於無痕模式,錢包支付可能失敗,請複製連結在非無痕模式下繼續支付。',
|
|
216
302
|
'tocPay.text.copyLink': '復製链接',
|
|
217
|
-
'tocPay.text.copySuccess': '復製成功'
|
|
303
|
+
'tocPay.text.copySuccess': '復製成功',
|
|
304
|
+
'tocPay.text.walletName': function tocPayTextWalletName(shopName) {
|
|
305
|
+
return "".concat(shopName, "\u9322\u5305");
|
|
306
|
+
},
|
|
307
|
+
'tocPay.text.bestValueFound': '找到最佳組合選擇!',
|
|
308
|
+
'tocPay.text.welcomeToUseWalletPass': function tocPayTextWelcomeToUseWalletPass(walletName) {
|
|
309
|
+
return "\u6B61\u8FCE\u4F7F\u7528".concat(walletName);
|
|
310
|
+
},
|
|
311
|
+
'tocPay.text.totalSavings': '總節省',
|
|
312
|
+
'tocPay.text.bestCombination': function tocPayTextBestCombination(walletName) {
|
|
313
|
+
return "\u53EF\u7528".concat(walletName, "\u9078\u9805\u7684\u6700\u4F73\u7D44\u5408");
|
|
314
|
+
},
|
|
315
|
+
'tocPay.text.recommended': '推薦',
|
|
316
|
+
'tocPay.text.edit': '編輯',
|
|
317
|
+
'tocPay.text.confirm': '確認',
|
|
318
|
+
'tocPay.text.unusedAndContinueToPayment': '不使用並繼續付款',
|
|
319
|
+
'tocPay.text.walletPassAvailable': function tocPayTextWalletPassAvailable(walletName) {
|
|
320
|
+
return "\u6682\u65E0".concat(walletName, " \u53EF\u7528");
|
|
321
|
+
},
|
|
322
|
+
'tocPay.text.useWalletPass': function tocPayTextUseWalletPass(walletName) {
|
|
323
|
+
return "\u524D\u5F80".concat(walletName);
|
|
324
|
+
},
|
|
325
|
+
'tocPay.text.useWalletPassAdd': function tocPayTextUseWalletPassAdd(walletName) {
|
|
326
|
+
return "\u524D\u5F80".concat(walletName, "\u6DFB\u52A0");
|
|
327
|
+
},
|
|
328
|
+
'tocPay.text.editWalletPass': function tocPayTextEditWalletPass(walletName) {
|
|
329
|
+
return "\u4FEE\u6539\u512A\u60E0\u7D44\u5408";
|
|
330
|
+
},
|
|
331
|
+
'tocPay.text.skipAndContinueToPayment': '跳過並繼續付款',
|
|
332
|
+
'tocPay.text.youMightHaveAnEligibleWalletPass': function tocPayTextYouMightHaveAnEligibleWalletPass(walletName) {
|
|
333
|
+
return "\u60A8\u53EF\u80FD\u64C1\u6709\u7B26\u5408\u689D\u4EF6\u7684".concat(walletName);
|
|
334
|
+
},
|
|
335
|
+
'tocPay.text.checkIfYouHaveAnyPointsCardRechargableCardOrVouchersToUse': '檢查您是否有積分卡、充值卡或代金券可供使用',
|
|
336
|
+
'tocPay.text.addPointsCard': "如您有任何优惠券、储值卡、积分卡",
|
|
337
|
+
'tocPay.text.hasNoWalletPassAmount': '點擊查看可激活的儲值、積分、代金券選項',
|
|
338
|
+
'tocPay.text.multipleSelectionAvailable': '可多選',
|
|
339
|
+
'tocPay.text.youCanSelectMultipleWalletPassesToCombineForPayment': function tocPayTextYouCanSelectMultipleWalletPassesToCombineForPayment(walletName) {
|
|
340
|
+
return "\u60A8\u53EF\u4EE5\u9078\u64C7\u591A\u500B".concat(walletName, "\u9032\u884C\u7D44\u5408\u4ED8\u6B3E");
|
|
341
|
+
},
|
|
342
|
+
'tocPay.text.bestValueCombination': '最佳組合',
|
|
343
|
+
'tocPay.text.viewDetail': '查看詳情'
|
|
218
344
|
}
|
|
219
345
|
};
|
|
@@ -13,6 +13,10 @@ var defaultState = {
|
|
|
13
13
|
status: 'init',
|
|
14
14
|
payCallback: function payCallback() {},
|
|
15
15
|
history: null,
|
|
16
|
+
walletSetting: {
|
|
17
|
+
name: "",
|
|
18
|
+
popup_status: null
|
|
19
|
+
},
|
|
16
20
|
payGroup: {
|
|
17
21
|
wait_amount: 0
|
|
18
22
|
}
|
|
@@ -33,6 +37,11 @@ var _miniRedux = miniRedux({
|
|
|
33
37
|
payGroup: res
|
|
34
38
|
});
|
|
35
39
|
},
|
|
40
|
+
setWalletSetting: function setWalletSetting(state, payload) {
|
|
41
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
42
|
+
walletSetting: _objectSpread(_objectSpread({}, state.walletSetting), payload)
|
|
43
|
+
});
|
|
44
|
+
},
|
|
36
45
|
init: function init(state, payload) {
|
|
37
46
|
return _objectSpread(_objectSpread({}, defaultState), payload);
|
|
38
47
|
}
|
|
@@ -32,3 +32,26 @@ export declare const getPaymentInit: (values: {
|
|
|
32
32
|
order_id?: string;
|
|
33
33
|
amount?: number;
|
|
34
34
|
}) => Promise<any>;
|
|
35
|
+
/**
|
|
36
|
+
* @title: 获取钱包名称和弹窗状态
|
|
37
|
+
* @description:
|
|
38
|
+
* @param {object} values
|
|
39
|
+
* @return {*}
|
|
40
|
+
* @Author: shengjie.zuo
|
|
41
|
+
* @member: 马天宇
|
|
42
|
+
* @Date: 2025-02-21 10:42
|
|
43
|
+
*/
|
|
44
|
+
export declare const getWalletNameAndPopupStatus: (values: {
|
|
45
|
+
setting_type?: string;
|
|
46
|
+
}) => Promise<{
|
|
47
|
+
wallet: {
|
|
48
|
+
name?: {
|
|
49
|
+
en: string;
|
|
50
|
+
'zh-CN': string;
|
|
51
|
+
'zh-HK': string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
wallet_setting: {
|
|
55
|
+
popup_status?: 1 | 0;
|
|
56
|
+
};
|
|
57
|
+
}>;
|
|
@@ -81,7 +81,7 @@ export var getPaymentList = /*#__PURE__*/function () {
|
|
|
81
81
|
|
|
82
82
|
/**
|
|
83
83
|
* @title: 聚合接口, 根据订单 返回支付列表和钱包
|
|
84
|
-
* @description:
|
|
84
|
+
* @description:
|
|
85
85
|
* @param {object} values
|
|
86
86
|
* @return {*}
|
|
87
87
|
* @Author: zhiwei.Wang
|
|
@@ -118,7 +118,7 @@ export var getPaymentsAndWalletPass = /*#__PURE__*/function () {
|
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
120
|
* @title: 初始化交易组
|
|
121
|
-
* @description:
|
|
121
|
+
* @description:
|
|
122
122
|
* @param {object} values
|
|
123
123
|
* @return {*}
|
|
124
124
|
* @Author: zhiwei.Wang
|
|
@@ -145,4 +145,36 @@ export var getPaymentInit = /*#__PURE__*/function () {
|
|
|
145
145
|
return function getPaymentInit(_x3) {
|
|
146
146
|
return _ref3.apply(this, arguments);
|
|
147
147
|
};
|
|
148
|
+
}();
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @title: 获取钱包名称和弹窗状态
|
|
152
|
+
* @description:
|
|
153
|
+
* @param {object} values
|
|
154
|
+
* @return {*}
|
|
155
|
+
* @Author: shengjie.zuo
|
|
156
|
+
* @member: 马天宇
|
|
157
|
+
* @Date: 2025-02-21 10:42
|
|
158
|
+
*/
|
|
159
|
+
export var getWalletNameAndPopupStatus = /*#__PURE__*/function () {
|
|
160
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(values) {
|
|
161
|
+
var _yield$request$getReq4, data;
|
|
162
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
163
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
164
|
+
case 0:
|
|
165
|
+
_context4.next = 2;
|
|
166
|
+
return request.getRequest().get('/h5/wallet/setting', values);
|
|
167
|
+
case 2:
|
|
168
|
+
_yield$request$getReq4 = _context4.sent;
|
|
169
|
+
data = _yield$request$getReq4.data;
|
|
170
|
+
return _context4.abrupt("return", data);
|
|
171
|
+
case 5:
|
|
172
|
+
case "end":
|
|
173
|
+
return _context4.stop();
|
|
174
|
+
}
|
|
175
|
+
}, _callee4);
|
|
176
|
+
}));
|
|
177
|
+
return function getWalletNameAndPopupStatus(_x4) {
|
|
178
|
+
return _ref4.apply(this, arguments);
|
|
179
|
+
};
|
|
148
180
|
}();
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PayGroup } from "./model";
|
|
2
|
+
import { WalletPassDataType } from "./PaymentMethods/WalletPass/serve";
|
|
2
3
|
/**
|
|
3
4
|
* 计算walletPass列表数据的总金额
|
|
4
5
|
* @param list
|
|
@@ -21,7 +22,7 @@ export declare const formatWalletPassParams: (payGroup: PayGroup) => {
|
|
|
21
22
|
order_id: string;
|
|
22
23
|
payment_group_id: number;
|
|
23
24
|
payments: {
|
|
24
|
-
amount:
|
|
25
|
+
amount: string;
|
|
25
26
|
wallet_pass_use_value: any;
|
|
26
27
|
voucher_id: any;
|
|
27
28
|
tag: any;
|
|
@@ -47,3 +48,4 @@ export declare const isFranchiseeShop: (path?: any, history?: any) => any;
|
|
|
47
48
|
*/
|
|
48
49
|
export declare const getFranchiseeShopId: (path?: any, history?: any) => number;
|
|
49
50
|
export declare const formatFranchiseeRoute: (url: string, history?: any) => string;
|
|
51
|
+
export declare const getAvailableMaxAmount: (data: WalletPassDataType) => string;
|
|
@@ -6,7 +6,7 @@ import { isTripartitePayment } from "./status";
|
|
|
6
6
|
*/
|
|
7
7
|
export var calcWalletPassListAmount = function calcWalletPassListAmount(list) {
|
|
8
8
|
return list.reduce(function (pre, cur) {
|
|
9
|
-
return pre.add(new Decimal(String(cur
|
|
9
|
+
return pre.add(new Decimal(String(getAvailableMaxAmount(cur) || 0)));
|
|
10
10
|
}, new Decimal('0')).toNumber();
|
|
11
11
|
};
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ export var formatWalletPassList2PreparePayments = function formatWalletPassList2
|
|
|
18
18
|
return (list || []).map(function (item) {
|
|
19
19
|
return {
|
|
20
20
|
voucher_id: item.id || 0,
|
|
21
|
-
amount: Number(item
|
|
21
|
+
amount: Number(getAvailableMaxAmount(item)) || 0,
|
|
22
22
|
tag: item.tag || ''
|
|
23
23
|
};
|
|
24
24
|
});
|
|
@@ -34,7 +34,7 @@ export var formatWalletPassParams = function formatWalletPassParams(payGroup) {
|
|
|
34
34
|
walletPass = payGroup.walletPass;
|
|
35
35
|
var payments = (walletPass === null || walletPass === void 0 ? void 0 : walletPass.cards.map(function (item) {
|
|
36
36
|
return {
|
|
37
|
-
amount: item
|
|
37
|
+
amount: getAvailableMaxAmount(item),
|
|
38
38
|
wallet_pass_use_value: item.available_max_par_value,
|
|
39
39
|
voucher_id: item.id,
|
|
40
40
|
tag: item.tag,
|
|
@@ -85,4 +85,9 @@ export var formatFranchiseeRoute = function formatFranchiseeRoute(url, history)
|
|
|
85
85
|
return "/franchisee/shop/shop_".concat(getFranchiseeShopId(null, history)).concat(url);
|
|
86
86
|
}
|
|
87
87
|
return url;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
// 获取walletPass可用最大金额
|
|
91
|
+
export var getAvailableMaxAmount = function getAvailableMaxAmount(data) {
|
|
92
|
+
return data.tag !== 'point_card' ? data.available_max_amount : data === null || data === void 0 ? void 0 : data.recommended_usage_amount;
|
|
88
93
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
.pisell-product-select-group {
|
|
2
2
|
.group-title {
|
|
3
3
|
color: var(--ps-category-text-color, #000);
|
|
4
|
-
font-family: Inter;
|
|
5
4
|
font-size: 18px;
|
|
6
5
|
font-style: normal;
|
|
7
6
|
font-weight: 600;
|
|
@@ -84,7 +83,6 @@
|
|
|
84
83
|
background: var(--Error-100, #fee4e2);
|
|
85
84
|
color: var(--Error-700, #b42318);
|
|
86
85
|
text-align: center;
|
|
87
|
-
font-family: Inter;
|
|
88
86
|
font-size: 14px;
|
|
89
87
|
font-style: normal;
|
|
90
88
|
font-weight: 500;
|
|
@@ -114,8 +112,7 @@
|
|
|
114
112
|
row-gap: 8px;
|
|
115
113
|
min-height: 92px;
|
|
116
114
|
.title {
|
|
117
|
-
color: var(--ps-card-text, #
|
|
118
|
-
font-family: Inter;
|
|
115
|
+
color: var(--ps-card-text, #1b1b1b);
|
|
119
116
|
font-size: 18px;
|
|
120
117
|
font-style: normal;
|
|
121
118
|
font-weight: 600;
|
|
@@ -130,9 +127,8 @@
|
|
|
130
127
|
.stock,
|
|
131
128
|
.specs {
|
|
132
129
|
overflow: hidden;
|
|
133
|
-
color: var(--ps-color-text-secondary, #
|
|
130
|
+
color: var(--ps-color-text-secondary, #4e4e4e);
|
|
134
131
|
text-overflow: ellipsis;
|
|
135
|
-
font-family: Inter;
|
|
136
132
|
font-size: 14px;
|
|
137
133
|
font-style: normal;
|
|
138
134
|
font-weight: 500;
|
|
@@ -161,7 +157,6 @@
|
|
|
161
157
|
mix-blend-mode: multiply;
|
|
162
158
|
color: var(--Error-700, #b42318);
|
|
163
159
|
text-align: center;
|
|
164
|
-
font-family: Inter;
|
|
165
160
|
font-size: 14px;
|
|
166
161
|
font-style: normal;
|
|
167
162
|
font-weight: 500;
|
|
@@ -174,16 +169,14 @@
|
|
|
174
169
|
gap: 8px;
|
|
175
170
|
}
|
|
176
171
|
.price {
|
|
177
|
-
color: var(--ps-card-text, #
|
|
178
|
-
font-family: Inter;
|
|
172
|
+
color: var(--ps-card-text, #1b1b1b);
|
|
179
173
|
font-size: 18px;
|
|
180
174
|
font-style: normal;
|
|
181
175
|
font-weight: 600;
|
|
182
176
|
line-height: 28px;
|
|
183
177
|
}
|
|
184
178
|
.original-price {
|
|
185
|
-
color: var(--ps-color-text-secondary, #
|
|
186
|
-
font-family: Inter;
|
|
179
|
+
color: var(--ps-color-text-secondary, #4e4e4e);
|
|
187
180
|
font-size: 16px;
|
|
188
181
|
font-style: normal;
|
|
189
182
|
font-weight: 400;
|
|
@@ -197,7 +190,6 @@
|
|
|
197
190
|
|
|
198
191
|
.remark {
|
|
199
192
|
color: var(--Warning-600, #dc6803);
|
|
200
|
-
font-family: Inter;
|
|
201
193
|
font-size: 14px;
|
|
202
194
|
font-style: normal;
|
|
203
195
|
font-weight: 600;
|
|
@@ -32,7 +32,7 @@ import { useService } from "../../../booking/info/service/serviceManager";
|
|
|
32
32
|
import ProductSelect from "../../../productSelect";
|
|
33
33
|
import "./index.less";
|
|
34
34
|
var AddSerivce = function AddSerivce(props) {
|
|
35
|
-
var _context$appHelper$ut, _context$appHelper$ut2, _state$service2, _state$service3;
|
|
35
|
+
var _context$appHelper$ut, _context$appHelper$ut2, _state$client2, _state$service2, _state$service3;
|
|
36
36
|
var onEdit = props.onEdit,
|
|
37
37
|
state = props.state,
|
|
38
38
|
dispatch = props.dispatch,
|
|
@@ -57,6 +57,10 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
57
57
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
58
58
|
currentProduct = _useState4[0],
|
|
59
59
|
setCurrentProduct = _useState4[1];
|
|
60
|
+
var customerId = useMemo(function () {
|
|
61
|
+
var _state$client;
|
|
62
|
+
return ((_state$client = state.client) === null || _state$client === void 0 || (_state$client = _state$client.value) === null || _state$client === void 0 ? void 0 : _state$client.id) || undefined;
|
|
63
|
+
}, [(_state$client2 = state.client) === null || _state$client2 === void 0 || (_state$client2 = _state$client2.value) === null || _state$client2 === void 0 ? void 0 : _state$client2.id]);
|
|
60
64
|
|
|
61
65
|
/**
|
|
62
66
|
* @title: 如果商品只有一个, 则自动设置默认商品
|
|
@@ -173,7 +177,7 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
173
177
|
return _context2.abrupt("return");
|
|
174
178
|
case 5:
|
|
175
179
|
_context2.next = 7;
|
|
176
|
-
return state.apis.getServices(
|
|
180
|
+
return state.apis.getServices({
|
|
177
181
|
skip: 1,
|
|
178
182
|
num: 500,
|
|
179
183
|
extension_type: state.productExtensionType,
|
|
@@ -182,14 +186,10 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
182
186
|
with_schedule: 1,
|
|
183
187
|
with_count: ['bundleGroup', 'optionGroup'],
|
|
184
188
|
order_by_string: 'sort:desc',
|
|
185
|
-
status: 'published'
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}
|
|
189
|
-
_config: {
|
|
190
|
-
useCache: true
|
|
191
|
-
}
|
|
192
|
-
}));
|
|
189
|
+
status: 'published',
|
|
190
|
+
schedule_date: params === null || params === void 0 ? void 0 : params.schedule_date,
|
|
191
|
+
customer_id: params === null || params === void 0 ? void 0 : params.customer_id
|
|
192
|
+
});
|
|
193
193
|
case 7:
|
|
194
194
|
data = _context2.sent;
|
|
195
195
|
setLoading(false);
|
|
@@ -237,6 +237,7 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
237
237
|
package: true
|
|
238
238
|
},
|
|
239
239
|
is_eject: isEject ? 1 : 0,
|
|
240
|
+
customer_id: customerId,
|
|
240
241
|
isOS: isSession
|
|
241
242
|
},
|
|
242
243
|
onCancel: function onCancel() {
|
|
@@ -379,17 +380,11 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
379
380
|
useEffect(function () {
|
|
380
381
|
if (renderMode === 'current') {
|
|
381
382
|
getServices({
|
|
382
|
-
schedule_date: currentDate
|
|
383
|
-
|
|
384
|
-
}
|
|
385
|
-
}, [renderMode, currentDate]);
|
|
386
|
-
useEffect(function () {
|
|
387
|
-
if (state.renderType === 'eventBooking' && state.modalOpen) {
|
|
388
|
-
getServices({
|
|
389
|
-
schedule_date: currentDate
|
|
383
|
+
schedule_date: currentDate,
|
|
384
|
+
customer_id: customerId
|
|
390
385
|
});
|
|
391
386
|
}
|
|
392
|
-
}, [
|
|
387
|
+
}, [renderMode, currentDate, customerId]);
|
|
393
388
|
return useMemo(function () {
|
|
394
389
|
if (renderMode === 'current') {
|
|
395
390
|
return /*#__PURE__*/React.createElement(ProductSelect, {
|
|
@@ -400,7 +395,7 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
400
395
|
},
|
|
401
396
|
onChange: handleSelectProduct,
|
|
402
397
|
value: currentProduct === null || currentProduct === void 0 ? void 0 : currentProduct.id,
|
|
403
|
-
loading: loading
|
|
398
|
+
loading: !renderList.length && loading
|
|
404
399
|
});
|
|
405
400
|
}
|
|
406
401
|
return null;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
.pisell-ticket-booking-wrapper {
|
|
2
|
-
|
|
3
|
-
|
|
4
2
|
.pisell-lowcode__booking-tab-pane-footer {
|
|
5
3
|
padding: 16px;
|
|
6
4
|
}
|
|
7
5
|
.create-booking-page-info-wrap-create {
|
|
8
|
-
background-color: #
|
|
6
|
+
background-color: #1b1b1b;
|
|
9
7
|
.booking-info {
|
|
10
8
|
.booking-info-create-new,
|
|
11
9
|
.pisell-lowcode__booking-field-title,
|
|
@@ -15,4 +13,4 @@
|
|
|
15
13
|
}
|
|
16
14
|
}
|
|
17
15
|
}
|
|
18
|
-
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import useEngineContext from "./useEngineContext";
|
|
2
|
+
var useLocale = function useLocale() {
|
|
3
|
+
var _context$engine;
|
|
4
|
+
var context = useEngineContext();
|
|
5
|
+
return (context === null || context === void 0 || (_context$engine = context.engine) === null || _context$engine === void 0 || (_context$engine = _context$engine.props) === null || _context$engine === void 0 ? void 0 : _context$engine.locale) || 'en';
|
|
6
|
+
};
|
|
7
|
+
export default useLocale;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
|
+
import useEngineContext from "./useEngineContext";
|
|
3
|
+
var useLoginUser = function useLoginUser() {
|
|
4
|
+
var context = useEngineContext();
|
|
5
|
+
var _ref = context.appHelper.utils || {},
|
|
6
|
+
store = _ref.store,
|
|
7
|
+
storage = _ref.storage,
|
|
8
|
+
getStore = _ref.getStore;
|
|
9
|
+
var user = useMemo(function () {
|
|
10
|
+
var _store$getState, _userInfo;
|
|
11
|
+
var _store = getStore();
|
|
12
|
+
var userInfo = (_store$getState = _store.getState) === null || _store$getState === void 0 || (_store$getState = _store$getState.call(_store)) === null || _store$getState === void 0 || (_store$getState = _store$getState.global) === null || _store$getState === void 0 ? void 0 : _store$getState.userInfo;
|
|
13
|
+
var localUserInfo = JSON.parse((storage === null || storage === void 0 ? void 0 : storage.get('customer')) || '{}');
|
|
14
|
+
userInfo = (_userInfo = userInfo) !== null && _userInfo !== void 0 && _userInfo.id ? userInfo : localUserInfo;
|
|
15
|
+
return userInfo;
|
|
16
|
+
}, [store]);
|
|
17
|
+
return user;
|
|
18
|
+
};
|
|
19
|
+
export default useLoginUser;
|
|
@@ -39,6 +39,7 @@ var import_serve = require("./serve");
|
|
|
39
39
|
var import_ahooks = require("ahooks");
|
|
40
40
|
var import_index = require("./index");
|
|
41
41
|
var import_utils = require("../utils");
|
|
42
|
+
var import_useLoginUser = __toESM(require("../../../hooks/useLoginUser"));
|
|
42
43
|
var EventDetailContext = (0, import_react.createContext)(void 0);
|
|
43
44
|
var EventDetailProvider = ({
|
|
44
45
|
children
|
|
@@ -49,6 +50,7 @@ var EventDetailProvider = ({
|
|
|
49
50
|
const [open, setOpen] = (0, import_react.useState)(false);
|
|
50
51
|
const [currentBookingOption, setCurrentBookingOption] = (0, import_react.useState)(null);
|
|
51
52
|
const { selectEvent } = (0, import_index.useEvent)();
|
|
53
|
+
const customer = (0, import_useLoginUser.default)();
|
|
52
54
|
const _setDetail = (detailData) => {
|
|
53
55
|
detailRef.current = { ...detailRef.current || {}, ...detailData || {} };
|
|
54
56
|
console.log(detailRef.current, "55555555");
|
|
@@ -69,7 +71,9 @@ var EventDetailProvider = ({
|
|
|
69
71
|
getEventDetailBookingOptions.run({
|
|
70
72
|
ids: ((_a = eventItem._originData) == null ? void 0 : _a.relation_product_ids) || [],
|
|
71
73
|
num: 100,
|
|
72
|
-
skip: 1
|
|
74
|
+
skip: 1,
|
|
75
|
+
customer_id: customer == null ? void 0 : customer.id,
|
|
76
|
+
open_quotation: 1
|
|
73
77
|
});
|
|
74
78
|
getEventDetailSelectDate.run(eventItem.id, {
|
|
75
79
|
days: 366
|
|
@@ -10,6 +10,7 @@ export declare const getEventListApi: (params: {
|
|
|
10
10
|
title?: string;
|
|
11
11
|
skip?: number;
|
|
12
12
|
num?: number;
|
|
13
|
+
open_quotation: number;
|
|
13
14
|
}) => Promise<any>;
|
|
14
15
|
export declare const getEventDetailIntroductionApi: (eventItemId: number | string) => Promise<any>;
|
|
15
16
|
export declare const getEventDetailTeacherApi: (params: {
|
|
@@ -19,6 +20,8 @@ export declare const getEventDetailBookingOptionsApi: (params: {
|
|
|
19
20
|
ids: number | string;
|
|
20
21
|
num: number;
|
|
21
22
|
skip: number;
|
|
23
|
+
customer_id?: number;
|
|
24
|
+
open_quotation?: number;
|
|
22
25
|
}) => Promise<any>;
|
|
23
26
|
export declare const getEventDetailSelectDateApi: (id: number | string, params: {
|
|
24
27
|
days: number;
|