@pisell/private-materials 3.2.25 → 3.2.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 +8 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +8 -8
- package/es/components/appointmentBooking/components/Cart/ContinueButton/index.js +5 -5
- package/es/components/appointmentBooking/components/Cart/Item/index.js +1 -5
- package/es/components/appointmentBooking/components/Cart/Item/index.less +8 -1
- package/es/components/appointmentBooking/components/Header/index.js +4 -1
- package/es/components/booking/addons/index.js +7 -5
- package/es/components/booking/addons/model.d.ts +1 -10
- package/es/components/booking/components/footer/index.js +1 -6
- package/es/components/booking/components/footer/utils.js +8 -5
- package/es/components/booking/forms/footer.d.ts +6 -0
- package/es/components/booking/forms/footer.js +88 -0
- package/es/components/booking/forms/index.d.ts +1 -1
- package/es/components/booking/forms/index.js +25 -20
- package/es/components/booking/forms/index.less +7 -0
- package/es/components/booking/forms/model.d.ts +1 -10
- package/es/components/booking/forms/sendModal/index.d.ts +27 -0
- package/es/components/booking/forms/sendModal/index.js +82 -0
- package/es/components/booking/forms/sendModal/index.less +9 -0
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +9 -0
- package/es/components/booking/forms/sendModal/useSendModal.js +79 -0
- package/es/components/booking/forms/serve.d.ts +9 -0
- package/es/components/booking/forms/serve.js +20 -0
- package/es/components/booking/info/model.d.ts +1 -10
- package/es/components/booking/info/service/addService/index.js +3 -3
- package/es/components/booking/info/service/editService/index.js +71 -51
- package/es/components/booking/info2/service/addService/index.js +3 -2
- package/es/components/booking/info2/service/addService/utils.js +57 -5
- package/es/components/booking/info2/service/editService/Resources/index.js +20 -2
- package/es/components/booking/info2/service/editService/index.js +5 -3
- package/es/components/booking/info2/service/editService/utils.d.ts +4 -2
- package/es/components/booking/info2/service/editService/utils.js +18 -0
- package/es/components/booking/locales.d.ts +39 -0
- package/es/components/booking/locales.js +39 -0
- package/es/components/booking/model.d.ts +1 -9
- package/es/components/booking/notes/model.d.ts +1 -10
- package/es/components/booking/payments/model.d.ts +1 -10
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/pay/toC/PaymentList/serve.js +2 -2
- package/es/components/pay/toC/model.d.ts +1 -9
- package/es/components/pay/toC/serve.js +2 -2
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.js +4 -1
- package/es/components/schedules/model.d.ts +1 -9
- package/es/components/wallet/Detail/model.d.ts +1 -13
- package/es/components/wallet/DiscountCard/model.d.ts +1 -14
- package/es/components/wallet/PointCard/model.d.ts +1 -13
- package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/es/components/wallet/Voucher/model.d.ts +1 -13
- package/es/components/wallet/model.d.ts +1 -9
- package/lib/components/appointmentBooking/components/Cart/ContinueButton/index.js +8 -8
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +1 -2
- package/lib/components/appointmentBooking/components/Cart/Item/index.less +8 -1
- package/lib/components/appointmentBooking/components/Header/index.js +4 -1
- package/lib/components/booking/addons/index.js +7 -5
- package/lib/components/booking/addons/model.d.ts +1 -10
- package/lib/components/booking/components/footer/index.js +1 -2
- package/lib/components/booking/components/footer/utils.js +4 -5
- package/lib/components/booking/forms/footer.d.ts +6 -0
- package/lib/components/booking/forms/footer.js +81 -0
- package/lib/components/booking/forms/index.d.ts +1 -1
- package/lib/components/booking/forms/index.js +4 -2
- package/lib/components/booking/forms/index.less +7 -0
- package/lib/components/booking/forms/model.d.ts +1 -10
- package/lib/components/booking/forms/sendModal/index.d.ts +27 -0
- package/lib/components/booking/forms/sendModal/index.js +128 -0
- package/lib/components/booking/forms/sendModal/index.less +9 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +9 -0
- package/lib/components/booking/forms/sendModal/useSendModal.js +70 -0
- package/lib/components/booking/forms/serve.d.ts +9 -0
- package/lib/components/booking/forms/serve.js +5 -2
- package/lib/components/booking/info/model.d.ts +1 -10
- package/lib/components/booking/info/service/addService/index.js +2 -2
- package/lib/components/booking/info/service/editService/index.js +12 -2
- package/lib/components/booking/info2/service/addService/index.js +3 -2
- package/lib/components/booking/info2/service/addService/utils.js +36 -1
- package/lib/components/booking/info2/service/editService/Resources/index.js +16 -1
- package/lib/components/booking/info2/service/editService/index.js +4 -2
- package/lib/components/booking/info2/service/editService/utils.d.ts +4 -2
- package/lib/components/booking/info2/service/editService/utils.js +48 -0
- package/lib/components/booking/locales.d.ts +39 -0
- package/lib/components/booking/locales.js +39 -0
- package/lib/components/booking/model.d.ts +1 -9
- package/lib/components/booking/notes/model.d.ts +1 -10
- package/lib/components/booking/payments/model.d.ts +1 -10
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/pay/toC/PaymentList/serve.js +1 -1
- package/lib/components/pay/toC/model.d.ts +1 -9
- package/lib/components/pay/toC/serve.js +1 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.js +4 -1
- package/lib/components/schedules/model.d.ts +1 -9
- package/lib/components/wallet/Detail/model.d.ts +1 -13
- package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
- package/lib/components/wallet/PointCard/model.d.ts +1 -13
- package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
- package/lib/components/wallet/Voucher/model.d.ts +1 -13
- package/lib/components/wallet/model.d.ts +1 -9
- package/package.json +3 -3
- package/es/components/eventBooking/components/Provider/SelectProduct/index.d.ts +0 -4
- package/es/components/eventBooking/components/Provider/SelectProduct/index.js +0 -77
- package/es/components/eventBooking/components/Provider/SelectProduct/index.less +0 -131
- package/lib/components/eventBooking/components/Provider/SelectProduct/index.d.ts +0 -4
- package/lib/components/eventBooking/components/Provider/SelectProduct/index.js +0 -69
- package/lib/components/eventBooking/components/Provider/SelectProduct/index.less +0 -131
|
@@ -201,6 +201,7 @@ declare const _default: {
|
|
|
201
201
|
'page.booking.text.please-choose-an-option-1': string;
|
|
202
202
|
'page.booking.text.please-choose-an-option-2': string;
|
|
203
203
|
'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
|
|
204
|
+
'page.booking.text.resource.check-auto-allocation-tip': string;
|
|
204
205
|
'page.booking.text.price-extra': (origin: string, current: string) => string;
|
|
205
206
|
'pisell2.booking.dashboard.groups-on-site-now': string;
|
|
206
207
|
'pisell2.booking.dashboard.groups-on-site-now-tip': string;
|
|
@@ -240,6 +241,18 @@ declare const _default: {
|
|
|
240
241
|
'pisell2.text.change.pet.cancel': string;
|
|
241
242
|
'pisell2.text.booking-list': string;
|
|
242
243
|
'pisell2.text.edit-booking': string;
|
|
244
|
+
'pisell2.text.email-error-message': string;
|
|
245
|
+
'pisell2.text.phone-required-error-message': string;
|
|
246
|
+
'pisell2.text.email-required-error-message': string;
|
|
247
|
+
'pisell2.text.send-form-reminder': string;
|
|
248
|
+
'pisell2.text.send-sms-reminder': string;
|
|
249
|
+
'pisell2.text.send-email-reminder': string;
|
|
250
|
+
'pisell2.text.send-form-ok': string;
|
|
251
|
+
'pisell2.text.send-form-toast': string;
|
|
252
|
+
'pisell2.text.send-form-reminder-completed': string;
|
|
253
|
+
'pisell2.text.send-form-reminder-tooltip': string;
|
|
254
|
+
'pisell2.text.send-form-reminder-refresh': string;
|
|
255
|
+
'pisell2.text.send-form-reminder-error-message': string;
|
|
243
256
|
'pisell2.text.goodpass': string;
|
|
244
257
|
'pisell2.text.goodpass.product-vouchers': string;
|
|
245
258
|
'pisell2.text.goodpass.view-more': string;
|
|
@@ -449,6 +462,7 @@ declare const _default: {
|
|
|
449
462
|
'page.booking.text.please-choose-an-option-1': string;
|
|
450
463
|
'page.booking.text.please-choose-an-option-2': string;
|
|
451
464
|
'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
|
|
465
|
+
'page.booking.text.resource.check-auto-allocation-tip': string;
|
|
452
466
|
'page.booking.text.price-extra': (origin: string, current: string) => string;
|
|
453
467
|
'pisell2.booking.dashboard.groups-on-site-now': string;
|
|
454
468
|
'pisell2.booking.dashboard.groups-on-site-now-tip': string;
|
|
@@ -488,6 +502,18 @@ declare const _default: {
|
|
|
488
502
|
'pisell2.text.change.pet.cancel': string;
|
|
489
503
|
'pisell2.text.booking-list': string;
|
|
490
504
|
'pisell2.text.edit-booking': string;
|
|
505
|
+
'pisell2.text.email-error-message': string;
|
|
506
|
+
'pisell2.text.phone-required-error-message': string;
|
|
507
|
+
'pisell2.text.email-required-error-message': string;
|
|
508
|
+
'pisell2.text.send-form-reminder': string;
|
|
509
|
+
'pisell2.text.send-sms-reminder': string;
|
|
510
|
+
'pisell2.text.send-email-reminder': string;
|
|
511
|
+
'pisell2.text.send-form-ok': string;
|
|
512
|
+
'pisell2.text.send-form-toast': string;
|
|
513
|
+
'pisell2.text.send-form-reminder-completed': string;
|
|
514
|
+
'pisell2.text.send-form-reminder-tooltip': string;
|
|
515
|
+
'pisell2.text.send-form-reminder-refresh': string;
|
|
516
|
+
'pisell2.text.send-form-reminder-error-message': string;
|
|
491
517
|
'pisell2.text.goodpass': string;
|
|
492
518
|
'pisell2.text.goodpass.product-vouchers': string;
|
|
493
519
|
'pisell2.text.goodpass.view-more': string;
|
|
@@ -697,6 +723,7 @@ declare const _default: {
|
|
|
697
723
|
'page.booking.text.please-choose-an-option-1': string;
|
|
698
724
|
'page.booking.text.please-choose-an-option-2': string;
|
|
699
725
|
'page.booking.text.resource.min-length-error': (x: number, y: string) => string;
|
|
726
|
+
'page.booking.text.resource.check-auto-allocation-tip': string;
|
|
700
727
|
'page.booking.text.price-extra': (origin: string, current: string) => string;
|
|
701
728
|
'pisell2.booking.dashboard.groups-on-site-now': string;
|
|
702
729
|
'pisell2.booking.dashboard.groups-on-site-now-tip': string;
|
|
@@ -736,6 +763,18 @@ declare const _default: {
|
|
|
736
763
|
'pisell2.text.change.pet.cancel': string;
|
|
737
764
|
'pisell2.text.booking-list': string;
|
|
738
765
|
'pisell2.text.edit-booking': string;
|
|
766
|
+
'pisell2.text.email-error-message': string;
|
|
767
|
+
'pisell2.text.phone-required-error-message': string;
|
|
768
|
+
'pisell2.text.email-required-error-message': string;
|
|
769
|
+
'pisell2.text.send-form-reminder': string;
|
|
770
|
+
'pisell2.text.send-sms-reminder': string;
|
|
771
|
+
'pisell2.text.send-email-reminder': string;
|
|
772
|
+
'pisell2.text.send-form-ok': string;
|
|
773
|
+
'pisell2.text.send-form-toast': string;
|
|
774
|
+
'pisell2.text.send-form-reminder-completed': string;
|
|
775
|
+
'pisell2.text.send-form-reminder-tooltip': string;
|
|
776
|
+
'pisell2.text.send-form-reminder-refresh': string;
|
|
777
|
+
'pisell2.text.send-form-reminder-error-message': string;
|
|
739
778
|
'pisell2.text.goodpass': string;
|
|
740
779
|
'pisell2.text.goodpass.product-vouchers': string;
|
|
741
780
|
'pisell2.text.goodpass.view-more': string;
|
|
@@ -234,6 +234,7 @@ export default {
|
|
|
234
234
|
'page.booking.text.resource.min-length-error': function pageBookingTextResourceMinLengthError(x, y) {
|
|
235
235
|
return "Select at least ".concat(x, " ").concat(y);
|
|
236
236
|
},
|
|
237
|
+
'page.booking.text.resource.check-auto-allocation-tip': "When checked, content will be automatically filled in without manual selection",
|
|
237
238
|
'page.booking.text.price-extra': function pageBookingTextPriceExtra(origin, current) {
|
|
238
239
|
return "Original price of the item:".concat(origin, ",Current price of the item:").concat(current);
|
|
239
240
|
},
|
|
@@ -277,6 +278,18 @@ export default {
|
|
|
277
278
|
'pisell2.text.change.pet.cancel': 'Discard (Clear items)',
|
|
278
279
|
'pisell2.text.booking-list': "List",
|
|
279
280
|
'pisell2.text.edit-booking': "Edit",
|
|
281
|
+
'pisell2.text.email-error-message': 'Email format error',
|
|
282
|
+
'pisell2.text.phone-required-error-message': 'Please enter a phone number',
|
|
283
|
+
'pisell2.text.email-required-error-message': 'Please enter an email address',
|
|
284
|
+
'pisell2.text.send-form-reminder': 'Send Form Reminder',
|
|
285
|
+
'pisell2.text.send-sms-reminder': 'Send SMS Reminder',
|
|
286
|
+
'pisell2.text.send-email-reminder': 'Send Email Reminder',
|
|
287
|
+
'pisell2.text.send-form-ok': 'Send',
|
|
288
|
+
'pisell2.text.send-form-toast': 'Form reminder sent',
|
|
289
|
+
'pisell2.text.send-form-reminder-completed': 'Requested Forms Completed',
|
|
290
|
+
'pisell2.text.send-form-reminder-tooltip': 'Refresh forms',
|
|
291
|
+
'pisell2.text.send-form-reminder-refresh': 'Forms refreshed successfully',
|
|
292
|
+
'pisell2.text.send-form-reminder-error-message': 'Please select at least one reminder method',
|
|
280
293
|
'pisell2.text.goodpass': "GoodPass",
|
|
281
294
|
'pisell2.text.goodpass.product-vouchers': "Product Vouchers",
|
|
282
295
|
'pisell2.text.goodpass.view-more': "View More",
|
|
@@ -523,6 +536,7 @@ export default {
|
|
|
523
536
|
'page.booking.text.resource.min-length-error': function pageBookingTextResourceMinLengthError(x, y) {
|
|
524
537
|
return "\u81F3\u5C11\u9009\u62E9".concat(x, "\u9879").concat(y);
|
|
525
538
|
},
|
|
539
|
+
'page.booking.text.resource.check-auto-allocation-tip': "\u52FE\u9009\u540E\u5C06\u81EA\u52A8\u586B\u5165\u5185\u5BB9\uFF0C\u65E0\u9700\u624B\u52A8\u9009\u62E9",
|
|
526
540
|
'page.booking.text.price-extra': function pageBookingTextPriceExtra(origin, current) {
|
|
527
541
|
return "\u5546\u54C1\u539F\u4EF7:".concat(origin, ",\u5546\u54C1\u73B0\u4EF7:").concat(current);
|
|
528
542
|
},
|
|
@@ -566,6 +580,18 @@ export default {
|
|
|
566
580
|
'pisell2.text.change.pet.cancel': '不保留(清空商品)',
|
|
567
581
|
'pisell2.text.booking-list': "列表",
|
|
568
582
|
'pisell2.text.edit-booking': "编辑",
|
|
583
|
+
'pisell2.text.email-error-message': '电子邮件格式错误',
|
|
584
|
+
'pisell2.text.phone-required-error-message': '请输入手机号码',
|
|
585
|
+
'pisell2.text.email-required-error-message': '请输入邮箱地址',
|
|
586
|
+
'pisell2.text.send-form-reminder': '发送表单提醒',
|
|
587
|
+
'pisell2.text.send-sms-reminder': '发送短信提醒',
|
|
588
|
+
'pisell2.text.send-email-reminder': '发送邮件提醒',
|
|
589
|
+
'pisell2.text.send-form-ok': '发送',
|
|
590
|
+
'pisell2.text.send-form-toast': '表单提醒已发送',
|
|
591
|
+
'pisell2.text.send-form-reminder-completed': '已完成所需表单',
|
|
592
|
+
'pisell2.text.send-form-reminder-tooltip': '刷新表单',
|
|
593
|
+
'pisell2.text.send-form-reminder-refresh': '已刷新表单',
|
|
594
|
+
'pisell2.text.send-form-reminder-error-message': '请至少选择一种提醒方式',
|
|
569
595
|
'pisell2.text.goodpass': "商品券",
|
|
570
596
|
'pisell2.text.goodpass.product-vouchers': "商品兑换券",
|
|
571
597
|
'pisell2.text.goodpass.view-more': "查看更多",
|
|
@@ -812,6 +838,7 @@ export default {
|
|
|
812
838
|
'page.booking.text.resource.min-length-error': function pageBookingTextResourceMinLengthError(x, y) {
|
|
813
839
|
return "\u81F3\u5C11\u9078\u64C7".concat(x, "\u9805").concat(y);
|
|
814
840
|
},
|
|
841
|
+
'page.booking.text.resource.check-auto-allocation-tip': "\u52FE\u9078\u5F8C\u5C07\u81EA\u52D5\u586B\u5165\u5167\u5BB9\uFF0C\u7121\u9700\u624B\u52D5\u9078\u64C7",
|
|
815
842
|
'page.booking.text.price-extra': function pageBookingTextPriceExtra(origin, current) {
|
|
816
843
|
return "\u5546\u54C1\u539F\u50F9:".concat(origin, ",\u5546\u54C1\u73FE\u50F9:").concat(current);
|
|
817
844
|
},
|
|
@@ -855,6 +882,18 @@ export default {
|
|
|
855
882
|
'pisell2.text.change.pet.cancel': '不保留(清空商品)',
|
|
856
883
|
'pisell2.text.booking-list': "列表",
|
|
857
884
|
'pisell2.text.edit-booking': "編輯",
|
|
885
|
+
'pisell2.text.email-error-message': '電子郵件格式錯誤',
|
|
886
|
+
'pisell2.text.phone-required-error-message': '請輸入手機號碼',
|
|
887
|
+
'pisell2.text.email-required-error-message': '請輸入電子郵件地址',
|
|
888
|
+
'pisell2.text.send-form-reminder': '發送表單提醒',
|
|
889
|
+
'pisell2.text.send-sms-reminder': '發送短信提醒',
|
|
890
|
+
'pisell2.text.send-email-reminder': '發送郵件提醒',
|
|
891
|
+
'pisell2.text.send-form-ok': '發送',
|
|
892
|
+
'pisell2.text.send-form-toast': '表單提醒已發送',
|
|
893
|
+
'pisell2.text.send-form-reminder-completed': '已完成所需表單',
|
|
894
|
+
'pisell2.text.send-form-reminder-tooltip': '刷新表單',
|
|
895
|
+
'pisell2.text.send-form-reminder-refresh': '已刷新表單',
|
|
896
|
+
'pisell2.text.send-form-reminder-error-message': '請至少選擇一種提醒方式',
|
|
858
897
|
'pisell2.text.goodpass': "商品券",
|
|
859
898
|
'pisell2.text.goodpass.product-vouchers': "商品兌換券",
|
|
860
899
|
'pisell2.text.goodpass.view-more': "查看更多",
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface FormState {
|
|
3
2
|
amountSymbol: string;
|
|
4
3
|
apis: {
|
|
@@ -105,11 +104,4 @@ export declare const walkInData: {
|
|
|
105
104
|
id: number;
|
|
106
105
|
nickname: string;
|
|
107
106
|
};
|
|
108
|
-
export declare const Provider:
|
|
109
|
-
state: FormState;
|
|
110
|
-
} & {
|
|
111
|
-
dispatch: (params: {
|
|
112
|
-
type: string;
|
|
113
|
-
payload: any;
|
|
114
|
-
}) => void;
|
|
115
|
-
}>;
|
|
107
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -19,7 +19,7 @@ export declare const useStoreRef: <T extends {
|
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
|
22
|
-
readonly eftposRef: React.MutableRefObject<"
|
|
22
|
+
readonly eftposRef: React.MutableRefObject<"tyro" | "windcave" | "payo" | "stripe">;
|
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
|
25
25
|
};
|
|
@@ -297,7 +297,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
297
297
|
amount?: string | number | undefined;
|
|
298
298
|
mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
|
|
299
299
|
order_id?: string | number | undefined;
|
|
300
|
-
eftpos?: "
|
|
300
|
+
eftpos?: "tyro" | "windcave" | "payo" | "stripe" | undefined;
|
|
301
301
|
action?: "amount" | "deviceList" | "pay" | undefined;
|
|
302
302
|
key?: number | undefined;
|
|
303
303
|
step?: number | undefined;
|
|
@@ -15,7 +15,7 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
|
|
|
15
15
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
16
16
|
import { request } from "../../../../utils";
|
|
17
17
|
import { paymentKeys } from "./status";
|
|
18
|
-
import { isWx,
|
|
18
|
+
import { isWx, isIOS } from '@pisell/utils';
|
|
19
19
|
import { paymentTypes, isCustomPayment } from "./status";
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -92,7 +92,7 @@ export var filterPaymentList = function filterPaymentList(list) {
|
|
|
92
92
|
// }
|
|
93
93
|
|
|
94
94
|
// 非IOS 隐藏苹果支付
|
|
95
|
-
if (!
|
|
95
|
+
if (!isIOS()) {
|
|
96
96
|
arr = arr.concat(['mw.apple']);
|
|
97
97
|
}
|
|
98
98
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface FormState {
|
|
3
2
|
platform: 'pc' | 'h5' | '' | undefined;
|
|
4
3
|
order: any;
|
|
@@ -25,11 +24,4 @@ export interface PayGroup {
|
|
|
25
24
|
pay_number?: string;
|
|
26
25
|
_order: any;
|
|
27
26
|
}
|
|
28
|
-
export declare const Provider:
|
|
29
|
-
state: FormState;
|
|
30
|
-
} & {
|
|
31
|
-
dispatch: (params: {
|
|
32
|
-
type: string;
|
|
33
|
-
payload: any;
|
|
34
|
-
}) => void;
|
|
35
|
-
}>;
|
|
27
|
+
export declare const Provider: any, Context: any;
|
|
@@ -9,7 +9,7 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
|
|
|
9
9
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
10
10
|
import { request } from "../../../utils";
|
|
11
11
|
import { paymentKeys } from "./status";
|
|
12
|
-
import { isWx,
|
|
12
|
+
import { isWx, isIOS } from '@pisell/utils';
|
|
13
13
|
|
|
14
14
|
// 获取支付列表
|
|
15
15
|
export var getPaymentList = /*#__PURE__*/function () {
|
|
@@ -44,7 +44,7 @@ export var getPaymentList = /*#__PURE__*/function () {
|
|
|
44
44
|
// }
|
|
45
45
|
|
|
46
46
|
// 非IOS 隐藏苹果支付
|
|
47
|
-
if (!
|
|
47
|
+
if (!isIOS()) {
|
|
48
48
|
arr = arr.concat(['mw.apple']);
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -8,6 +8,8 @@ import React, { useEffect } from 'react';
|
|
|
8
8
|
import { Select, Space, Input } from 'antd';
|
|
9
9
|
import { useRequest } from 'ahooks';
|
|
10
10
|
import { getCountries } from "./serve";
|
|
11
|
+
import { request } from "../../../../../utils";
|
|
12
|
+
import useEngineContext from "../../../../../hooks/useEngineContext";
|
|
11
13
|
var defaultValue = {
|
|
12
14
|
code: '+61',
|
|
13
15
|
phone: ''
|
|
@@ -15,10 +17,11 @@ var defaultValue = {
|
|
|
15
17
|
var PhoneField = function PhoneField(_ref) {
|
|
16
18
|
var value = _ref.value,
|
|
17
19
|
onChange = _ref.onChange;
|
|
20
|
+
var context = useEngineContext();
|
|
21
|
+
request.setRequest(context.appHelper.utils.request);
|
|
18
22
|
var codes = useRequest(getCountries, {
|
|
19
23
|
manual: true
|
|
20
24
|
});
|
|
21
|
-
console.log('codes', codes.data);
|
|
22
25
|
useEffect(function () {
|
|
23
26
|
codes.run();
|
|
24
27
|
}, []);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { CalendarDataItem, ScheduleItem } from "./type";
|
|
3
2
|
import dayjs from "dayjs";
|
|
4
3
|
export interface FormState {
|
|
@@ -69,11 +68,4 @@ export interface FormState {
|
|
|
69
68
|
};
|
|
70
69
|
setGlobalState: Function | null;
|
|
71
70
|
}
|
|
72
|
-
export declare const Provider:
|
|
73
|
-
state: FormState;
|
|
74
|
-
} & {
|
|
75
|
-
dispatch: (params: {
|
|
76
|
-
type: string;
|
|
77
|
-
payload: any;
|
|
78
|
-
}) => void;
|
|
79
|
-
}>;
|
|
71
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface RechargeState {
|
|
3
|
-
addWalletCard: any;
|
|
4
|
-
}
|
|
5
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
-
walletDetailState: RechargeState;
|
|
7
|
-
} & {
|
|
8
|
-
dispatch: (params: {
|
|
9
|
-
type: string;
|
|
10
|
-
payload: any;
|
|
11
|
-
}) => void;
|
|
12
|
-
}>;
|
|
13
|
-
export {};
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface RechargeState {
|
|
3
|
-
total: number;
|
|
4
|
-
setup?: 'menu' | 'list' | 'detail' | string;
|
|
5
|
-
}
|
|
6
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
7
|
-
state: RechargeState;
|
|
8
|
-
} & {
|
|
9
|
-
dispatch: (params: {
|
|
10
|
-
type: string;
|
|
11
|
-
payload: any;
|
|
12
|
-
}) => void;
|
|
13
|
-
}>;
|
|
14
|
-
export {};
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface RechargeState {
|
|
3
|
-
total: number;
|
|
4
|
-
}
|
|
5
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
-
state: RechargeState;
|
|
7
|
-
} & {
|
|
8
|
-
dispatch: (params: {
|
|
9
|
-
type: string;
|
|
10
|
-
payload: any;
|
|
11
|
-
}) => void;
|
|
12
|
-
}>;
|
|
13
|
-
export {};
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,29 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface RechargeState {
|
|
3
|
-
selectedGiftOptionId: string | null;
|
|
4
|
-
cardList: Array<{
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
price: number;
|
|
8
|
-
}>;
|
|
9
|
-
selectedItem: {
|
|
10
|
-
id?: string;
|
|
11
|
-
gift_price?: number;
|
|
12
|
-
price?: number;
|
|
13
|
-
name?: string;
|
|
14
|
-
variant_id?: string;
|
|
15
|
-
};
|
|
16
|
-
productId?: string;
|
|
17
|
-
detailId?: string;
|
|
18
|
-
total: string | number;
|
|
19
|
-
rechargeModalOpen: boolean;
|
|
20
|
-
}
|
|
21
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
22
|
-
state: RechargeState;
|
|
23
|
-
} & {
|
|
24
|
-
dispatch: (params: {
|
|
25
|
-
type: string;
|
|
26
|
-
payload: any;
|
|
27
|
-
}) => void;
|
|
28
|
-
}>;
|
|
29
|
-
export {};
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
|
|
2
|
-
interface RechargeState {
|
|
3
|
-
total: 0;
|
|
4
|
-
}
|
|
5
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
6
|
-
state: RechargeState;
|
|
7
|
-
} & {
|
|
8
|
-
dispatch: (params: {
|
|
9
|
-
type: string;
|
|
10
|
-
payload: any;
|
|
11
|
-
}) => void;
|
|
12
|
-
}>;
|
|
13
|
-
export {};
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IWalletListItemProps } from './serve';
|
|
3
2
|
export interface WalletCardItemProps {
|
|
4
3
|
id: string;
|
|
@@ -27,11 +26,4 @@ export interface WalletListProps {
|
|
|
27
26
|
currentSearchListItemCode?: string;
|
|
28
27
|
[key: string]: any;
|
|
29
28
|
}
|
|
30
|
-
export declare const Provider:
|
|
31
|
-
global_wallet: WalletListProps;
|
|
32
|
-
} & {
|
|
33
|
-
dispatch: (params: {
|
|
34
|
-
type: string;
|
|
35
|
-
payload: any;
|
|
36
|
-
}) => void;
|
|
37
|
-
}>;
|
|
29
|
+
export declare const Provider: any, Context: any;
|
|
@@ -73,7 +73,7 @@ var ContinueButton = () => {
|
|
|
73
73
|
shopDiscount.destroy();
|
|
74
74
|
};
|
|
75
75
|
const handleNextStep = async () => {
|
|
76
|
-
var _a2, _b, _c
|
|
76
|
+
var _a2, _b, _c;
|
|
77
77
|
if (isLastStep) {
|
|
78
78
|
setLoading(true);
|
|
79
79
|
try {
|
|
@@ -87,14 +87,14 @@ var ContinueButton = () => {
|
|
|
87
87
|
const { order_id, total_amount } = (res == null ? void 0 : res.data) || {};
|
|
88
88
|
const freeResult = await appointmentBooking.getFreeProduct(order_id);
|
|
89
89
|
console.log(freeResult, "freeResult");
|
|
90
|
-
if (
|
|
90
|
+
if (freeResult == null ? void 0 : freeResult.status) {
|
|
91
91
|
const url = `/payment-finish/success?order_id=${order_id}&amount=${Number(
|
|
92
92
|
total_amount
|
|
93
93
|
)}`;
|
|
94
|
-
(
|
|
94
|
+
(_a2 = utils == null ? void 0 : utils.history) == null ? void 0 : _a2.replace(url);
|
|
95
95
|
} else {
|
|
96
96
|
(0, import_materials.PisellToast)({
|
|
97
|
-
content:
|
|
97
|
+
content: freeResult == null ? void 0 : freeResult.message
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
100
|
}
|
|
@@ -105,10 +105,10 @@ var ContinueButton = () => {
|
|
|
105
105
|
}
|
|
106
106
|
return;
|
|
107
107
|
}
|
|
108
|
-
if (((
|
|
108
|
+
if (((_b = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _b.key) === "select-resource") {
|
|
109
109
|
getResourceTimeSlot();
|
|
110
110
|
}
|
|
111
|
-
if (((
|
|
111
|
+
if (((_c = currentStep == null ? void 0 : currentStep.step) == null ? void 0 : _c.key) === "select-time") {
|
|
112
112
|
}
|
|
113
113
|
return appointmentBooking.next();
|
|
114
114
|
};
|
|
@@ -120,8 +120,8 @@ var ContinueButton = () => {
|
|
|
120
120
|
if (!isLogin) {
|
|
121
121
|
return openLoginModal({
|
|
122
122
|
callback: (status) => {
|
|
123
|
-
var _a3, _b, _c;
|
|
124
|
-
const user = (_c = (_b = (_a3 = utils.store) == null ? void 0 : _a3.getState()) == null ? void 0 :
|
|
123
|
+
var _a3, _b, _c, _d, _e;
|
|
124
|
+
const user = ((_d = (_c = (_b = (_a3 = utils == null ? void 0 : utils.store) == null ? void 0 : _a3.getState) == null ? void 0 : _b.call(_a3)) == null ? void 0 : _c.global) == null ? void 0 : _d.userInfo) || JSON.parse(((_e = utils == null ? void 0 : utils.storage) == null ? void 0 : _e.get("customer")) || {});
|
|
125
125
|
const currentUser = (0, import_utils2.formatCustomer)(user);
|
|
126
126
|
const meAccount = accountLists == null ? void 0 : accountLists.find((d) => !(d == null ? void 0 : d.isGuest));
|
|
127
127
|
if (status === "success") {
|
|
@@ -40,7 +40,6 @@ var import_hooks = require("../../../hooks");
|
|
|
40
40
|
var import_context = require("../../../context");
|
|
41
41
|
var import_hooks2 = require("../../../hooks");
|
|
42
42
|
var import_utils2 = require("../../../utils");
|
|
43
|
-
var import_Voucher = __toESM(require("../../Voucher"));
|
|
44
43
|
var import_Total = __toESM(require("./Total"));
|
|
45
44
|
var import_index = require("./index.less");
|
|
46
45
|
var CartItem = ({ onConfirm }) => {
|
|
@@ -115,7 +114,7 @@ var CartItem = ({ onConfirm }) => {
|
|
|
115
114
|
onChange: (e, type, key) => handleClickCard(e, type, key)
|
|
116
115
|
}
|
|
117
116
|
)),
|
|
118
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-footer" }, /* @__PURE__ */ import_react.default.createElement(
|
|
117
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "appointment-footer" }, /* @__PURE__ */ import_react.default.createElement(import_Total.default, null), /* @__PURE__ */ import_react.default.createElement(import_ContinueButton.default, null))
|
|
119
118
|
));
|
|
120
119
|
};
|
|
121
120
|
var Item_default = CartItem;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
.appointment-cart-item-wrap {
|
|
2
2
|
height: calc(100vh - 100px);
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
|
|
3
6
|
.content {
|
|
4
7
|
background: #fff;
|
|
5
8
|
padding: 0 16px;
|
|
6
|
-
max-height:
|
|
9
|
+
max-height: 100%;
|
|
10
|
+
height: auto;
|
|
7
11
|
overflow-y: auto;
|
|
8
12
|
|
|
9
13
|
.pisell-lowcode__shopping-cart-content {
|
|
@@ -20,6 +24,9 @@
|
|
|
20
24
|
flex-direction: column;
|
|
21
25
|
gap: 14px;
|
|
22
26
|
margin-top: 6px;
|
|
27
|
+
display: flex;
|
|
28
|
+
flex: 1;
|
|
29
|
+
padding-bottom: 20px;
|
|
23
30
|
}
|
|
24
31
|
}
|
|
25
32
|
|
|
@@ -36,11 +36,13 @@ var import_react = __toESM(require("react"));
|
|
|
36
36
|
var import_utils = require("@pisell/utils");
|
|
37
37
|
var import_progressBar = __toESM(require("../../../eventBooking/components/progressBar"));
|
|
38
38
|
var import_context = require("../../context");
|
|
39
|
+
var import_hooks = require("../../hooks");
|
|
39
40
|
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
|
40
41
|
var import_index = require("./index.less");
|
|
41
42
|
var Header = () => {
|
|
42
43
|
var _a, _b;
|
|
43
44
|
const { currentStep, appointmentBooking, resources } = (0, import_context.useAppointmentBookingContext)();
|
|
45
|
+
const shopDiscount = (0, import_hooks.useShopDiscount)();
|
|
44
46
|
const context = (0, import_useEngineContext.default)();
|
|
45
47
|
const stepName = (0, import_react.useMemo)(() => {
|
|
46
48
|
var _a2, _b2, _c, _d, _e;
|
|
@@ -68,9 +70,10 @@ var Header = () => {
|
|
|
68
70
|
};
|
|
69
71
|
const handleClose = () => {
|
|
70
72
|
var _a2;
|
|
73
|
+
appointmentBooking.destroy();
|
|
74
|
+
shopDiscount.destroy();
|
|
71
75
|
const utils = context.appHelper.utils || {};
|
|
72
76
|
(_a2 = utils == null ? void 0 : utils.history) == null ? void 0 : _a2.replace("/");
|
|
73
|
-
appointmentBooking.destroy();
|
|
74
77
|
};
|
|
75
78
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
76
79
|
import_progressBar.default,
|
|
@@ -223,14 +223,15 @@ var Addons = (0, import_model.Provider)((props) => {
|
|
|
223
223
|
},
|
|
224
224
|
is_eject: isEject ? 1 : 0
|
|
225
225
|
},
|
|
226
|
-
callback: (e) => {
|
|
226
|
+
callback: (e, extension_type, detail) => {
|
|
227
227
|
console.log("e", e);
|
|
228
|
+
const _detail = detail || item;
|
|
228
229
|
let product = {
|
|
229
|
-
...
|
|
230
|
+
..._detail,
|
|
230
231
|
_id: (0, import_utils3.getUniqueId)(),
|
|
231
232
|
_key: e.key,
|
|
232
233
|
_extend: {
|
|
233
|
-
price:
|
|
234
|
+
price: _detail.price,
|
|
234
235
|
other: e,
|
|
235
236
|
quantity: 1
|
|
236
237
|
},
|
|
@@ -377,10 +378,11 @@ var Addons = (0, import_model.Provider)((props) => {
|
|
|
377
378
|
},
|
|
378
379
|
value: item._extend.other
|
|
379
380
|
},
|
|
380
|
-
callback: (e) => {
|
|
381
|
+
callback: (e, extension_type, detail) => {
|
|
381
382
|
var _a2;
|
|
383
|
+
const _detail = detail || item;
|
|
382
384
|
let product = {
|
|
383
|
-
...
|
|
385
|
+
..._detail,
|
|
384
386
|
_extend: {
|
|
385
387
|
...item._extend,
|
|
386
388
|
other: e
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FormState } from "../model";
|
|
3
|
-
export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
|
|
4
|
-
state: FormState;
|
|
5
|
-
} & {
|
|
6
|
-
dispatch: (params: {
|
|
7
|
-
type: string;
|
|
8
|
-
payload: any;
|
|
9
|
-
}) => void;
|
|
10
|
-
}>;
|
|
1
|
+
export declare const Provider: any, Context: any;
|
|
@@ -49,7 +49,6 @@ var import_amount = require("./amount");
|
|
|
49
49
|
var import_index = require("./index.less");
|
|
50
50
|
var import_serve2 = require("./serve");
|
|
51
51
|
var import_utils4 = require("./utils");
|
|
52
|
-
var import_voucher = __toESM(require("../voucher"));
|
|
53
52
|
var Footer = (props) => {
|
|
54
53
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
55
54
|
const { state, buttons, dispatch, source } = props;
|
|
@@ -783,7 +782,7 @@ var Footer = (props) => {
|
|
|
783
782
|
break;
|
|
784
783
|
}
|
|
785
784
|
};
|
|
786
|
-
return /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { title: false, round: true, loading: showFooter, active: true }, /* @__PURE__ */ import_react.default.createElement(
|
|
785
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { title: false, round: true, loading: showFooter, active: true }, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-footer-total" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left-total" }, totalText), /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode__booking-footer-left-arrears" }, arrearsText)), /* @__PURE__ */ import_react.default.createElement(
|
|
787
786
|
"span",
|
|
788
787
|
{
|
|
789
788
|
className: "pisell-lowcode__booking-footer-right",
|