@pisell/private-materials 6.3.50 → 6.3.52
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 +1 -1
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/Sales/Summary/utils.d.ts +1 -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.js +1 -1
- package/es/components/booking/addons/index.js +20 -17
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/es/components/booking/components/footer/utils.d.ts +5 -0
- package/es/components/booking/components/footer/utils.js +85 -40
- package/es/components/booking/components/reloadResourceModal/index.d.ts +1 -0
- package/es/components/booking/components/voucher/index.js +18 -5
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/es/components/booking/info/date/index.d.ts +1 -0
- package/es/components/booking/info/notes/index.d.ts +1 -0
- package/es/components/booking/info/service/actions/index.d.ts +1 -0
- package/es/components/booking/info/service2/utils.js +1 -0
- package/es/components/booking/info2/service/actions/index.d.ts +1 -0
- package/es/components/booking/info2/service/addService/index.js +2 -3
- package/es/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/es/components/booking/materiels/duration/index.d.ts +1 -0
- package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/es/components/booking/utils.d.ts +1 -0
- package/es/components/booking/utils.js +16 -2
- package/es/components/eftpos/form/index.d.ts +0 -1
- package/es/components/eftpos/hooks.d.ts +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -0
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/payo/config.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +1 -1
- package/es/components/eftposPay/tip.d.ts +1 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- 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/bookingDetailModal/components/Resource.d.ts +1 -0
- package/es/components/login/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/es/components/schedules/calendar/index.d.ts +1 -0
- package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/es/components/schedules/products/list/index.d.ts +1 -0
- package/es/components/schedules/resources/list/index.d.ts +1 -0
- package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/es/components/shoppingCart/index.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +3 -3
- package/es/components/ticketBooking/utils/index.js +23 -8
- package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/hooks/usePaymentLogger.d.ts +1 -0
- package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/es/plus/saasRegister/components/Header.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/es/plus/walletPassGallery/components/footerButton/index.js +2 -4
- package/es/plus/walletPassGallery/components/footerButton/index.less +14 -59
- package/es/plus/walletPassGallery/components/passDetail/index.js +5 -1
- package/es/plus/walletPassGallery/components/passDetail/index.less +4 -0
- package/es/plus/walletPassGallery/components/recharge/index.js +19 -8
- package/es/plus/walletPassGallery/index.js +3 -1
- package/es/pro/Login2.0/index.less +15 -8
- package/lib/components/Sales/Summary/utils.d.ts +1 -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.js +1 -1
- package/lib/components/booking/addons/index.js +10 -7
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
- package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
- package/lib/components/booking/components/footer/utils.d.ts +5 -0
- package/lib/components/booking/components/footer/utils.js +56 -23
- package/lib/components/booking/components/reloadResourceModal/index.d.ts +1 -0
- package/lib/components/booking/components/voucher/index.js +19 -6
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
- package/lib/components/booking/info/date/index.d.ts +1 -0
- package/lib/components/booking/info/notes/index.d.ts +1 -0
- package/lib/components/booking/info/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.js +1 -0
- package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addService/index.js +1 -2
- package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +1 -0
- package/lib/components/booking/materiels/duration/index.d.ts +1 -0
- package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
- package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
- package/lib/components/booking/utils.d.ts +1 -0
- package/lib/components/booking/utils.js +12 -0
- package/lib/components/eftpos/form/index.d.ts +0 -1
- package/lib/components/eftpos/hooks.d.ts +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -0
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/payo/config.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +1 -1
- package/lib/components/eftposPay/tip.d.ts +1 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
- 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/bookingDetailModal/components/Resource.d.ts +1 -0
- package/lib/components/login/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
- package/lib/components/schedules/calendar/index.d.ts +1 -0
- package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
- package/lib/components/schedules/products/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/list/index.d.ts +1 -0
- package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
- package/lib/components/shoppingCart/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
- package/lib/components/ticketBooking/utils/index.js +9 -4
- package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/hooks/usePaymentLogger.d.ts +1 -0
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
- package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
- package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
- package/lib/plus/saasRegister/components/Header.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
- package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/footerButton/index.js +2 -2
- package/lib/plus/walletPassGallery/components/footerButton/index.less +14 -59
- package/lib/plus/walletPassGallery/components/passDetail/index.js +4 -1
- package/lib/plus/walletPassGallery/components/passDetail/index.less +4 -0
- package/lib/plus/walletPassGallery/components/recharge/index.js +7 -1
- package/lib/plus/walletPassGallery/index.js +3 -1
- package/lib/pro/Login2.0/index.less +15 -8
- package/package.json +3 -3
|
@@ -300,12 +300,12 @@ var AddSerivce = (props) => {
|
|
|
300
300
|
_extend: {
|
|
301
301
|
start_date: state.date.value,
|
|
302
302
|
quantity: (e == null ? void 0 : e.quantity) || 1,
|
|
303
|
-
price: _detail.price,
|
|
304
303
|
product_name: item.title,
|
|
305
304
|
other
|
|
306
305
|
},
|
|
307
306
|
new: 1
|
|
308
307
|
};
|
|
308
|
+
cacheItem._extend.price = (0, import_utils2.getMainPrice)(_detail, _detail.price);
|
|
309
309
|
let _total = (0, import_utils2.getProductTotalPrice)(cacheItem);
|
|
310
310
|
cacheItem._extend.total = _total;
|
|
311
311
|
cacheItem._extend.origin_total = _total;
|
|
@@ -148,11 +148,16 @@ var addService = (list, addItem, state) => {
|
|
|
148
148
|
let isNotSame = true;
|
|
149
149
|
let isSetCount = false;
|
|
150
150
|
value = list.map((item) => {
|
|
151
|
-
var _a, _b, _c;
|
|
151
|
+
var _a, _b, _c, _d, _e;
|
|
152
152
|
const isGoodPassDiscountProduct = (item.discount_list || []).some((item2) => item2.type === "good_pass");
|
|
153
|
-
|
|
153
|
+
const bundleDiscountList = [];
|
|
154
|
+
(((_b = (_a = item == null ? void 0 : item._extend) == null ? void 0 : _a.other) == null ? void 0 : _b.bundle) || []).forEach((item2) => {
|
|
155
|
+
bundleDiscountList.push(...(item2 == null ? void 0 : item2.discount_list) || []);
|
|
156
|
+
});
|
|
157
|
+
const isGoodPassBundleProduct = bundleDiscountList.some((item2) => item2.type === "good_pass");
|
|
158
|
+
if (isSameProduct(item, addItem) && !isSetCount && !isGoodPassDiscountProduct && !isGoodPassBundleProduct) {
|
|
154
159
|
isNotSame = false;
|
|
155
|
-
const quantity = (((
|
|
160
|
+
const quantity = (((_c = item == null ? void 0 : item._extend) == null ? void 0 : _c.quantity) || 1) + (((_d = addItem == null ? void 0 : addItem._extend) == null ? void 0 : _d.quantity) || 1);
|
|
156
161
|
count = quantity;
|
|
157
162
|
isSetCount = true;
|
|
158
163
|
return {
|
|
@@ -161,7 +166,7 @@ var addService = (list, addItem, state) => {
|
|
|
161
166
|
...item._extend,
|
|
162
167
|
quantity,
|
|
163
168
|
other: {
|
|
164
|
-
...((
|
|
169
|
+
...((_e = item._extend) == null ? void 0 : _e.other) || {},
|
|
165
170
|
quantity
|
|
166
171
|
}
|
|
167
172
|
}
|
|
@@ -160,13 +160,13 @@ var FooterButtons = ({
|
|
|
160
160
|
)
|
|
161
161
|
);
|
|
162
162
|
}
|
|
163
|
-
const
|
|
164
|
-
const className = `pisell-wallet-pass-gallery_footer-buttons pisell-wallet-pass-gallery_footer-buttons-count-${buttonCount}`;
|
|
163
|
+
const className = `pisell-wallet-pass-gallery_footer-buttons`;
|
|
165
164
|
return buttons.length > 0 ? /* @__PURE__ */ import_react.default.createElement("div", { className }, buttons) : null;
|
|
166
165
|
};
|
|
167
166
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-pass-gallery_footer" }, renderButtons()), /* @__PURE__ */ import_react.default.createElement(
|
|
168
167
|
import_materials.PisellModal,
|
|
169
168
|
{
|
|
169
|
+
destroyOnClose: true,
|
|
170
170
|
platform,
|
|
171
171
|
mobileModalHeight: "auto",
|
|
172
172
|
headerDivider: false,
|
|
@@ -1,83 +1,38 @@
|
|
|
1
1
|
.pisell-wallet-pass-gallery_footer {
|
|
2
2
|
position: relative;
|
|
3
|
-
left: 0;
|
|
4
|
-
right: 0;
|
|
5
|
-
bottom: 0;
|
|
6
3
|
background-color: #fff;
|
|
7
4
|
padding: 24px;
|
|
8
5
|
z-index: 100;
|
|
9
6
|
border-top: 1px solid #d0d5de;
|
|
10
|
-
margin-left: -
|
|
11
|
-
margin-right: -
|
|
7
|
+
margin-left: -24px;
|
|
8
|
+
margin-right: -24px;
|
|
12
9
|
&-buttons {
|
|
13
10
|
display: flex;
|
|
14
11
|
gap: 12px;
|
|
15
12
|
width: 100%;
|
|
16
13
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
display: flex;
|
|
21
|
-
>span{
|
|
22
|
-
display: block;
|
|
23
|
-
// width: 100%;
|
|
24
|
-
flex:1;
|
|
14
|
+
.pisell-wallet-pass-gallery_footer-buttons-item-secondary {
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
display: inline-block;
|
|
25
17
|
white-space: nowrap;
|
|
26
18
|
overflow: hidden;
|
|
27
19
|
text-overflow: ellipsis;
|
|
28
20
|
text-wrap: nowrap;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
// 按钮数量样式
|
|
34
|
-
// 单个按钮占满宽度
|
|
35
|
-
&-count-1 {
|
|
36
|
-
.pisell-wallet-pass-gallery_footer-buttons-item {
|
|
37
|
-
flex: 1;
|
|
38
|
-
width: 100%;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// 两个按钮各占一半
|
|
43
|
-
&-count-2 {
|
|
44
|
-
.pisell-wallet-pass-gallery_footer-buttons-item {
|
|
45
|
-
flex: 1;
|
|
46
|
-
width: calc(50% - 6px);
|
|
21
|
+
> span {
|
|
22
|
+
display: inline;
|
|
47
23
|
}
|
|
48
24
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
.pisell-wallet-pass-gallery_footer-buttons-item {
|
|
53
|
-
flex: 1;
|
|
54
|
-
width: calc(33.33% - 8px);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// 四个按钮各占四分之一
|
|
59
|
-
&-count-4 {
|
|
60
|
-
.pisell-wallet-pass-gallery_footer-buttons-item {
|
|
61
|
-
flex: 1;
|
|
62
|
-
width: calc(25% - 9px);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// Ant Design按钮覆盖样式
|
|
67
|
-
:global(.ant-btn) {
|
|
68
|
-
height: 48px;
|
|
69
|
-
border-radius: 6px;
|
|
70
|
-
font-size: 16px;
|
|
71
|
-
font-weight: 500;
|
|
72
|
-
width: 100%;
|
|
25
|
+
|
|
26
|
+
.pisell-wallet-pass-gallery_footer-buttons-item {
|
|
27
|
+
flex-grow: 1;
|
|
73
28
|
}
|
|
74
|
-
|
|
29
|
+
|
|
75
30
|
&-item {
|
|
76
31
|
// 修饰符:主按钮
|
|
77
32
|
&-primary {
|
|
78
|
-
background-color: var(--theme-color, #
|
|
33
|
+
background-color: var(--theme-color, #7f56d9);
|
|
79
34
|
}
|
|
80
|
-
|
|
35
|
+
|
|
81
36
|
// 修饰符:次按钮
|
|
82
37
|
&-secondary {
|
|
83
38
|
background-color: #fff;
|
|
@@ -90,4 +45,4 @@
|
|
|
90
45
|
|
|
91
46
|
.pisell-wallet-pass-gallery_footer:empty {
|
|
92
47
|
display: none;
|
|
93
|
-
}
|
|
48
|
+
}
|
|
@@ -238,7 +238,10 @@ var PassDetail = (props) => {
|
|
|
238
238
|
{
|
|
239
239
|
className: (0, import_classnames.default)(
|
|
240
240
|
`pisell-wallet-pass-gallery_detail`,
|
|
241
|
-
`pisell-wallet-pass-gallery_detail-${platform}
|
|
241
|
+
`pisell-wallet-pass-gallery_detail-${platform}`,
|
|
242
|
+
{
|
|
243
|
+
[`pisell-wallet-pass-gallery_detail-with-footer`]: platform === "h5" && tag === "gift_card"
|
|
244
|
+
}
|
|
242
245
|
)
|
|
243
246
|
},
|
|
244
247
|
/* @__PURE__ */ import_react.default.createElement(
|
|
@@ -51,6 +51,7 @@ var Recharge = ({
|
|
|
51
51
|
const { action, storage } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
52
52
|
const dvaStore = (_e = (_d = (_c = (_b = context.appHelper) == null ? void 0 : _b.utils) == null ? void 0 : _c.getStore) == null ? void 0 : _d.call(_c)) == null ? void 0 : _e.getState();
|
|
53
53
|
const shop = ((_g = (_f = dvaStore == null ? void 0 : dvaStore.core) == null ? void 0 : _f.core) == null ? void 0 : _g.shop) || {};
|
|
54
|
+
const [loading, setLoading] = (0, import_react.useState)(false);
|
|
54
55
|
(0, import_react.useEffect)(() => {
|
|
55
56
|
if (detailData) {
|
|
56
57
|
setChargeItem(((detailData == null ? void 0 : detailData.gift_option) || [])[0]);
|
|
@@ -59,6 +60,7 @@ var Recharge = ({
|
|
|
59
60
|
const handleRecharge = async () => {
|
|
60
61
|
var _a2;
|
|
61
62
|
try {
|
|
63
|
+
setLoading(true);
|
|
62
64
|
const params = {
|
|
63
65
|
voucher_id: (detailData == null ? void 0 : detailData.id) || "",
|
|
64
66
|
product_id: (detailData == null ? void 0 : detailData.product_id) || "",
|
|
@@ -87,11 +89,14 @@ var Recharge = ({
|
|
|
87
89
|
import_utils.locales.getText("wallet-pass-gallery.log.rechargeOrderFailed"),
|
|
88
90
|
error
|
|
89
91
|
);
|
|
92
|
+
} finally {
|
|
93
|
+
setLoading(false);
|
|
90
94
|
}
|
|
91
95
|
};
|
|
92
96
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
93
97
|
import_antd.Drawer,
|
|
94
98
|
{
|
|
99
|
+
destroyOnClose: true,
|
|
95
100
|
title: import_utils.locales.getText("wallet-pass-gallery.rechargeOptions"),
|
|
96
101
|
open,
|
|
97
102
|
zIndex: 999,
|
|
@@ -105,7 +110,8 @@ var Recharge = ({
|
|
|
105
110
|
block: true,
|
|
106
111
|
size: "large",
|
|
107
112
|
onClick: handleRecharge,
|
|
108
|
-
disabled: !(chargeItem == null ? void 0 : chargeItem.id)
|
|
113
|
+
disabled: !(chargeItem == null ? void 0 : chargeItem.id),
|
|
114
|
+
loading
|
|
109
115
|
},
|
|
110
116
|
import_utils.locales.getText("wallet-pass-gallery.recharge")
|
|
111
117
|
)
|
|
@@ -442,7 +442,9 @@ var WalletPassGallery = (props) => {
|
|
|
442
442
|
), /* @__PURE__ */ import_react.default.createElement(
|
|
443
443
|
import_materials.PisellModal,
|
|
444
444
|
{
|
|
445
|
-
|
|
445
|
+
zIndex: 997,
|
|
446
|
+
destroyOnClose: true,
|
|
447
|
+
platform,
|
|
446
448
|
visible: !!_currentItem,
|
|
447
449
|
onCancel: () => setCurrentItemId(""),
|
|
448
450
|
footer: null,
|
|
@@ -15,6 +15,14 @@
|
|
|
15
15
|
|
|
16
16
|
/* 默认底部内边距 */
|
|
17
17
|
padding-bottom: 24px;
|
|
18
|
+
|
|
19
|
+
// 加载状态优化
|
|
20
|
+
.pisell-lowcode-btn-loading-icon {
|
|
21
|
+
.anticon {
|
|
22
|
+
color: #ffffff !important;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
18
26
|
|
|
19
27
|
/* 在弹窗模式下不需要额外的底部内边距,因为使用 sticky 定位 */
|
|
20
28
|
.pisell-lowcode-modal-body & {
|
|
@@ -462,6 +470,13 @@
|
|
|
462
470
|
.login-lm-drawer-popover & {
|
|
463
471
|
padding-bottom: 100px;
|
|
464
472
|
}
|
|
473
|
+
// 加载状态优化
|
|
474
|
+
.pisell-lowcode-btn-loading-icon {
|
|
475
|
+
.anticon {
|
|
476
|
+
color: #ffffff !important;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
|
|
465
480
|
}
|
|
466
481
|
|
|
467
482
|
// 错误提示样式优化
|
|
@@ -521,14 +536,6 @@
|
|
|
521
536
|
// }
|
|
522
537
|
// }
|
|
523
538
|
// }
|
|
524
|
-
|
|
525
|
-
// 加载状态优化
|
|
526
|
-
.pisell-lowcode-btn-loading-icon {
|
|
527
|
-
.anticon {
|
|
528
|
-
color: #ffffff !important;
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
|
|
532
539
|
// 切换认证方式按钮
|
|
533
540
|
.login2-switch-button {
|
|
534
541
|
margin-top: 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.52",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"@react-spring/web": "^9.6.1",
|
|
63
63
|
"@use-gesture/react": "^10.3.1",
|
|
64
64
|
"@pisell/utils": "3.0.3",
|
|
65
|
-
"@pisell/
|
|
65
|
+
"@pisell/icon": "0.0.11",
|
|
66
66
|
"@pisell/date-picker": "3.0.6",
|
|
67
|
-
"@pisell/
|
|
67
|
+
"@pisell/materials": "6.3.16"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"react": "^18.0.0",
|