@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.
Files changed (143) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +5 -5
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +5 -5
  9. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  10. package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  11. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  12. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  13. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  14. package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
  15. package/es/components/appointmentBooking/components/Voucher/index.less +0 -2
  16. package/es/components/appointmentBooking/deposit/index.d.ts +0 -1
  17. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  18. package/es/components/booking/components/footer/index.d.ts +0 -1
  19. package/es/components/booking/components/voucher/index.d.ts +0 -1
  20. package/es/components/booking/components/voucher/index.less +0 -1
  21. package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  22. package/es/components/booking/hooks/useClearCart.d.ts +0 -1
  23. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  24. package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  25. package/es/components/booking/info/service/serviceItem/index.d.ts +0 -1
  26. package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  27. package/es/components/booking/info2/utilsByBooking.js +17 -10
  28. package/es/components/booking/utils.js +10 -4
  29. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  30. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
  31. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  32. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  33. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  34. package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  35. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  36. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  37. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  38. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  39. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  40. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  41. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -1
  42. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  43. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  44. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -1
  45. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  46. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  47. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  48. package/es/components/eventBooking/components/timeResourceSelector/index.less +0 -1
  49. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  50. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  51. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  52. package/es/components/pisellSelectCustomerModal/index.d.ts +0 -1
  53. package/es/components/productSelect/components/TabProduct/index.d.ts +0 -1
  54. package/es/components/productSelect/components/productGroup/index.d.ts +0 -1
  55. package/es/components/schedules/calendar/index.less +158 -152
  56. package/es/components/shoppingCart/components/Cart/index.d.ts +0 -1
  57. package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  58. package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  59. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  60. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  61. package/es/components/ticketBooking/index.d.ts +1 -0
  62. package/es/components/wallet/DiscountCard/index.less +0 -1
  63. package/es/components/wallet/PointCard/index.less +0 -1
  64. package/es/components/wallet/RechargeableCard/index.less +5 -9
  65. package/es/components/wallet/Voucher/index.less +0 -1
  66. package/es/components/wallet/index.less +0 -4
  67. package/es/components/walletList/index.js +55 -7
  68. package/es/components/walletList/index.less +17 -15
  69. package/es/components/walletList/locales.d.ts +18 -0
  70. package/es/components/walletList/locales.js +17 -0
  71. package/es/components/walletList/serve.d.ts +8 -0
  72. package/es/components/walletList/serve.js +38 -0
  73. package/es/components/walletList/status.d.ts +38 -0
  74. package/es/components/walletList/status.js +47 -0
  75. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  76. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  77. package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  78. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  79. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  80. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  81. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
  82. package/lib/components/appointmentBooking/components/Voucher/index.less +0 -2
  83. package/lib/components/appointmentBooking/deposit/index.d.ts +0 -1
  84. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  85. package/lib/components/booking/components/footer/index.d.ts +0 -1
  86. package/lib/components/booking/components/voucher/index.d.ts +0 -1
  87. package/lib/components/booking/components/voucher/index.less +0 -1
  88. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  89. package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
  90. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  91. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
  92. package/lib/components/booking/info/service/serviceItem/index.d.ts +0 -1
  93. package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -1
  94. package/lib/components/booking/info2/utilsByBooking.js +7 -9
  95. package/lib/components/booking/utils.js +7 -3
  96. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  97. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
  98. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  99. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  100. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  101. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  102. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  103. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  104. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  105. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  106. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  107. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
  108. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -1
  109. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  110. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  111. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -1
  112. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  113. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
  114. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  115. package/lib/components/eventBooking/components/timeResourceSelector/index.less +0 -1
  116. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  117. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  118. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  119. package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -1
  120. package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -1
  121. package/lib/components/productSelect/components/productGroup/index.d.ts +0 -1
  122. package/lib/components/schedules/calendar/index.less +158 -152
  123. package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -1
  124. package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  125. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  126. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +1 -0
  127. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
  128. package/lib/components/ticketBooking/index.d.ts +1 -0
  129. package/lib/components/wallet/DiscountCard/index.less +0 -1
  130. package/lib/components/wallet/PointCard/index.less +0 -1
  131. package/lib/components/wallet/RechargeableCard/index.less +5 -9
  132. package/lib/components/wallet/Voucher/index.less +0 -1
  133. package/lib/components/wallet/index.less +0 -4
  134. package/lib/components/walletList/index.js +42 -14
  135. package/lib/components/walletList/index.less +17 -15
  136. package/lib/components/walletList/locales.d.ts +18 -0
  137. package/lib/components/walletList/locales.js +41 -0
  138. package/lib/components/walletList/serve.d.ts +8 -0
  139. package/lib/components/walletList/serve.js +15 -2
  140. package/lib/components/walletList/status.d.ts +38 -0
  141. package/lib/components/walletList/status.js +66 -0
  142. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  143. package/package.json +3 -3
