@pisell/private-materials 3.3.66 → 3.3.67
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 +13 -13
- package/build/lowcode/render/default/view.js +7 -7
- package/build/lowcode/view.js +7 -7
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/es/components/booking/hooks/useClearCart.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/index.d.ts +0 -1
- package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/index.js +4 -5
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
- package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
- package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/es/components/schedules/utils.d.ts +1 -1
- package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/es/components/ticketBooking/components/ticketBooking/index.js +1 -120
- package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/es/components/ticketBooking/locales.d.ts +146 -164
- package/es/components/ticketBooking/locales.js +147 -195
- package/es/components/walletList/index.js +7 -55
- package/es/components/walletList/serve.d.ts +0 -8
- package/es/components/walletList/serve.js +0 -38
- package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/es/utils/index.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/index.js +9 -10
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
- package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
- package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.js +1 -120
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/lib/components/ticketBooking/locales.d.ts +146 -164
- package/lib/components/ticketBooking/locales.js +4 -22
- package/lib/components/walletList/index.js +14 -42
- package/lib/components/walletList/serve.d.ts +0 -8
- package/lib/components/walletList/serve.js +2 -15
- package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/utils/index.d.ts +1 -1
- package/package.json +3 -3
- package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
- package/es/components/ticketBooking/utils/formatProductMessage.js +0 -53
- package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
- package/es/components/ticketBooking/utils/formatTime.js +0 -144
- package/es/components/walletList/locales.d.ts +0 -18
- package/es/components/walletList/locales.js +0 -17
- package/es/components/walletList/status.d.ts +0 -38
- package/es/components/walletList/status.js +0 -47
- package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
- package/lib/components/ticketBooking/utils/formatProductMessage.js +0 -76
- package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
- package/lib/components/ticketBooking/utils/formatTime.js +0 -139
- package/lib/components/walletList/locales.d.ts +0 -18
- package/lib/components/walletList/locales.js +0 -41
- package/lib/components/walletList/status.d.ts +0 -38
- package/lib/components/walletList/status.js +0 -66
|
@@ -1,206 +1,158 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
en: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
2
|
+
"en": {
|
|
3
|
+
"pisell2.ticket-booking.info": "Info",
|
|
4
|
+
"pisell2.ticket-booking.notes": "Notes",
|
|
5
|
+
"pisell2.ticket-booking.forms": "Forms",
|
|
6
|
+
"pisell2.ticket-booking.sales": "Sales",
|
|
7
|
+
"pisell2.ticket-booking.payment": "Payment",
|
|
8
|
+
"pisell2.ticket-booking.unsaved-changes": "Unsaved changes",
|
|
9
|
+
"pisell2.ticket-booking.exit-confirm": "Your changes will not be saved if you exit. Are you sure you want to exit?",
|
|
10
|
+
"pisell2.ticket-booking.go-back": "Go back",
|
|
11
|
+
"pisell2.ticket-booking.exit": "Yes, exit",
|
|
12
|
+
"pisell2.ticket-booking.deposit": "Deposit",
|
|
13
|
+
"pisell2.ticket-booking.copy-success": "Copy successful",
|
|
14
|
+
"pisell2.ticket-booking.no-data": "No data",
|
|
15
|
+
"pisell2.ticket-booking.authorized": "Authorized",
|
|
16
|
+
"pisell2.ticket-booking.paid": "Paid",
|
|
17
|
+
"pisell2.ticket-booking.partially-paid": "Partially Paid",
|
|
18
|
+
"pisell2.ticket-booking.partially-refunded": "Partially Refunded",
|
|
19
|
+
"pisell2.ticket-booking.payment-pending": "Payment pending",
|
|
20
|
+
"pisell2.ticket-booking.refunded": "Refunded",
|
|
21
|
+
"pisell2.ticket-booking.unpaid": "Unpaid",
|
|
22
|
+
"pisell2.ticket-booking.voided": "Voided",
|
|
23
|
+
"pisell2.ticket-booking.pending": "Pending",
|
|
24
|
+
"pisell2.ticket-booking.all": "All",
|
|
25
|
+
"pisell2.ticket-booking.not-started": "Not started",
|
|
26
|
+
"pisell2.ticket-booking.started": "Started",
|
|
27
|
+
"pisell2.ticket-booking.finished": "Finished",
|
|
28
|
+
"pisell2.ticket-booking.canceled": "Canceled",
|
|
29
|
+
"pisell2.ticket-booking.inform": "Inform",
|
|
30
|
+
"pisell2.ticket-booking.check-management": "Please go to the management side to check this data.",
|
|
31
|
+
"pisell2.ticket-booking.confirm": "Confirm",
|
|
32
|
+
"pisell2.ticket-booking.dashboard": "Dashboard",
|
|
33
|
+
"pisell2.ticket-booking.booking-list": "Booking list",
|
|
34
|
+
"pisell2.ticket-booking.full-data": "Go to full data",
|
|
35
|
+
"pisell2.ticket-booking.today": "Today",
|
|
36
|
+
"pisell2.ticket-booking.now": "Now",
|
|
37
|
+
"pisell2.ticket-booking.start-time": "Start time",
|
|
38
|
+
"pisell2.ticket-booking.create-time": "Create time",
|
|
39
|
+
"pisell2.ticket-booking.customer": "Customer",
|
|
40
|
+
"pisell2.ticket-booking.total": "Total",
|
|
41
|
+
"pisell2.ticket-booking.search": "Search",
|
|
42
|
+
"pisell2.ticket-booking.refresh-success": "Refresh Successful",
|
|
43
|
+
"pisell2.ticket-booking.loading": "Loading",
|
|
44
|
+
"pisell2.ticket-booking.appointment-not-found": "Appointment not found",
|
|
45
|
+
"pisell2.ticket-booking.scan": "Scan",
|
|
46
|
+
"pisell2.ticket-booking.create-new": "Create new",
|
|
47
|
+
"pisell2.ticket-booking.add-to-cart": "Added to Cart",
|
|
48
|
+
"pisell2.ticket-booking.not-available-title": "Sorry, Not available at current time.",
|
|
49
|
+
"pisell2.ticket-booking.not-available-ok": "OK",
|
|
50
|
+
"pisell2.ticket-booking.in-cart": function pisell2TicketBookingInCart(number) {
|
|
51
51
|
return "".concat(number, " in cart");
|
|
52
|
-
},
|
|
53
|
-
'pisell2.product.card.cart-items': function pisell2ProductCardCartItems(number) {
|
|
54
|
-
return "".concat(number, "items");
|
|
55
|
-
},
|
|
56
|
-
'pisell2.product.card.subtotal': 'Subtotal',
|
|
57
|
-
'pisell2.product.card.hour.minute': function pisell2ProductCardHourMinute(hour, minute) {
|
|
58
|
-
return "".concat(hour > 0 ? "".concat(hour, "h") : '').concat(hour > 0 && minute > 0 ? ' ' : '').concat(minute > 0 ? "".concat(minute, "min") : '');
|
|
59
|
-
},
|
|
60
|
-
'pisell2.product.card.day': function pisell2ProductCardDay(val) {
|
|
61
|
-
return "".concat(val > 1 ? ' days' : ' day');
|
|
62
|
-
},
|
|
63
|
-
'pisell2.product.card.day.event': function pisell2ProductCardDayEvent(val) {
|
|
64
|
-
return "".concat(val > 1 ? ' events' : ' event');
|
|
65
|
-
},
|
|
66
|
-
'pisell2.product.card.minute': function pisell2ProductCardMinute(val) {
|
|
67
|
-
return "".concat(val > 1 ? ' minutes' : ' minute');
|
|
68
52
|
}
|
|
69
53
|
},
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
return "".concat(number, "\u4EF6\u5546\u54C1");
|
|
120
|
-
},
|
|
121
|
-
'pisell2.product.card.subtotal': '小计',
|
|
122
|
-
'pisell2.ticket-booking.in-cart': function pisell2TicketBookingInCart(number) {
|
|
54
|
+
"zh-CN": {
|
|
55
|
+
"pisell2.ticket-booking.info": "信息",
|
|
56
|
+
"pisell2.ticket-booking.notes": "备注",
|
|
57
|
+
"pisell2.ticket-booking.forms": "表单",
|
|
58
|
+
"pisell2.ticket-booking.sales": "销售",
|
|
59
|
+
"pisell2.ticket-booking.payment": "付款",
|
|
60
|
+
"pisell2.ticket-booking.unsaved-changes": "有未保存的更改",
|
|
61
|
+
"pisell2.ticket-booking.exit-confirm": "如果您退出,您的更改将不会被保存。您确定要退出吗?",
|
|
62
|
+
"pisell2.ticket-booking.go-back": "返回",
|
|
63
|
+
"pisell2.ticket-booking.exit": "退出",
|
|
64
|
+
"pisell2.ticket-booking.deposit": "定金",
|
|
65
|
+
"pisell2.ticket-booking.copy-success": "复制成功",
|
|
66
|
+
"pisell2.ticket-booking.no-data": "暂无数据",
|
|
67
|
+
"pisell2.ticket-booking.authorized": "已授权",
|
|
68
|
+
"pisell2.ticket-booking.paid": "已付款",
|
|
69
|
+
"pisell2.ticket-booking.partially-paid": "部分付款",
|
|
70
|
+
"pisell2.ticket-booking.partially-refunded": "部分退款",
|
|
71
|
+
"pisell2.ticket-booking.payment-pending": "等待付款",
|
|
72
|
+
"pisell2.ticket-booking.refunded": "已退款",
|
|
73
|
+
"pisell2.ticket-booking.unpaid": "未付款",
|
|
74
|
+
"pisell2.ticket-booking.voided": "已作废",
|
|
75
|
+
"pisell2.ticket-booking.pending": "待支付",
|
|
76
|
+
"pisell2.ticket-booking.all": "全部",
|
|
77
|
+
"pisell2.ticket-booking.not-started": "未开始",
|
|
78
|
+
"pisell2.ticket-booking.started": "已开始",
|
|
79
|
+
"pisell2.ticket-booking.finished": "已完成",
|
|
80
|
+
"pisell2.ticket-booking.canceled": "已取消",
|
|
81
|
+
"pisell2.ticket-booking.inform": "通知",
|
|
82
|
+
"pisell2.ticket-booking.check-management": "请前往管理端查看此数据。",
|
|
83
|
+
"pisell2.ticket-booking.confirm": "确认",
|
|
84
|
+
"pisell2.ticket-booking.dashboard": "数据看板",
|
|
85
|
+
"pisell2.ticket-booking.booking-list": "预约列表",
|
|
86
|
+
"pisell2.ticket-booking.full-data": "查看全部数据",
|
|
87
|
+
"pisell2.ticket-booking.today": "今天",
|
|
88
|
+
"pisell2.ticket-booking.now": "现在",
|
|
89
|
+
"pisell2.ticket-booking.start-time": "开始时间",
|
|
90
|
+
"pisell2.ticket-booking.create-time": "创建时间",
|
|
91
|
+
"pisell2.ticket-booking.customer": "客户名称",
|
|
92
|
+
"pisell2.ticket-booking.total": "价格",
|
|
93
|
+
"pisell2.ticket-booking.search": "搜索",
|
|
94
|
+
"pisell2.ticket-booking.refresh-success": "刷新成功",
|
|
95
|
+
"pisell2.ticket-booking.loading": "加载中",
|
|
96
|
+
"pisell2.ticket-booking.appointment-not-found": "没有发现此预约",
|
|
97
|
+
"pisell2.ticket-booking.scan": "",
|
|
98
|
+
"pisell2.ticket-booking.create-new": "新建",
|
|
99
|
+
"pisell2.ticket-booking.add-to-cart": "已加入购物车",
|
|
100
|
+
"pisell2.ticket-booking.not-available-title": "抱歉,目前不在可售时间。",
|
|
101
|
+
"pisell2.ticket-booking.not-available-ok": "好的",
|
|
102
|
+
"pisell2.ticket-booking.in-cart": function pisell2TicketBookingInCart(number) {
|
|
123
103
|
return "\u5DF2\u6709".concat(number, "\u4EF6");
|
|
124
|
-
},
|
|
125
|
-
'pisell2.product.card.hour.minute': function pisell2ProductCardHourMinute(hour, minute) {
|
|
126
|
-
return "".concat(hour > 0 ? "".concat(hour, "\u5C0F\u65F6") : '').concat(minute > 0 ? "".concat(minute, "\u5206\u949F") : '');
|
|
127
|
-
},
|
|
128
|
-
'pisell2.product.card.day': function pisell2ProductCardDay(val) {
|
|
129
|
-
return '天';
|
|
130
|
-
},
|
|
131
|
-
'pisell2.product.card.day.event': function pisell2ProductCardDayEvent(val) {
|
|
132
|
-
return '个活动';
|
|
133
|
-
},
|
|
134
|
-
'pisell2.product.card.minute': function pisell2ProductCardMinute(val) {
|
|
135
|
-
return '分钟';
|
|
136
104
|
}
|
|
137
105
|
},
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
106
|
+
"zh-HK": {
|
|
107
|
+
"pisell2.ticket-booking.info": "資訊",
|
|
108
|
+
"pisell2.ticket-booking.notes": "備註",
|
|
109
|
+
"pisell2.ticket-booking.forms": "表单",
|
|
110
|
+
"pisell2.ticket-booking.sales": "銷售",
|
|
111
|
+
"pisell2.ticket-booking.payment": "付款",
|
|
112
|
+
"pisell2.ticket-booking.unsaved-changes": "有未保存的更改",
|
|
113
|
+
"pisell2.ticket-booking.exit-confirm": "如果您退出,您的變更將不會被保存。您確定要退出嗎?",
|
|
114
|
+
"pisell2.ticket-booking.go-back": "返回",
|
|
115
|
+
"pisell2.ticket-booking.exit": "退出",
|
|
116
|
+
"pisell2.ticket-booking.deposit": "定金",
|
|
117
|
+
"pisell2.ticket-booking.copy-success": "复制成功",
|
|
118
|
+
"pisell2.ticket-booking.no-data": "暂无数据",
|
|
119
|
+
"pisell2.ticket-booking.authorized": "已授權",
|
|
120
|
+
"pisell2.ticket-booking.paid": "已付款",
|
|
121
|
+
"pisell2.ticket-booking.partially-paid": "部分付款",
|
|
122
|
+
"pisell2.ticket-booking.partially-refunded": "部分退款",
|
|
123
|
+
"pisell2.ticket-booking.payment-pending": "等待付款",
|
|
124
|
+
"pisell2.ticket-booking.refunded": "已退款",
|
|
125
|
+
"pisell2.ticket-booking.unpaid": "未付款",
|
|
126
|
+
"pisell2.ticket-booking.voided": "已作廢",
|
|
127
|
+
"pisell2.ticket-booking.pending": "待支付",
|
|
128
|
+
"pisell2.ticket-booking.all": "全部",
|
|
129
|
+
"pisell2.ticket-booking.not-started": "未开始",
|
|
130
|
+
"pisell2.ticket-booking.started": "已开始",
|
|
131
|
+
"pisell2.ticket-booking.finished": "已完成",
|
|
132
|
+
"pisell2.ticket-booking.canceled": "已取消",
|
|
133
|
+
"pisell2.ticket-booking.inform": "通知",
|
|
134
|
+
"pisell2.ticket-booking.check-management": "请前往管理端查看此数据。",
|
|
135
|
+
"pisell2.ticket-booking.confirm": "确认",
|
|
136
|
+
"pisell2.ticket-booking.dashboard": "数据看板",
|
|
137
|
+
"pisell2.ticket-booking.booking-list": "预约列表",
|
|
138
|
+
"pisell2.ticket-booking.full-data": "查看全部数据",
|
|
139
|
+
"pisell2.ticket-booking.today": "今天",
|
|
140
|
+
"pisell2.ticket-booking.now": "现在",
|
|
141
|
+
"pisell2.ticket-booking.start-time": "开始时间",
|
|
142
|
+
"pisell2.ticket-booking.create-time": "创建时间",
|
|
143
|
+
"pisell2.ticket-booking.customer": "客户名称",
|
|
144
|
+
"pisell2.ticket-booking.total": "价格",
|
|
145
|
+
"pisell2.ticket-booking.search": "搜索",
|
|
146
|
+
"pisell2.ticket-booking.refresh-success": "刷新成功",
|
|
147
|
+
"pisell2.ticket-booking.loading": "加载中",
|
|
148
|
+
"pisell2.ticket-booking.appointment-not-found": "没有發現此預約",
|
|
149
|
+
"pisell2.ticket-booking.scan": "扫码",
|
|
150
|
+
"pisell2.ticket-booking.create-new": "新建",
|
|
151
|
+
"pisell2.ticket-booking.add-to-cart": "已加入购物车",
|
|
152
|
+
"pisell2.ticket-booking.not-available-title": "抱歉,目前不在可售時間。",
|
|
153
|
+
"pisell2.ticket-booking.not-available-ok": "好的",
|
|
154
|
+
"pisell2.ticket-booking.in-cart": function pisell2TicketBookingInCart(number) {
|
|
187
155
|
return "\u5DF2\u6709".concat(number, "\u4EF6");
|
|
188
|
-
},
|
|
189
|
-
'pisell2.product.card.cart-items': function pisell2ProductCardCartItems(number) {
|
|
190
|
-
return "".concat(number, "\u4EF6\u5546\u54C1");
|
|
191
|
-
},
|
|
192
|
-
'pisell2.product.card.subtotal': '小計',
|
|
193
|
-
'pisell2.product.card.hour.minute': function pisell2ProductCardHourMinute(hour, minute) {
|
|
194
|
-
return "".concat(hour > 0 ? "".concat(hour, "\u5C0F\u6642") : '').concat(minute > 0 ? "".concat(minute, "\u5206\u9418") : '');
|
|
195
|
-
},
|
|
196
|
-
'pisell2.product.card.day': function pisell2ProductCardDay(val) {
|
|
197
|
-
return '天';
|
|
198
|
-
},
|
|
199
|
-
'pisell2.product.card.day.event': function pisell2ProductCardDayEvent(val) {
|
|
200
|
-
return '个活動';
|
|
201
|
-
},
|
|
202
|
-
'pisell2.product.card.minute': function pisell2ProductCardMinute(val) {
|
|
203
|
-
return '分鐘';
|
|
204
156
|
}
|
|
205
157
|
}
|
|
206
158
|
};
|
|
@@ -21,11 +21,9 @@ import { Provider, Context } from "./model";
|
|
|
21
21
|
import { WalletCard, Carousel } from '@pisell/materials';
|
|
22
22
|
import { LeftOutlined, RightOutlined } from '@ant-design/icons';
|
|
23
23
|
import useEngineContext from "./../../hooks/useEngineContext";
|
|
24
|
-
import { getWalletList, getWalletBalance
|
|
25
|
-
import { locales
|
|
24
|
+
import { getWalletList, getWalletBalance } from "./serve";
|
|
25
|
+
import { locales } from '@pisell/utils';
|
|
26
26
|
import { request } from "./../../utils";
|
|
27
|
-
import { defaultWalletGuideConfig } from "./status";
|
|
28
|
-
import localeTexts from "./locales";
|
|
29
27
|
import "./index.less";
|
|
30
28
|
import classNames from 'classnames';
|
|
31
29
|
// 导入所有类型
|
|
@@ -122,7 +120,7 @@ var DEFAULT_WALLET_CARD = {
|
|
|
122
120
|
original: 'Level',
|
|
123
121
|
'zh-CN': 'Level',
|
|
124
122
|
'zh-HK': 'Level',
|
|
125
|
-
en: 'Level'
|
|
123
|
+
'en': 'Level'
|
|
126
124
|
},
|
|
127
125
|
metadata: {
|
|
128
126
|
barcodetype: 'barCode',
|
|
@@ -152,7 +150,7 @@ var WalletList = Provider(function (props) {
|
|
|
152
150
|
constants = _ref.constants,
|
|
153
151
|
utils = _ref.utils;
|
|
154
152
|
var dvaStore = utils === null || utils === void 0 || (_utils$getStore = utils.getStore) === null || _utils$getStore === void 0 || (_utils$getStore = _utils$getStore.call(utils)) === null || _utils$getStore === void 0 ? void 0 : _utils$getStore.getState();
|
|
155
|
-
locales.init(
|
|
153
|
+
locales.init({}, (dvaStore === null || dvaStore === void 0 || (_dvaStore$core = dvaStore.core) === null || _dvaStore$core === void 0 ? void 0 : _dvaStore$core.translateLocale) || 'en');
|
|
156
154
|
// 添加组件挂载状态引用
|
|
157
155
|
var isMountedRef = useRef(true);
|
|
158
156
|
var carouselRef = useRef(null);
|
|
@@ -166,15 +164,9 @@ var WalletList = Provider(function (props) {
|
|
|
166
164
|
_useState2 = _slicedToArray(_useState, 2),
|
|
167
165
|
currentIndex = _useState2[0],
|
|
168
166
|
setCurrentIndex = _useState2[1];
|
|
169
|
-
// 店铺wallet pass列表
|
|
170
|
-
var _useState3 = useState([]),
|
|
171
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
172
|
-
walletShopList = _useState4[0],
|
|
173
|
-
setWalletShopList = _useState4[1];
|
|
174
167
|
|
|
175
168
|
// 添加一个请求ID引用,用于去重
|
|
176
169
|
var requestIdRef = useRef('');
|
|
177
|
-
var pubsub = utils === null || utils === void 0 ? void 0 : utils.pubsub;
|
|
178
170
|
|
|
179
171
|
//获取登录状态
|
|
180
172
|
var isUserLoggedIn = useMemo(function () {
|
|
@@ -196,27 +188,6 @@ var WalletList = Provider(function (props) {
|
|
|
196
188
|
request.setRequest(utils.request);
|
|
197
189
|
}
|
|
198
190
|
}, [utils === null || utils === void 0 ? void 0 : utils.request]);
|
|
199
|
-
useEffect(function () {
|
|
200
|
-
if (isUserLoggedIn) {
|
|
201
|
-
// 获取店铺wallet pass列表
|
|
202
|
-
getWalletShopList({
|
|
203
|
-
skip: 1,
|
|
204
|
-
num: 50
|
|
205
|
-
}).then(function (res) {
|
|
206
|
-
pubsub.publish('wallet:shopList', res);
|
|
207
|
-
});
|
|
208
|
-
|
|
209
|
-
// 订阅
|
|
210
|
-
var subscription = pubsub.subscribe('wallet:shopList', function (res) {
|
|
211
|
-
setWalletShopList((res === null || res === void 0 ? void 0 : res.list) || []);
|
|
212
|
-
});
|
|
213
|
-
|
|
214
|
-
// 卸载时取消订阅
|
|
215
|
-
return function () {
|
|
216
|
-
subscription.unsubscribe();
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
}, [isUserLoggedIn]);
|
|
220
191
|
|
|
221
192
|
// 组件挂载时执行一次请求
|
|
222
193
|
useEffect(function () {
|
|
@@ -462,7 +433,7 @@ var WalletList = Provider(function (props) {
|
|
|
462
433
|
return _context3.abrupt("return");
|
|
463
434
|
case 24:
|
|
464
435
|
// 如果获取到有效数据,保存到 localStorage
|
|
465
|
-
if (walletListData) {
|
|
436
|
+
if (walletListData && walletListData.length > 0) {
|
|
466
437
|
try {
|
|
467
438
|
saveToLocalStorage(STORAGE_KEY, walletListData);
|
|
468
439
|
} catch (e) {
|
|
@@ -739,24 +710,10 @@ var WalletList = Provider(function (props) {
|
|
|
739
710
|
})));
|
|
740
711
|
}, []);
|
|
741
712
|
|
|
742
|
-
/**
|
|
743
|
-
* @title: 是否显示引导页
|
|
744
|
-
* @description:
|
|
745
|
-
* @param {*} useMemo
|
|
746
|
-
* @return {*}
|
|
747
|
-
* @Author: WangHan
|
|
748
|
-
* @Date: 2025-06-09 13:16
|
|
749
|
-
*/
|
|
750
|
-
var isShowGuide = useMemo(function () {
|
|
751
|
-
var _globalState$walletGu;
|
|
752
|
-
if ((globalState === null || globalState === void 0 || (_globalState$walletGu = globalState.walletGuideConfig) === null || _globalState$walletGu === void 0 ? void 0 : _globalState$walletGu.show) === 0) return false;
|
|
753
|
-
return (walletShopList === null || walletShopList === void 0 ? void 0 : walletShopList.length) > 0 && !(list !== null && list !== void 0 && list.length);
|
|
754
|
-
}, [walletShopList, list, globalState === null || globalState === void 0 ? void 0 : globalState.walletGuideConfig]);
|
|
755
|
-
|
|
756
713
|
// 确保renderContent总是返回JSX,避免返回null
|
|
757
714
|
var renderContent = function renderContent() {
|
|
758
715
|
// 如果列表为空,不显示任何内容
|
|
759
|
-
if (list.length === 0
|
|
716
|
+
if (list.length === 0) {
|
|
760
717
|
return null;
|
|
761
718
|
}
|
|
762
719
|
|
|
@@ -765,12 +722,7 @@ var WalletList = Provider(function (props) {
|
|
|
765
722
|
className: "pisell-wallet-list-container"
|
|
766
723
|
}, /*#__PURE__*/React.createElement("div", {
|
|
767
724
|
className: "wallet-content"
|
|
768
|
-
},
|
|
769
|
-
key: getUniqueId(),
|
|
770
|
-
isGuide: true
|
|
771
|
-
}, globalState, {
|
|
772
|
-
walletGuideConfig: (globalState === null || globalState === void 0 ? void 0 : globalState.walletGuideConfig) || defaultWalletGuideConfig()
|
|
773
|
-
})) : /*#__PURE__*/React.createElement(Carousel, _extends({
|
|
725
|
+
}, /*#__PURE__*/React.createElement(Carousel, _extends({
|
|
774
726
|
ref: carouselRef
|
|
775
727
|
}, carouselProps), list.map(function (item) {
|
|
776
728
|
return renderWalletCard(item);
|
|
@@ -10,11 +10,3 @@ export declare const getWalletList: () => Promise<WalletPass[]>;
|
|
|
10
10
|
* @returns
|
|
11
11
|
*/
|
|
12
12
|
export declare const getWalletBalance: () => Promise<WalletBalance | null>;
|
|
13
|
-
/**
|
|
14
|
-
* @title: 获取钱包店铺列表
|
|
15
|
-
* @description:
|
|
16
|
-
* @return {*}
|
|
17
|
-
* @Author: WangHan
|
|
18
|
-
* @Date: 2025-06-09 11:12
|
|
19
|
-
*/
|
|
20
|
-
export declare const getWalletShopList: (params: any) => Promise<any>;
|
|
@@ -66,42 +66,4 @@ export var getWalletBalance = /*#__PURE__*/function () {
|
|
|
66
66
|
return function getWalletBalance() {
|
|
67
67
|
return _ref2.apply(this, arguments);
|
|
68
68
|
};
|
|
69
|
-
}();
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* @title: 获取钱包店铺列表
|
|
73
|
-
* @description:
|
|
74
|
-
* @return {*}
|
|
75
|
-
* @Author: WangHan
|
|
76
|
-
* @Date: 2025-06-09 11:12
|
|
77
|
-
*/
|
|
78
|
-
export var getWalletShopList = /*#__PURE__*/function () {
|
|
79
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(params) {
|
|
80
|
-
var _yield$request$getReq3, data;
|
|
81
|
-
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
82
|
-
while (1) switch (_context3.prev = _context3.next) {
|
|
83
|
-
case 0:
|
|
84
|
-
_context3.prev = 0;
|
|
85
|
-
_context3.next = 3;
|
|
86
|
-
return request.getRequest().get('/h5/wallet/shop/list', params || {}, {
|
|
87
|
-
abort: true,
|
|
88
|
-
useCache: true
|
|
89
|
-
});
|
|
90
|
-
case 3:
|
|
91
|
-
_yield$request$getReq3 = _context3.sent;
|
|
92
|
-
data = _yield$request$getReq3.data;
|
|
93
|
-
return _context3.abrupt("return", data || null);
|
|
94
|
-
case 8:
|
|
95
|
-
_context3.prev = 8;
|
|
96
|
-
_context3.t0 = _context3["catch"](0);
|
|
97
|
-
return _context3.abrupt("return", null);
|
|
98
|
-
case 11:
|
|
99
|
-
case "end":
|
|
100
|
-
return _context3.stop();
|
|
101
|
-
}
|
|
102
|
-
}, _callee3, null, [[0, 8]]);
|
|
103
|
-
}));
|
|
104
|
-
return function getWalletShopList(_x) {
|
|
105
|
-
return _ref3.apply(this, arguments);
|
|
106
|
-
};
|
|
107
69
|
}();
|
package/es/utils/index.d.ts
CHANGED
|
@@ -18,6 +18,6 @@ declare let modal: Omit<ModalStaticFunctions, 'warn'>;
|
|
|
18
18
|
export declare const setModal: (m: Omit<ModalStaticFunctions, 'warn'>) => void;
|
|
19
19
|
export declare const saveConfirm: () => Promise<{
|
|
20
20
|
destroy: () => void;
|
|
21
|
-
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
21
|
+
update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
|
|
22
22
|
}>;
|
|
23
23
|
export { modal };
|