@pisell/private-materials 3.3.62 → 3.3.64
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/meta.js +1 -1
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +5 -5
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +5 -5
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Voucher/index.less +0 -2
- package/es/components/appointmentBooking/deposit/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/es/components/booking/components/footer/index.d.ts +0 -1
- package/es/components/booking/components/voucher/index.d.ts +0 -1
- package/es/components/booking/components/voucher/index.less +0 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/es/components/booking/hooks/useClearCart.d.ts +0 -1
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/es/components/booking/info/service/serviceItem/index.d.ts +0 -1
- package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -1
- package/es/components/booking/info2/utilsByBooking.js +17 -10
- package/es/components/booking/utils.js +10 -4
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/timeResourceSelector/index.less +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/index.d.ts +0 -1
- package/es/components/productSelect/components/TabProduct/index.d.ts +0 -1
- package/es/components/productSelect/components/productGroup/index.d.ts +0 -1
- package/es/components/schedules/calendar/index.less +158 -152
- package/es/components/shoppingCart/components/Cart/index.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/es/components/ticketBooking/index.d.ts +1 -0
- package/es/components/wallet/DiscountCard/index.less +0 -1
- package/es/components/wallet/PointCard/index.less +0 -1
- package/es/components/wallet/RechargeableCard/index.less +5 -9
- package/es/components/wallet/Voucher/index.less +0 -1
- package/es/components/wallet/index.less +0 -4
- package/es/components/walletList/index.js +55 -7
- package/es/components/walletList/index.less +17 -15
- package/es/components/walletList/locales.d.ts +18 -0
- package/es/components/walletList/locales.js +17 -0
- package/es/components/walletList/serve.d.ts +8 -0
- package/es/components/walletList/serve.js +38 -0
- package/es/components/walletList/status.d.ts +38 -0
- package/es/components/walletList/status.js +47 -0
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Voucher/index.less +0 -2
- package/lib/components/appointmentBooking/deposit/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/lib/components/booking/components/footer/index.d.ts +0 -1
- package/lib/components/booking/components/voucher/index.d.ts +0 -1
- package/lib/components/booking/components/voucher/index.less +0 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/lib/components/booking/info/service/serviceItem/index.d.ts +0 -1
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -1
- package/lib/components/booking/info2/utilsByBooking.js +7 -9
- package/lib/components/booking/utils.js +7 -3
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/timeResourceSelector/index.less +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -1
- package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -1
- package/lib/components/productSelect/components/productGroup/index.d.ts +0 -1
- package/lib/components/schedules/calendar/index.less +158 -152
- package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/lib/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/wallet/DiscountCard/index.less +0 -1
- package/lib/components/wallet/PointCard/index.less +0 -1
- package/lib/components/wallet/RechargeableCard/index.less +5 -9
- package/lib/components/wallet/Voucher/index.less +0 -1
- package/lib/components/wallet/index.less +0 -4
- package/lib/components/walletList/index.js +42 -14
- package/lib/components/walletList/index.less +17 -15
- package/lib/components/walletList/locales.d.ts +18 -0
- package/lib/components/walletList/locales.js +41 -0
- package/lib/components/walletList/serve.d.ts +8 -0
- package/lib/components/walletList/serve.js +15 -2
- package/lib/components/walletList/status.d.ts +38 -0
- package/lib/components/walletList/status.js +66 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/package.json +3 -3
|
@@ -1,167 +1,173 @@
|
|
|
1
1
|
.calender-box {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
2
|
+
padding: 0 10px;
|
|
3
|
+
|
|
4
|
+
.calender-year-wrap {
|
|
5
|
+
position: relative;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.calender-year {
|
|
9
|
+
padding: 20px 0;
|
|
10
|
+
color: #000;
|
|
11
|
+
font-size: 36px;
|
|
12
|
+
font-style: normal;
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
line-height: 44px;
|
|
15
|
+
letter-spacing: -0.72px;
|
|
16
|
+
background-color: #fff;
|
|
17
|
+
position: sticky;
|
|
18
|
+
top: 0;
|
|
19
|
+
z-index: 1;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.caleddar-month {
|
|
23
|
+
color: #344054;
|
|
24
|
+
font-size: 16px;
|
|
25
|
+
font-style: normal;
|
|
26
|
+
font-weight: 600;
|
|
27
|
+
line-height: 24px;
|
|
28
|
+
margin-bottom: 4px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// antd calendar样式修改
|
|
32
|
+
.ant-picker-panel {
|
|
33
|
+
border-top: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.pisell-lowcode-picker-cell {
|
|
37
|
+
padding: 0;
|
|
38
|
+
border-top: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.cell-size {
|
|
42
|
+
width: 40px;
|
|
43
|
+
height: 40px;
|
|
44
|
+
padding: 4px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.date-cell {
|
|
48
|
+
.cell-size ();
|
|
49
|
+
text-align: center;
|
|
50
|
+
line-height: 50px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.ant-picker-content th {
|
|
54
|
+
.date-cell();
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.caleddar-date-cell {
|
|
58
|
+
.cell-size ();
|
|
59
|
+
position: relative;
|
|
60
|
+
border-radius: 50%;
|
|
61
|
+
|
|
62
|
+
&.select {
|
|
63
|
+
background-color: #fedf89;
|
|
64
|
+
padding: 4px;
|
|
32
65
|
}
|
|
33
66
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
67
|
+
&.excluded {
|
|
68
|
+
&::after {
|
|
69
|
+
content: '';
|
|
70
|
+
position: absolute;
|
|
71
|
+
top: 0%;
|
|
72
|
+
left: 0%;
|
|
73
|
+
width: 100%;
|
|
74
|
+
height: 100%;
|
|
75
|
+
background: linear-gradient(
|
|
76
|
+
-45deg,
|
|
77
|
+
#ffffff 25%,
|
|
78
|
+
transparent 25%,
|
|
79
|
+
transparent 50%,
|
|
80
|
+
#ffffff 50%,
|
|
81
|
+
#ffffff 75%,
|
|
82
|
+
transparent 75%,
|
|
83
|
+
transparent
|
|
84
|
+
);
|
|
85
|
+
background-size: 10px 10px;
|
|
86
|
+
}
|
|
37
87
|
}
|
|
38
88
|
|
|
39
|
-
.
|
|
40
|
-
|
|
41
|
-
|
|
89
|
+
.caleddar-date {
|
|
90
|
+
color: #101828;
|
|
91
|
+
border-radius: 50%;
|
|
92
|
+
width: 100%;
|
|
93
|
+
height: 100%;
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
|
|
98
|
+
&.has-status {
|
|
99
|
+
color: #ffffff;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&.disabled-date {
|
|
103
|
+
color: #7d89b0;
|
|
104
|
+
}
|
|
42
105
|
}
|
|
106
|
+
}
|
|
43
107
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.date-cell {
|
|
51
|
-
.cell-size ();
|
|
52
|
-
text-align: center;
|
|
53
|
-
line-height: 50px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.ant-picker-content th {
|
|
57
|
-
.date-cell()
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.caleddar-date-cell {
|
|
61
|
-
.cell-size ();
|
|
62
|
-
position: relative;
|
|
63
|
-
border-radius: 50%;
|
|
64
|
-
|
|
65
|
-
&.select {
|
|
66
|
-
background-color: #FEDF89;
|
|
67
|
-
padding: 4px;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&.excluded {
|
|
71
|
-
&::after {
|
|
72
|
-
content: '';
|
|
73
|
-
position: absolute;
|
|
74
|
-
top: 0%;
|
|
75
|
-
left: 0%;
|
|
76
|
-
width: 100%;
|
|
77
|
-
height: 100%;
|
|
78
|
-
background: linear-gradient(-45deg, #ffffff 25%, transparent 25%, transparent 50%, #ffffff 50%, #ffffff 75%, transparent 75%, transparent);
|
|
79
|
-
background-size: 10px 10px;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.caleddar-date {
|
|
84
|
-
color: #101828;
|
|
85
|
-
border-radius: 50%;
|
|
86
|
-
width: 100%;
|
|
87
|
-
height: 100%;
|
|
88
|
-
display: flex;
|
|
89
|
-
align-items: center;
|
|
90
|
-
justify-content: center;
|
|
91
|
-
|
|
92
|
-
&.has-status {
|
|
93
|
-
color: #ffffff;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&.disabled-date {
|
|
97
|
-
color: #7D89B0;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.ant-picker-cell {
|
|
103
|
-
padding: 0;
|
|
104
|
-
.cell-size ();
|
|
105
|
-
}
|
|
108
|
+
.ant-picker-cell {
|
|
109
|
+
padding: 0;
|
|
110
|
+
.cell-size ();
|
|
111
|
+
}
|
|
106
112
|
}
|
|
107
113
|
|
|
108
114
|
// 布局
|
|
109
115
|
.month-list {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
.month-item-box {
|
|
115
|
-
display: flex;
|
|
116
|
-
// &.month-item-1 {
|
|
117
|
-
// justify-content: center;
|
|
118
|
-
// }
|
|
119
|
-
|
|
120
|
-
// &.month-item-2 {
|
|
121
|
-
// justify-content: center;
|
|
122
|
-
// }
|
|
123
|
-
|
|
124
|
-
// &.month-item-3 {
|
|
125
|
-
// &:nth-child(1n) {
|
|
126
|
-
// justify-content: flex-start;
|
|
127
|
-
// }
|
|
128
|
-
|
|
129
|
-
// &:nth-child(2n) {
|
|
130
|
-
// justify-content: center;
|
|
131
|
-
// }
|
|
132
|
-
|
|
133
|
-
// &:nth-child(3n) {
|
|
134
|
-
// justify-content: flex-end;
|
|
135
|
-
// }
|
|
136
|
-
// }
|
|
137
|
-
|
|
138
|
-
// &.month-item-4 {
|
|
139
|
-
// &:nth-child(1n) {
|
|
140
|
-
// justify-content: flex-start;
|
|
141
|
-
// }
|
|
142
|
-
|
|
143
|
-
// &:nth-child(2n) {
|
|
144
|
-
// justify-content: center;
|
|
145
|
-
// }
|
|
146
|
-
|
|
147
|
-
// &:nth-child(3n) {
|
|
148
|
-
// justify-content: center;
|
|
149
|
-
// }
|
|
150
|
-
|
|
151
|
-
// &:nth-child(4n) {
|
|
152
|
-
// justify-content: flex-end;
|
|
153
|
-
// }
|
|
154
|
-
// }
|
|
155
|
-
}
|
|
116
|
+
display: flex;
|
|
117
|
+
flex-wrap: wrap;
|
|
118
|
+
justify-content: space-around;
|
|
156
119
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
120
|
+
.month-item-box {
|
|
121
|
+
display: flex;
|
|
122
|
+
// &.month-item-1 {
|
|
123
|
+
// justify-content: center;
|
|
124
|
+
// }
|
|
125
|
+
|
|
126
|
+
// &.month-item-2 {
|
|
127
|
+
// justify-content: center;
|
|
128
|
+
// }
|
|
129
|
+
|
|
130
|
+
// &.month-item-3 {
|
|
131
|
+
// &:nth-child(1n) {
|
|
132
|
+
// justify-content: flex-start;
|
|
133
|
+
// }
|
|
134
|
+
|
|
135
|
+
// &:nth-child(2n) {
|
|
136
|
+
// justify-content: center;
|
|
137
|
+
// }
|
|
138
|
+
|
|
139
|
+
// &:nth-child(3n) {
|
|
140
|
+
// justify-content: flex-end;
|
|
141
|
+
// }
|
|
142
|
+
// }
|
|
143
|
+
|
|
144
|
+
// &.month-item-4 {
|
|
145
|
+
// &:nth-child(1n) {
|
|
146
|
+
// justify-content: flex-start;
|
|
147
|
+
// }
|
|
148
|
+
|
|
149
|
+
// &:nth-child(2n) {
|
|
150
|
+
// justify-content: center;
|
|
151
|
+
// }
|
|
152
|
+
|
|
153
|
+
// &:nth-child(3n) {
|
|
154
|
+
// justify-content: center;
|
|
155
|
+
// }
|
|
156
|
+
|
|
157
|
+
// &:nth-child(4n) {
|
|
158
|
+
// justify-content: flex-end;
|
|
159
|
+
// }
|
|
160
|
+
// }
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.month-item {
|
|
164
|
+
width: 280px;
|
|
165
|
+
margin: 10px;
|
|
166
|
+
}
|
|
161
167
|
}
|
|
162
168
|
|
|
163
169
|
.pisell-lowcode-picker-cell-disabled {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
}
|
|
170
|
+
&::before {
|
|
171
|
+
display: none;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
color: var(--Gray-900, #101828);
|
|
21
21
|
|
|
22
22
|
/* Paragraph/Semi Bold */
|
|
23
|
-
font-family: Inter;
|
|
24
23
|
font-size: 14px;
|
|
25
24
|
font-style: normal;
|
|
26
25
|
font-weight: 600;
|
|
@@ -36,7 +35,6 @@
|
|
|
36
35
|
text-overflow: ellipsis;
|
|
37
36
|
|
|
38
37
|
/* Small/Regular */
|
|
39
|
-
font-family: Inter;
|
|
40
38
|
font-size: 12px;
|
|
41
39
|
font-style: normal;
|
|
42
40
|
font-weight: 400;
|
|
@@ -55,7 +53,6 @@
|
|
|
55
53
|
text-overflow: ellipsis;
|
|
56
54
|
|
|
57
55
|
/* Text md/Semibold */
|
|
58
|
-
font-family: Inter;
|
|
59
56
|
font-size: 16px;
|
|
60
57
|
font-style: normal;
|
|
61
58
|
font-weight: 600;
|
|
@@ -66,8 +63,8 @@
|
|
|
66
63
|
}
|
|
67
64
|
|
|
68
65
|
.pisell-card-selected {
|
|
69
|
-
border: 1px solid var(--theme-color, #
|
|
70
|
-
background: var(--Primary-50, #
|
|
66
|
+
border: 1px solid var(--theme-color, #7f56d9);
|
|
67
|
+
background: var(--Primary-50, #f9f5ff);
|
|
71
68
|
}
|
|
72
69
|
|
|
73
70
|
.pisell-card-item:last-child {
|
|
@@ -78,7 +75,6 @@
|
|
|
78
75
|
// 充值卡标题
|
|
79
76
|
&-title {
|
|
80
77
|
color: var(--Gray-900, #101828);
|
|
81
|
-
font-family: Inter;
|
|
82
78
|
font-size: 20px;
|
|
83
79
|
font-style: normal;
|
|
84
80
|
font-weight: 600;
|
|
@@ -104,9 +100,9 @@
|
|
|
104
100
|
margin-bottom: 16px;
|
|
105
101
|
cursor: pointer;
|
|
106
102
|
}
|
|
107
|
-
|
|
103
|
+
|
|
108
104
|
.pisell-card-selected {
|
|
109
|
-
border: 1px solid var(--theme-color, #
|
|
110
|
-
background: var(--Primary-50, #
|
|
105
|
+
border: 1px solid var(--theme-color, #7f56d9);
|
|
106
|
+
background: var(--Primary-50, #f9f5ff);
|
|
111
107
|
}
|
|
112
108
|
}
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
color: var(--Gray-900, #101828);
|
|
19
19
|
|
|
20
20
|
/* Display sm/Semibold */
|
|
21
|
-
font-family: Inter;
|
|
22
21
|
font-size: 30px;
|
|
23
22
|
font-style: normal;
|
|
24
23
|
font-weight: 600;
|
|
@@ -53,7 +52,6 @@
|
|
|
53
52
|
text-align: center;
|
|
54
53
|
|
|
55
54
|
/* Text sm/Semibold */
|
|
56
|
-
font-family: Inter;
|
|
57
55
|
font-size: 14px;
|
|
58
56
|
font-style: normal;
|
|
59
57
|
font-weight: 600;
|
|
@@ -89,7 +87,6 @@
|
|
|
89
87
|
}
|
|
90
88
|
.pisell-lowcode-wallet-title {
|
|
91
89
|
color: var(--Gray-900, #101828);
|
|
92
|
-
font-family: Inter;
|
|
93
90
|
font-size: 30px;
|
|
94
91
|
font-style: normal;
|
|
95
92
|
font-weight: 600;
|
|
@@ -117,7 +114,6 @@
|
|
|
117
114
|
color: var(--Gray-900, #101828);
|
|
118
115
|
|
|
119
116
|
/* Text md/Medium */
|
|
120
|
-
font-family: Inter;
|
|
121
117
|
font-size: 16px;
|
|
122
118
|
font-style: normal;
|
|
123
119
|
font-weight: 500;
|
|
@@ -40,6 +40,8 @@ var import_useEngineContext = __toESM(require("./../../hooks/useEngineContext"))
|
|
|
40
40
|
var import_serve = require("./serve");
|
|
41
41
|
var import_utils = require("@pisell/utils");
|
|
42
42
|
var import_utils2 = require("./../../utils");
|
|
43
|
+
var import_status = require("./status");
|
|
44
|
+
var import_locales = __toESM(require("./locales"));
|
|
43
45
|
var import_index = require("./index.less");
|
|
44
46
|
var import_classnames = __toESM(require("classnames"));
|
|
45
47
|
var import_types = require("./types");
|
|
@@ -98,7 +100,7 @@ var DEFAULT_WALLET_CARD = {
|
|
|
98
100
|
original: "Level",
|
|
99
101
|
"zh-CN": "Level",
|
|
100
102
|
"zh-HK": "Level",
|
|
101
|
-
|
|
103
|
+
en: "Level"
|
|
102
104
|
},
|
|
103
105
|
metadata: {
|
|
104
106
|
barcodetype: "barCode",
|
|
@@ -121,7 +123,7 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
121
123
|
const context = (0, import_useEngineContext.default)();
|
|
122
124
|
const { constants, utils } = context.appHelper || {};
|
|
123
125
|
const dvaStore = (_b = (_a = utils == null ? void 0 : utils.getStore) == null ? void 0 : _a.call(utils)) == null ? void 0 : _b.getState();
|
|
124
|
-
import_utils.locales.init(
|
|
126
|
+
import_utils.locales.init(import_locales.default, ((_c = dvaStore == null ? void 0 : dvaStore.core) == null ? void 0 : _c.translateLocale) || "en");
|
|
125
127
|
const isMountedRef = (0, import_react.useRef)(true);
|
|
126
128
|
const carouselRef = (0, import_react.useRef)(null);
|
|
127
129
|
const { store } = utils;
|
|
@@ -129,23 +131,32 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
129
131
|
const prevButtonRef = (0, import_react.useRef)(null);
|
|
130
132
|
const nextButtonRef = (0, import_react.useRef)(null);
|
|
131
133
|
const [currentIndex, setCurrentIndex] = (0, import_react.useState)(0);
|
|
134
|
+
const [walletShopList, setWalletShopList] = (0, import_react.useState)([]);
|
|
132
135
|
const requestIdRef = (0, import_react.useRef)("");
|
|
136
|
+
const pubsub = utils == null ? void 0 : utils.pubsub;
|
|
133
137
|
const isUserLoggedIn = (0, import_react.useMemo)(() => {
|
|
134
138
|
var _a2, _b2;
|
|
135
139
|
return !!((_b2 = (_a2 = utils == null ? void 0 : utils.token) == null ? void 0 : _a2.get) == null ? void 0 : _b2.call(_a2)) || false;
|
|
136
140
|
}, [store]);
|
|
137
|
-
const {
|
|
138
|
-
list = [],
|
|
139
|
-
error,
|
|
140
|
-
authError,
|
|
141
|
-
hasAttempted,
|
|
142
|
-
isLoggedIn
|
|
143
|
-
} = state;
|
|
141
|
+
const { list = [], error, authError, hasAttempted, isLoggedIn } = state;
|
|
144
142
|
(0, import_react.useEffect)(() => {
|
|
145
143
|
if (utils == null ? void 0 : utils.request) {
|
|
146
144
|
import_utils2.request.setRequest(utils.request);
|
|
147
145
|
}
|
|
148
146
|
}, [utils == null ? void 0 : utils.request]);
|
|
147
|
+
(0, import_react.useEffect)(() => {
|
|
148
|
+
if (isUserLoggedIn) {
|
|
149
|
+
(0, import_serve.getWalletShopList)({ skip: 1, num: 50 }).then((res) => {
|
|
150
|
+
pubsub.publish("wallet:shopList", res);
|
|
151
|
+
});
|
|
152
|
+
const subscription = pubsub.subscribe("wallet:shopList", (res) => {
|
|
153
|
+
setWalletShopList((res == null ? void 0 : res.list) || []);
|
|
154
|
+
});
|
|
155
|
+
return () => {
|
|
156
|
+
subscription.unsubscribe();
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
}, [isUserLoggedIn]);
|
|
149
160
|
(0, import_react.useEffect)(() => {
|
|
150
161
|
return () => {
|
|
151
162
|
isMountedRef.current = false;
|
|
@@ -285,7 +296,7 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
285
296
|
(0, import_serve.getWalletBalance)()
|
|
286
297
|
]);
|
|
287
298
|
if (!isMountedRef.current || requestIdRef.current !== requestId) return;
|
|
288
|
-
if (walletListData
|
|
299
|
+
if (walletListData) {
|
|
289
300
|
try {
|
|
290
301
|
saveToLocalStorage(STORAGE_KEY, walletListData);
|
|
291
302
|
} catch (e) {
|
|
@@ -301,7 +312,8 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
301
312
|
}
|
|
302
313
|
if (!walletBalanceData || Array.isArray(walletListData) && walletListData.length === 0) {
|
|
303
314
|
setTimeout(async () => {
|
|
304
|
-
if (!isMountedRef.current || requestIdRef.current !== requestId)
|
|
315
|
+
if (!isMountedRef.current || requestIdRef.current !== requestId)
|
|
316
|
+
return;
|
|
305
317
|
try {
|
|
306
318
|
let retryBalanceData = walletBalanceData;
|
|
307
319
|
let retryListData = walletListData;
|
|
@@ -311,7 +323,10 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
311
323
|
try {
|
|
312
324
|
saveToLocalStorage(STORAGE_KEY_BALANCE, retryBalanceData);
|
|
313
325
|
} catch (e) {
|
|
314
|
-
console.error(
|
|
326
|
+
console.error(
|
|
327
|
+
"Error saving retry balance to localStorage:",
|
|
328
|
+
e
|
|
329
|
+
);
|
|
315
330
|
}
|
|
316
331
|
}
|
|
317
332
|
}
|
|
@@ -469,11 +484,24 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
469
484
|
const renderBalanceCard = (0, import_react.useCallback)((balance) => {
|
|
470
485
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-balance-card", key: balance.id }, /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-card-header" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-card-title" }, balance.name), /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-card-value" }, balance.value)), /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-card-content" }, balance.items && balance.items.map((item) => /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-item", key: item.key }, /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-item-label" }, item.label), /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-item-value" }, item.value)))));
|
|
471
486
|
}, []);
|
|
487
|
+
const isShowGuide = (0, import_react.useMemo)(() => {
|
|
488
|
+
var _a2;
|
|
489
|
+
if (((_a2 = globalState == null ? void 0 : globalState.walletGuideConfig) == null ? void 0 : _a2.show) === 0) return false;
|
|
490
|
+
return (walletShopList == null ? void 0 : walletShopList.length) > 0 && !(list == null ? void 0 : list.length);
|
|
491
|
+
}, [walletShopList, list, globalState == null ? void 0 : globalState.walletGuideConfig]);
|
|
472
492
|
const renderContent = () => {
|
|
473
|
-
if (list.length === 0) {
|
|
493
|
+
if (list.length === 0 && !isShowGuide) {
|
|
474
494
|
return null;
|
|
475
495
|
}
|
|
476
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-list-container" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-content" },
|
|
496
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-list-container" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-content" }, isShowGuide ? /* @__PURE__ */ import_react.default.createElement(
|
|
497
|
+
import_materials.WalletCard,
|
|
498
|
+
{
|
|
499
|
+
key: (0, import_utils.getUniqueId)(),
|
|
500
|
+
isGuide: true,
|
|
501
|
+
...globalState,
|
|
502
|
+
walletGuideConfig: (globalState == null ? void 0 : globalState.walletGuideConfig) || (0, import_status.defaultWalletGuideConfig)()
|
|
503
|
+
}
|
|
504
|
+
) : /* @__PURE__ */ import_react.default.createElement(import_materials.Carousel, { ref: carouselRef, ...carouselProps }, list.map((item) => renderWalletCard(item)))), list && list.length > 1 && isUserLoggedIn && /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-navigation" }, /* @__PURE__ */ import_react.default.createElement(
|
|
477
505
|
"div",
|
|
478
506
|
{
|
|
479
507
|
className: `wallet-nav-button wallet-prev ${currentIndex === 0 ? "disabled" : ""}`,
|