@@ -1,167 +1,173 @@
1
1
  .calender-box {
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-family: Inter;
12
- font-size: 36px;
13
- font-style: normal;
14
- font-weight: 500;
15
- line-height: 44px;
16
- letter-spacing: -0.72px;
17
- background-color: #fff;
18
- position: sticky;
19
- top: 0;
20
- z-index: 1;
21
- }
22
-
23
- .caleddar-month {
24
- color: #344054;
25
- font-family: Inter;
26
- font-size: 16px;
27
- font-style: normal;
28
- font-weight: 600;
29
- line-height: 24px;
30
- margin-bottom: 4px;
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
- // antd calendar样式修改
35
- .ant-picker-panel {
36
- border-top: none;
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
- .pisell-lowcode-picker-cell {
40
- padding: 0;
41
- border-top: none;
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
- .cell-size {
45
- width: 40px;
46
- height: 40px;
47
- padding: 4px;
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
- display: flex;
111
- flex-wrap: wrap;
112
- justify-content: space-around;
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
- .month-item {
158
- width: 280px;
159
- margin: 10px;
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
- &::before {
165
- display: none;
166
- }
167
- }
170
+ &::before {
171
+ display: none;
172
+ }
173
+ }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Cart: () => JSX.Element;
4
3
  export default Cart;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useAddService: (id?: number, type?: string) => JSX.Element | null;
3
2
  export default useAddService;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const useClearCart: (key?: number | undefined) => JSX.Element | null;
3
2
  export default useClearCart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const TicketBooking: () => JSX.Element;
3
4
  export default TicketBooking;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { Dayjs } from 'dayjs';
3
2
  import './index.less';
4
3
  interface ITimeBarProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  interface TicketBookingProps {
3
4
  productExtensionType: string[];
@@ -1,6 +1,5 @@
1
1
  .wallet-discountCard-title {
2
2
  color: var(--Gray-900, #101828);
3
- font-family: Inter;
4
3
  font-size: 20px;
5
4
  font-style: normal;
6
5
  font-weight: 600;
@@ -1,6 +1,5 @@
1
1
  .wallet-pointCard-title {
2
2
  color: var(--Gray-900, #101828);
3
- font-family: Inter;
4
3
  font-size: 20px;
5
4
  font-style: normal;
6
5
  font-weight: 600;
@@ -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, #7F56D9);
70
- background: var(--Primary-50, #F9F5FF);
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, #7F56D9);
110
- background: var(--Primary-50, #F9F5FF);
105
+ border: 1px solid var(--theme-color, #7f56d9);
106
+ background: var(--Primary-50, #f9f5ff);
111
107
  }
112
108
  }
@@ -1,6 +1,5 @@
1
1
  .wallet-voucher-title {
2
2
  color: var(--Gray-900, #101828);
3
- font-family: Inter;
4
3
  font-size: 20px;
5
4
  font-style: normal;
6
5
  font-weight: 600;
@@ -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;
@@ -21,9 +21,11 @@ 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 } from "./serve";
25
- import { locales } from '@pisell/utils';
24
+ import { getWalletList, getWalletBalance, getWalletShopList } from "./serve";
25
+ import { locales, getUniqueId } from '@pisell/utils';
26
26
  import { request } from "./../../utils";
27
+ import { defaultWalletGuideConfig } from "./status";
28
+ import localeTexts from "./locales";
27
29
  import "./index.less";
28
30
  import classNames from 'classnames';
29
31
  // 导入所有类型
@@ -120,7 +122,7 @@ var DEFAULT_WALLET_CARD = {
120
122
  original: 'Level',
121
123
  'zh-CN': 'Level',
122
124
  'zh-HK': 'Level',
123
- 'en': 'Level'
125
+ en: 'Level'
124
126
  },
125
127
  metadata: {
126
128
  barcodetype: 'barCode',
@@ -150,7 +152,7 @@ var WalletList = Provider(function (props) {
150
152
  constants = _ref.constants,
151
153
  utils = _ref.utils;
152
154
  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();
153
- locales.init({}, (dvaStore === null || dvaStore === void 0 || (_dvaStore$core = dvaStore.core) === null || _dvaStore$core === void 0 ? void 0 : _dvaStore$core.translateLocale) || 'en');
155
+ locales.init(localeTexts, (dvaStore === null || dvaStore === void 0 || (_dvaStore$core = dvaStore.core) === null || _dvaStore$core === void 0 ? void 0 : _dvaStore$core.translateLocale) || 'en');
154
156
  // 添加组件挂载状态引用
155
157
  var isMountedRef = useRef(true);
156
158
  var carouselRef = useRef(null);
@@ -164,9 +166,15 @@ var WalletList = Provider(function (props) {
164
166
  _useState2 = _slicedToArray(_useState, 2),
165
167
  currentIndex = _useState2[0],
166
168
  setCurrentIndex = _useState2[1];
169
+ // 店铺wallet pass列表
170
+ var _useState3 = useState([]),
171
+ _useState4 = _slicedToArray(_useState3, 2),
172
+ walletShopList = _useState4[0],
173
+ setWalletShopList = _useState4[1];
167
174
 
168
175
  // 添加一个请求ID引用,用于去重
169
176
  var requestIdRef = useRef('');
177
+ var pubsub = utils === null || utils === void 0 ? void 0 : utils.pubsub;
170
178
 
171
179
  //获取登录状态
172
180
  var isUserLoggedIn = useMemo(function () {
@@ -188,6 +196,27 @@ var WalletList = Provider(function (props) {
188
196
  request.setRequest(utils.request);
189
197
  }
190
198
  }, [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]);
191
220
 
192
221
  // 组件挂载时执行一次请求
193
222
  useEffect(function () {
@@ -433,7 +462,7 @@ var WalletList = Provider(function (props) {
433
462
  return _context3.abrupt("return");
434
463
  case 24:
435
464
  // 如果获取到有效数据,保存到 localStorage
436
- if (walletListData && walletListData.length > 0) {
465
+ if (walletListData) {
437
466
  try {
438
467
  saveToLocalStorage(STORAGE_KEY, walletListData);
439
468
  } catch (e) {
@@ -710,10 +739,24 @@ var WalletList = Provider(function (props) {
710
739
  })));
711
740
  }, []);
712
741
 
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
+
713
756
  // 确保renderContent总是返回JSX,避免返回null
714
757
  var renderContent = function renderContent() {
715
758
  // 如果列表为空,不显示任何内容
716
- if (list.length === 0) {
759
+ if (list.length === 0 && !isShowGuide) {
717
760
  return null;
718
761
  }
719
762
 
@@ -722,7 +765,12 @@ var WalletList = Provider(function (props) {
722
765
  className: "pisell-wallet-list-container"
723
766
  }, /*#__PURE__*/React.createElement("div", {
724
767
  className: "wallet-content"
725
- }, /*#__PURE__*/React.createElement(Carousel, _extends({
768
+ }, isShowGuide ? /*#__PURE__*/React.createElement(WalletCard, _extends({
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({
726
774
  ref: carouselRef
727
775
  }, carouselProps), list.map(function (item) {
728
776
  return renderWalletCard(item);