@pisell/private-materials 3.4.17 → 3.4.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +7 -7
- package/es/components/appointmentBooking/components/Content/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Content/index.js +1 -1
- package/es/components/appointmentBooking/components/Content/index.less +3 -3
- package/es/components/appointmentBooking/components/Services/index.js +2 -2
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/index.js +8 -2
- package/es/components/booking/addons/index.js +12 -8
- package/es/components/booking/components/footer/index.js +19 -9
- package/es/components/booking/components/voucher/index.d.ts +0 -1
- package/es/components/booking/info2/service/addService/index.d.ts +0 -1
- package/es/components/booking/info2/service/addTimeModal/index.js +0 -1
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +5 -5
- package/es/components/eventBooking/components/progressBar/index.js +20 -0
- package/es/components/eventBooking/index.js +8 -1
- package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +20 -7
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +12 -2
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +31 -24
- package/es/components/pay/toC/utils.d.ts +1 -1
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +3 -3
- package/es/components/ticketBooking/index.d.ts +0 -1
- package/es/components/wallet/Detail/index.js +2 -2
- package/es/components/wallet/components/WalletCard.js +3 -2
- package/es/hooks/useWindowSize.js +8 -1
- package/es/plus/productSelect/CategoryTabs/CategorySkeleton.d.ts +10 -0
- package/es/plus/productSelect/CategoryTabs/CategorySkeleton.js +29 -0
- package/es/plus/productSelect/CategoryTabs/CategorySkeleton.less +30 -0
- package/es/plus/productSelect/CategoryTabs/index.d.ts +18 -0
- package/es/plus/productSelect/CategoryTabs/index.js +171 -0
- package/es/plus/productSelect/ProductCard/ProductCardSkeleton.d.ts +10 -0
- package/es/plus/productSelect/ProductCard/ProductCardSkeleton.js +37 -0
- package/es/plus/productSelect/ProductCard/ProductCardSkeleton.less +81 -0
- package/es/plus/productSelect/ProductCard/index.d.ts +45 -0
- package/es/plus/productSelect/ProductCard/index.js +170 -0
- package/es/plus/productSelect/ProductCard/index.less +253 -0
- package/es/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
- package/es/plus/productSelect/ProductList/gridComponents.js +149 -0
- package/es/plus/productSelect/ProductList/index.d.ts +22 -0
- package/es/plus/productSelect/ProductList/index.js +72 -0
- package/es/plus/productSelect/ProductList/index.less +0 -0
- package/es/plus/productSelect/components/IntersectionObserver.d.ts +42 -0
- package/es/plus/productSelect/components/IntersectionObserver.js +276 -0
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.js +357 -0
- package/es/plus/productSelect/components/TabsStructure/TabsStructure.less +224 -0
- package/es/plus/productSelect/components/TabsStructure/hooks.d.ts +22 -0
- package/es/plus/productSelect/components/TabsStructure/hooks.js +243 -0
- package/es/plus/productSelect/components/TabsStructure/index.d.ts +5 -0
- package/es/plus/productSelect/components/TabsStructure/index.js +13 -0
- package/es/plus/productSelect/components/TabsStructure/styles.d.ts +47 -0
- package/es/plus/productSelect/components/TabsStructure/styles.js +87 -0
- package/es/plus/productSelect/components/TabsStructure/types.d.ts +105 -0
- package/es/plus/productSelect/components/TabsStructure/types.js +1 -0
- package/es/plus/productSelect/components/TabsStructure/utils.d.ts +12 -0
- package/es/plus/productSelect/components/TabsStructure/utils.js +56 -0
- package/es/plus/productSelect/components/pisellPriceText/index.d.ts +12 -0
- package/es/plus/productSelect/components/pisellPriceText/index.js +44 -0
- package/es/plus/productSelect/components/pisellPriceText/index.less +4 -0
- package/es/plus/productSelect/hooks/useToken.d.ts +18 -0
- package/es/plus/productSelect/hooks/useToken.js +34 -0
- package/es/plus/productSelect/index.d.ts +31 -0
- package/es/plus/productSelect/index.js +270 -0
- package/es/plus/productSelect/index.less +56 -0
- package/es/plus/productSelect/locales.d.ts +18 -0
- package/es/plus/productSelect/locales.js +17 -0
- package/es/plus/productSelect/theme/token.d.ts +17 -0
- package/es/plus/productSelect/theme/token.js +19 -0
- package/es/plus/productSelect/utils.d.ts +39 -0
- package/es/plus/productSelect/utils.js +162 -0
- package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/es/plus/saasCreateOrganization/index.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/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Content/index.js +1 -1
- package/lib/components/appointmentBooking/components/Content/index.less +3 -3
- package/lib/components/appointmentBooking/components/Services/index.js +2 -2
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/index.js +6 -1
- package/lib/components/booking/addons/index.js +1 -11
- package/lib/components/booking/components/footer/index.js +15 -8
- package/lib/components/booking/components/voucher/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info2/service/addTimeModal/index.js +0 -1
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +5 -5
- package/lib/components/eventBooking/components/progressBar/index.js +18 -0
- package/lib/components/eventBooking/index.js +6 -1
- package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +11 -7
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +9 -2
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +6 -2
- package/lib/components/pay/toC/utils.d.ts +1 -1
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -1
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +3 -3
- package/lib/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/wallet/Detail/index.js +3 -3
- package/lib/components/wallet/components/WalletCard.js +1 -1
- package/lib/hooks/useWindowSize.js +6 -1
- package/lib/plus/productSelect/CategoryTabs/CategorySkeleton.d.ts +10 -0
- package/lib/plus/productSelect/CategoryTabs/CategorySkeleton.js +62 -0
- package/lib/plus/productSelect/CategoryTabs/CategorySkeleton.less +30 -0
- package/lib/plus/productSelect/CategoryTabs/index.d.ts +18 -0
- package/lib/plus/productSelect/CategoryTabs/index.js +183 -0
- package/lib/plus/productSelect/ProductCard/ProductCardSkeleton.d.ts +10 -0
- package/lib/plus/productSelect/ProductCard/ProductCardSkeleton.js +58 -0
- package/lib/plus/productSelect/ProductCard/ProductCardSkeleton.less +81 -0
- package/lib/plus/productSelect/ProductCard/index.d.ts +45 -0
- package/lib/plus/productSelect/ProductCard/index.js +184 -0
- package/lib/plus/productSelect/ProductCard/index.less +253 -0
- package/lib/plus/productSelect/ProductList/gridComponents.d.ts +44 -0
- package/lib/plus/productSelect/ProductList/gridComponents.js +148 -0
- package/lib/plus/productSelect/ProductList/index.d.ts +22 -0
- package/lib/plus/productSelect/ProductList/index.js +86 -0
- package/lib/plus/productSelect/ProductList/index.less +0 -0
- package/lib/plus/productSelect/components/IntersectionObserver.d.ts +42 -0
- package/lib/plus/productSelect/components/IntersectionObserver.js +269 -0
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.d.ts +30 -0
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.js +393 -0
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.less +224 -0
- package/lib/plus/productSelect/components/TabsStructure/hooks.d.ts +22 -0
- package/lib/plus/productSelect/components/TabsStructure/hooks.js +209 -0
- package/lib/plus/productSelect/components/TabsStructure/index.d.ts +5 -0
- package/lib/plus/productSelect/components/TabsStructure/index.js +92 -0
- package/lib/plus/productSelect/components/TabsStructure/styles.d.ts +47 -0
- package/lib/plus/productSelect/components/TabsStructure/styles.js +122 -0
- package/lib/plus/productSelect/components/TabsStructure/types.d.ts +105 -0
- package/lib/plus/productSelect/components/TabsStructure/types.js +17 -0
- package/lib/plus/productSelect/components/TabsStructure/utils.d.ts +12 -0
- package/lib/plus/productSelect/components/TabsStructure/utils.js +72 -0
- package/lib/plus/productSelect/components/pisellPriceText/index.d.ts +12 -0
- package/lib/plus/productSelect/components/pisellPriceText/index.js +73 -0
- package/lib/plus/productSelect/components/pisellPriceText/index.less +4 -0
- package/lib/plus/productSelect/hooks/useToken.d.ts +18 -0
- package/lib/plus/productSelect/hooks/useToken.js +50 -0
- package/lib/plus/productSelect/index.d.ts +31 -0
- package/lib/plus/productSelect/index.js +299 -0
- package/lib/plus/productSelect/index.less +56 -0
- package/lib/plus/productSelect/locales.d.ts +18 -0
- package/lib/plus/productSelect/locales.js +41 -0
- package/lib/plus/productSelect/theme/token.d.ts +17 -0
- package/lib/plus/productSelect/theme/token.js +47 -0
- package/lib/plus/productSelect/utils.d.ts +39 -0
- package/lib/plus/productSelect/utils.js +138 -0
- package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
- package/lib/plus/saasCreateOrganization/index.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/saasRegister/components/VertifyEmail.d.ts +1 -0
- package/package.json +4 -4
|
@@ -251,7 +251,7 @@ var Layout = function Layout() {
|
|
|
251
251
|
if (isMobile()) {
|
|
252
252
|
var _header$getBoundingCl, _footer$getBoundingCl;
|
|
253
253
|
var header = document.querySelector('.event-progress-bar');
|
|
254
|
-
var footer = document.querySelector('.pisell-section-footers-wrapper');
|
|
254
|
+
var footer = document.querySelector('.pisell-section-footers-wrapper') || document.querySelector('#layout-footer');
|
|
255
255
|
var content = document.querySelector('.parallel-content-mobile-wrap');
|
|
256
256
|
var headerHeight = (header === null || header === void 0 || (_header$getBoundingCl = header.getBoundingClientRect()) === null || _header$getBoundingCl === void 0 ? void 0 : _header$getBoundingCl.height) || 0;
|
|
257
257
|
var footerHeight = (footer === null || footer === void 0 || (_footer$getBoundingCl = footer.getBoundingClientRect()) === null || _footer$getBoundingCl === void 0 ? void 0 : _footer$getBoundingCl.height) || 0;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
flex: 1;
|
|
8
8
|
|
|
9
9
|
.pisell-product-select-wrapper {
|
|
10
|
-
.pisell-product-
|
|
10
|
+
.pisell-product-select__tabs-wrapper {
|
|
11
11
|
top: 77px !important;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
flex: none;
|
|
51
51
|
|
|
52
52
|
.pisell-product-select-wrapper {
|
|
53
|
-
.pisell-product-
|
|
53
|
+
.pisell-product-select__tabs-wrapper {
|
|
54
54
|
top: 0 !important;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
|
|
98
98
|
.parallel-content-retail-wrap {
|
|
99
99
|
.pisell-product-select-wrapper {
|
|
100
|
-
.pisell-product-
|
|
100
|
+
.pisell-product-select__tabs-wrapper {
|
|
101
101
|
top: 0px !important;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
@@ -16,7 +16,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
16
16
|
import React, { useState, useEffect, forwardRef, useImperativeHandle, useMemo } from 'react';
|
|
17
17
|
import dayjs from 'dayjs';
|
|
18
18
|
import { isMobile, locales } from '@pisell/utils';
|
|
19
|
-
import ProductSelect from "
|
|
19
|
+
import ProductSelect from "../../../../plus/productSelect";
|
|
20
20
|
import useEngineContext from "../../../../hooks/useEngineContext";
|
|
21
21
|
import { useAppointmentBookingContext } from "../../context";
|
|
22
22
|
import { useAppointmentBooking, useAppointmentBookingSetting, useAppointmentBookingProduct, useAppointmentBookingStep } from "../../hooks";
|
|
@@ -240,7 +240,7 @@ var Services = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
240
240
|
var _isMobile = useMemo(function () {
|
|
241
241
|
if (typeof isMobile === 'function') return isMobile();
|
|
242
242
|
return isMobile;
|
|
243
|
-
}, isMobile);
|
|
243
|
+
}, [isMobile]);
|
|
244
244
|
return /*#__PURE__*/React.createElement("div", {
|
|
245
245
|
className: "appointment-service-wrap"
|
|
246
246
|
}, /*#__PURE__*/React.createElement(ProductSelect, {
|
|
@@ -30,10 +30,16 @@ var AppointmentBooking = function AppointmentBooking() {
|
|
|
30
30
|
useEffect(function () {
|
|
31
31
|
var setRealVH = function setRealVH() {
|
|
32
32
|
// window.innerHeight 会返回视口真实的高度(不包括工具栏)
|
|
33
|
-
var
|
|
33
|
+
var height = window.innerHeight;
|
|
34
|
+
|
|
35
|
+
// 检查 URL 参数中是否有 fromTabbar
|
|
36
|
+
var urlParams = new URLSearchParams(window.location.search);
|
|
37
|
+
if (urlParams.has('fromTabbar')) {
|
|
38
|
+
height = height - 54;
|
|
39
|
+
}
|
|
40
|
+
var vh = height * 0.01;
|
|
34
41
|
document.documentElement.style.setProperty('--vh', "".concat(vh, "px"));
|
|
35
42
|
};
|
|
36
|
-
|
|
37
43
|
// 页面加载和窗口大小变化时都重新计算
|
|
38
44
|
setRealVH();
|
|
39
45
|
window.addEventListener('resize', setRealVH);
|
|
@@ -434,13 +434,15 @@ var Addons = Provider(function (props) {
|
|
|
434
434
|
}
|
|
435
435
|
});
|
|
436
436
|
}
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
437
|
+
/*
|
|
438
|
+
if (state.channelDisabledEdit) {
|
|
439
|
+
modal.warning({
|
|
440
|
+
okText: locales.getText('pisell2.text.ok'),
|
|
441
|
+
content: locales.getText('pisell2.text.terminal-edit-message'),
|
|
442
|
+
});
|
|
443
|
+
return;
|
|
444
|
+
}
|
|
445
|
+
*/
|
|
444
446
|
getProducts();
|
|
445
447
|
setSearch('');
|
|
446
448
|
dispatch({
|
|
@@ -496,9 +498,11 @@ var Addons = Provider(function (props) {
|
|
|
496
498
|
if (state.disabledEdit) {
|
|
497
499
|
return;
|
|
498
500
|
}
|
|
501
|
+
/*
|
|
499
502
|
if (state.channelDisabledEdit) {
|
|
500
503
|
return;
|
|
501
504
|
}
|
|
505
|
+
*/
|
|
502
506
|
var isSession = isSessionProduct(item);
|
|
503
507
|
state.action({
|
|
504
508
|
type: 'pisell1.handleOpenProductModal',
|
|
@@ -560,7 +564,7 @@ var Addons = Provider(function (props) {
|
|
|
560
564
|
}
|
|
561
565
|
}, state.addons.value.map(function (d) {
|
|
562
566
|
return /*#__PURE__*/React.createElement(ProductItem, {
|
|
563
|
-
disabled: state.disabledEdit
|
|
567
|
+
disabled: state.disabledEdit,
|
|
564
568
|
item: d,
|
|
565
569
|
key: d.id,
|
|
566
570
|
amountSymbol: state.amountSymbol,
|
|
@@ -25,7 +25,7 @@ import classNames from 'classnames';
|
|
|
25
25
|
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
26
26
|
import useEngineContext from "../../../../hooks/useEngineContext";
|
|
27
27
|
import { formatProducts } from "../../addons";
|
|
28
|
-
import { getIsSubjectRequire, isDayBooking, isHasDayAppointmentProduct } from "../../info/service2/utils";
|
|
28
|
+
import { getIsSubjectRequire, isDayBooking, isEventBooking, isHasDayAppointmentProduct } from "../../info/service2/utils";
|
|
29
29
|
import { createBookings, editBookings } from "../../info2/serve";
|
|
30
30
|
import AppointmentProductModal from "./AppointmentProductModal";
|
|
31
31
|
import FooterMenus from "./FooterMenus";
|
|
@@ -942,9 +942,21 @@ var Footer = function Footer(props) {
|
|
|
942
942
|
}
|
|
943
943
|
}, [state.bookingDetail, total.notPaidAmount]);
|
|
944
944
|
var _buttons = useMemo(function () {
|
|
945
|
+
var isEvent = isEventBooking(state);
|
|
946
|
+
|
|
945
947
|
// 如果预约是取消状态,则不展示任何按钮
|
|
946
|
-
|
|
947
|
-
|
|
948
|
+
if (state.appointment_status === 'cancelled') {
|
|
949
|
+
return [buttonMap.rebook];
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
// 如果订单已退款 | 部分退款
|
|
953
|
+
if (paymentRefundedStatus) {
|
|
954
|
+
// 如果是活动预约, 则不展示任何按钮
|
|
955
|
+
if (isEvent) {
|
|
956
|
+
return [''];
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
// 显示再次预约按钮
|
|
948
960
|
return [buttonMap.rebook];
|
|
949
961
|
}
|
|
950
962
|
|
|
@@ -1104,17 +1116,15 @@ var Footer = function Footer(props) {
|
|
|
1104
1116
|
var totalText = useMemo(function () {
|
|
1105
1117
|
var str = '';
|
|
1106
1118
|
|
|
1119
|
+
// 有退款金额时, 直接展示 退款:$8.00
|
|
1120
|
+
if (total.totalRefundAmount > 0) {
|
|
1121
|
+
return "".concat(locales.getText('pisell2.text.refunded-amount'), ": ").concat(formatAmount(total.totalRefundAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || '$'));
|
|
1122
|
+
}
|
|
1107
1123
|
// 只有定金支付时,直接展示
|
|
1108
1124
|
if (isOnlyDeposit) {
|
|
1109
1125
|
var _state$bookingDetail12;
|
|
1110
1126
|
return "".concat(locales.getText('pisell2.text.deposit-paid'), " ").concat(formatAmount(state === null || state === void 0 || (_state$bookingDetail12 = state.bookingDetail) === null || _state$bookingDetail12 === void 0 ? void 0 : _state$bookingDetail12.deposit_paid_amount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || '$'), " ").concat(total.duration ? "(".concat(total.duration, ")") : '');
|
|
1111
1127
|
}
|
|
1112
|
-
|
|
1113
|
-
// 有退款金额时, 直接展示 退款:$8.00
|
|
1114
|
-
if (total.totalRefundAmount > 0) {
|
|
1115
|
-
return "".concat(locales.getText('pisell2.text.refunded-amount'), ": ").concat(formatAmount(total.totalRefundAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || '$'));
|
|
1116
|
-
}
|
|
1117
|
-
|
|
1118
1128
|
// 如果待支付金额小于0 则展示全额支付
|
|
1119
1129
|
if (total.notPaidAmount <= 0 && state.bookingId) {
|
|
1120
1130
|
str = "".concat(locales.getText('pisell1.text.fully-paid'), ": ").concat(formatAmount(total.sumTotalAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || '$'));
|
|
@@ -272,7 +272,6 @@ var AddTimeModal = function AddTimeModal() {
|
|
|
272
272
|
case 3:
|
|
273
273
|
newList = _context2.sent;
|
|
274
274
|
list = newList.map(function (d) {
|
|
275
|
-
debugger;
|
|
276
275
|
// 是否可用
|
|
277
276
|
var isUsable = isUsableProduct(d.add_time, state.service.cacheItem);
|
|
278
277
|
return _objectSpread(_objectSpread({}, d), {}, {
|
|
@@ -9,7 +9,7 @@ import { PosProps } from './const';
|
|
|
9
9
|
*/
|
|
10
10
|
declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
|
|
11
11
|
className?: string | undefined;
|
|
12
|
-
onChange?: ((status: "
|
|
12
|
+
onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
|
13
13
|
[keys: string]: unknown;
|
|
14
14
|
} | undefined, other?: any) => void) | undefined;
|
|
15
15
|
onClose: () => void;
|
|
@@ -11,7 +11,7 @@ import './device.less';
|
|
|
11
11
|
declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
|
|
12
12
|
api: PayProps['api'];
|
|
13
13
|
className?: string | undefined;
|
|
14
|
-
onChange?: ((status: "
|
|
14
|
+
onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
|
15
15
|
[keys: string]: unknown;
|
|
16
16
|
} | undefined, other?: any) => void) | undefined;
|
|
17
17
|
onClose: () => void;
|
|
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
|
|
|
15
15
|
readonly numRef: React.MutableRefObject<string | number | undefined>;
|
|
16
16
|
readonly orderIdRef: React.MutableRefObject<string | number>;
|
|
17
17
|
readonly modeRef: React.MutableRefObject<ModeEnum>;
|
|
18
|
-
readonly statusRef: React.MutableRefObject<"
|
|
18
|
+
readonly statusRef: React.MutableRefObject<"loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question">;
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
|
22
|
-
readonly eftposRef: React.MutableRefObject<"
|
|
22
|
+
readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
|
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
|
25
25
|
};
|
|
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
|
|
|
174
174
|
export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
|
|
175
175
|
type: EActionTypes;
|
|
176
176
|
payload: {
|
|
177
|
-
status: "
|
|
177
|
+
status: "loading" | "warn" | "success" | "fail" | "question";
|
|
178
178
|
};
|
|
179
179
|
};
|
|
180
180
|
/**
|
|
@@ -297,18 +297,18 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
|
297
297
|
amount?: string | number | undefined;
|
|
298
298
|
mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
|
|
299
299
|
order_id?: string | number | undefined;
|
|
300
|
-
eftpos?: "
|
|
301
|
-
action?: "amount" | "
|
|
300
|
+
eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
|
|
301
|
+
action?: "amount" | "pay" | "deviceList" | undefined;
|
|
302
302
|
key?: number | undefined;
|
|
303
303
|
step?: number | undefined;
|
|
304
304
|
title?: string | undefined;
|
|
305
305
|
subTitle?: string | undefined;
|
|
306
|
-
type?: "
|
|
306
|
+
type?: "unset" | "step" | undefined;
|
|
307
307
|
render?: boolean | undefined;
|
|
308
308
|
net?: boolean | undefined;
|
|
309
309
|
component?: string | undefined;
|
|
310
310
|
form?: string | undefined;
|
|
311
|
-
status?: "
|
|
311
|
+
status?: "loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
|
|
312
312
|
warn?: string | undefined;
|
|
313
313
|
steps?: {
|
|
314
314
|
/** 用于重置当前步骤 */
|
|
@@ -61,6 +61,26 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
61
61
|
var handleOk = function handleOk() {
|
|
62
62
|
var _interaction$utils, _interaction$utils$is;
|
|
63
63
|
if (interaction !== null && interaction !== void 0 && (_interaction$utils = interaction.utils) !== null && _interaction$utils !== void 0 && (_interaction$utils$is = _interaction$utils.isAppEnv) !== null && _interaction$utils$is !== void 0 && _interaction$utils$is.call(_interaction$utils)) {
|
|
64
|
+
var url = window.location.href;
|
|
65
|
+
|
|
66
|
+
// 如果 url中包含 isByTabbar 删除url中的cacheId 并刷新页面
|
|
67
|
+
if (url.includes('isByTabbar')) {
|
|
68
|
+
removeSessionStorage === null || removeSessionStorage === void 0 || removeSessionStorage();
|
|
69
|
+
var urlParams = new URLSearchParams(window.location.search);
|
|
70
|
+
urlParams.delete('cacheId');
|
|
71
|
+
setOpen(false);
|
|
72
|
+
interaction.utils.postMessageToApp({
|
|
73
|
+
module: 'global',
|
|
74
|
+
key: 'openNative',
|
|
75
|
+
data: {
|
|
76
|
+
link: {
|
|
77
|
+
page: "home"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
window.location.href = window.location.pathname + '?' + urlParams.toString();
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
64
84
|
interaction.utils.postMessageToApp({
|
|
65
85
|
module: 'global',
|
|
66
86
|
key: 'paymentResultAction',
|
|
@@ -61,7 +61,14 @@ var Content = function Content() {
|
|
|
61
61
|
useEffect(function () {
|
|
62
62
|
var setRealVH = function setRealVH() {
|
|
63
63
|
// window.innerHeight 会返回视口真实的高度(不包括工具栏)
|
|
64
|
-
var
|
|
64
|
+
var height = window.innerHeight;
|
|
65
|
+
|
|
66
|
+
// 检查 URL 参数中是否有 formTabbar
|
|
67
|
+
var urlParams = new URLSearchParams(window.location.search);
|
|
68
|
+
if (urlParams.has('formTabbar')) {
|
|
69
|
+
height = height - 54;
|
|
70
|
+
}
|
|
71
|
+
var vh = height * 0.01;
|
|
65
72
|
document.documentElement.style.setProperty('--vh', "".concat(vh, "px"));
|
|
66
73
|
};
|
|
67
74
|
|
|
@@ -15,7 +15,7 @@ import ThreedsLoading from "../MWCreditCard/TDSPay/ThreedsLoading";
|
|
|
15
15
|
import { Context } from "../../model";
|
|
16
16
|
import { getPayGroupParamsFromStorage } from "../../payGroup";
|
|
17
17
|
import useEngineContext from "../../../../../hooks/useEngineContext";
|
|
18
|
-
import { formatFranchiseeRoute } from "../../utils";
|
|
18
|
+
import { clientPayment, formatFranchiseeRoute } from "../../utils";
|
|
19
19
|
/**
|
|
20
20
|
* @title: 谷歌支付
|
|
21
21
|
* @description:
|
|
@@ -26,7 +26,7 @@ import { formatFranchiseeRoute } from "../../utils";
|
|
|
26
26
|
* @Date: 2024-08-16 11:01
|
|
27
27
|
*/
|
|
28
28
|
var GooglePay = function GooglePay(props, ref) {
|
|
29
|
-
var _context$appHelper;
|
|
29
|
+
var _context$appHelper, _context$appHelper2;
|
|
30
30
|
var _useContext = useContext(Context),
|
|
31
31
|
state = _useContext.state;
|
|
32
32
|
var _useState = useState(false),
|
|
@@ -36,6 +36,8 @@ var GooglePay = function GooglePay(props, ref) {
|
|
|
36
36
|
var context = useEngineContext();
|
|
37
37
|
var _ref = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.constants) || {},
|
|
38
38
|
config = _ref.config;
|
|
39
|
+
var _context$appHelper$ut = (_context$appHelper2 = context.appHelper) === null || _context$appHelper2 === void 0 ? void 0 : _context$appHelper2.utils,
|
|
40
|
+
interaction = _context$appHelper$ut.interaction;
|
|
39
41
|
|
|
40
42
|
/**
|
|
41
43
|
* @title: 初始化
|
|
@@ -47,23 +49,34 @@ var GooglePay = function GooglePay(props, ref) {
|
|
|
47
49
|
*/
|
|
48
50
|
var init = /*#__PURE__*/function () {
|
|
49
51
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref2) {
|
|
50
|
-
var _utils$getStore;
|
|
52
|
+
var _utils$getStore, _interaction$utils, _interaction$utils$is, _interaction$utils2, _interaction$utils2$i;
|
|
51
53
|
var payGroup, utils, dvaStore, values, _dvaStore$core, _dvaStore$core2, _state$payGroup, locale, shopId, currentURL, linkElement, shop_domain, _href;
|
|
52
54
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
53
55
|
while (1) switch (_context.prev = _context.next) {
|
|
54
56
|
case 0:
|
|
55
57
|
payGroup = _ref2.payGroup;
|
|
56
|
-
setOpen(true);
|
|
57
58
|
utils = context.appHelper.utils || {};
|
|
58
59
|
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(); // 获取交易组
|
|
59
60
|
values = getPayGroupParamsFromStorage(payGroup.order_id);
|
|
61
|
+
if (!(interaction !== null && interaction !== void 0 && (_interaction$utils = interaction.utils) !== null && _interaction$utils !== void 0 && (_interaction$utils$is = _interaction$utils.isAppEnv) !== null && _interaction$utils$is !== void 0 && _interaction$utils$is.call(_interaction$utils) && (interaction === null || interaction === void 0 || (_interaction$utils2 = interaction.utils) === null || _interaction$utils2 === void 0 || (_interaction$utils2$i = _interaction$utils2.isAndroid_ios) === null || _interaction$utils2$i === void 0 ? void 0 : _interaction$utils2$i.call(_interaction$utils2)) === 'android')) {
|
|
62
|
+
_context.next = 6;
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
return _context.abrupt("return", clientPayment({
|
|
66
|
+
order_id: payGroup.order_id,
|
|
67
|
+
type: 'google_pay',
|
|
68
|
+
values: values,
|
|
69
|
+
interaction: interaction
|
|
70
|
+
}));
|
|
71
|
+
case 6:
|
|
72
|
+
setOpen(true);
|
|
60
73
|
if (values) {
|
|
61
|
-
_context.next =
|
|
74
|
+
_context.next = 10;
|
|
62
75
|
break;
|
|
63
76
|
}
|
|
64
77
|
setOpen(false);
|
|
65
78
|
return _context.abrupt("return");
|
|
66
|
-
case
|
|
79
|
+
case 10:
|
|
67
80
|
try {
|
|
68
81
|
locale = ((_dvaStore$core = dvaStore.core) === null || _dvaStore$core === void 0 ? void 0 : _dvaStore$core.translateLocale) || 'en';
|
|
69
82
|
shopId = (_dvaStore$core2 = dvaStore.core) === null || _dvaStore$core2 === void 0 || (_dvaStore$core2 = _dvaStore$core2.core) === null || _dvaStore$core2 === void 0 || (_dvaStore$core2 = _dvaStore$core2.shop) === null || _dvaStore$core2 === void 0 ? void 0 : _dvaStore$core2.id;
|
|
@@ -78,7 +91,7 @@ var GooglePay = function GooglePay(props, ref) {
|
|
|
78
91
|
} catch (err) {
|
|
79
92
|
setOpen(false);
|
|
80
93
|
}
|
|
81
|
-
case
|
|
94
|
+
case 11:
|
|
82
95
|
case "end":
|
|
83
96
|
return _context.stop();
|
|
84
97
|
}
|
|
@@ -10,6 +10,7 @@ export interface WalletPassListProps {
|
|
|
10
10
|
walletSetting: {
|
|
11
11
|
name: string;
|
|
12
12
|
};
|
|
13
|
+
onChangeDebounce?: boolean;
|
|
13
14
|
}
|
|
14
15
|
export declare type WalletPassListRef = {
|
|
15
16
|
init: (params: MachineCodeListParams, formatList?: (val: WalletPassDataType[]) => WalletPassDataType[]) => void;
|
|
@@ -20,7 +20,10 @@ var WalletPassList = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
20
20
|
onChange = props.onChange,
|
|
21
21
|
propsData = props.data,
|
|
22
22
|
value = props.value,
|
|
23
|
-
walletSetting = props.walletSetting
|
|
23
|
+
walletSetting = props.walletSetting,
|
|
24
|
+
onLoadingChange = props.onLoadingChange,
|
|
25
|
+
propsLoading = props.loading,
|
|
26
|
+
onChangeDebounce = props.onChangeDebounce;
|
|
24
27
|
var _useState = useState(propsData || []),
|
|
25
28
|
_useState2 = _slicedToArray(_useState, 2),
|
|
26
29
|
data = _useState2[0],
|
|
@@ -34,6 +37,9 @@ var WalletPassList = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
34
37
|
setData(propsData);
|
|
35
38
|
}
|
|
36
39
|
}, [propsData]);
|
|
40
|
+
useEffect(function () {
|
|
41
|
+
setLoading(!!propsLoading);
|
|
42
|
+
}, [propsLoading]);
|
|
37
43
|
var getList = /*#__PURE__*/function () {
|
|
38
44
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params, formatList) {
|
|
39
45
|
var list;
|
|
@@ -84,6 +90,9 @@ var WalletPassList = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
84
90
|
init: init
|
|
85
91
|
};
|
|
86
92
|
});
|
|
93
|
+
useEffect(function () {
|
|
94
|
+
onLoadingChange === null || onLoadingChange === void 0 || onLoadingChange(loading);
|
|
95
|
+
}, [loading]);
|
|
87
96
|
|
|
88
97
|
/**
|
|
89
98
|
* 拆分出可用的和不可用的列表
|
|
@@ -131,7 +140,8 @@ var WalletPassList = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
131
140
|
value: value,
|
|
132
141
|
onChange: handleChange,
|
|
133
142
|
showEmpty: data.length === 0,
|
|
134
|
-
empty: empty
|
|
143
|
+
empty: empty,
|
|
144
|
+
onChangeDebounce: onChangeDebounce
|
|
135
145
|
}), !!disabledList.length && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
136
146
|
className: "pisell-walletPass-list-disabled"
|
|
137
147
|
}, locales.getText('tocPay.text.walletPassDisabled')), /*#__PURE__*/React.createElement(PisellCardList, {
|
|
@@ -42,41 +42,45 @@ var WalletPass = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
42
42
|
setCurrentWalletPass = _useState2[1];
|
|
43
43
|
var _useState3 = useState(false),
|
|
44
44
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
/** 搜索 modal */
|
|
45
|
+
loading = _useState4[0],
|
|
46
|
+
setLoading = _useState4[1];
|
|
49
47
|
var _useState5 = useState(false),
|
|
50
48
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
open = _useState6[0],
|
|
50
|
+
setOpen = _useState6[1];
|
|
53
51
|
|
|
54
|
-
/**
|
|
55
|
-
var _useState7 = useState(
|
|
52
|
+
/** 搜索 modal */
|
|
53
|
+
var _useState7 = useState(false),
|
|
56
54
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
57
|
-
|
|
58
|
-
|
|
55
|
+
searchOpen = _useState8[0],
|
|
56
|
+
setSearchOpen = _useState8[1];
|
|
59
57
|
|
|
60
|
-
/**
|
|
61
|
-
var _useState9 = useState(
|
|
58
|
+
/** 搜索后添加的walletPass */
|
|
59
|
+
var _useState9 = useState([]),
|
|
62
60
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
addList = _useState10[0],
|
|
62
|
+
setAddList = _useState10[1];
|
|
65
63
|
|
|
66
|
-
/**
|
|
67
|
-
var _useState11 = useState(
|
|
64
|
+
/** 当前order信息 */
|
|
65
|
+
var _useState11 = useState(null),
|
|
68
66
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
order = _useState12[0],
|
|
68
|
+
setOrder = _useState12[1];
|
|
69
|
+
|
|
70
|
+
/** 当前搜索modal内list数据 */
|
|
71
|
+
var _useState13 = useState([]),
|
|
72
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
73
|
+
searchData = _useState14[0],
|
|
74
|
+
setSearchData = _useState14[1];
|
|
71
75
|
|
|
72
76
|
/** 当前搜索modal内选中数据 */
|
|
73
|
-
var
|
|
77
|
+
var _useState15 = useState({
|
|
74
78
|
ids: [],
|
|
75
79
|
details: []
|
|
76
80
|
}),
|
|
77
|
-
|
|
78
|
-
searchSelectData =
|
|
79
|
-
setSearchSelectData =
|
|
81
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
82
|
+
searchSelectData = _useState16[0],
|
|
83
|
+
setSearchSelectData = _useState16[1];
|
|
80
84
|
|
|
81
85
|
/** 是否默认选中 搜索时默认选中 列表select变更更新列表时不默认选中 */
|
|
82
86
|
var isAutoSelect = useRef(false);
|
|
@@ -361,13 +365,16 @@ var WalletPass = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
361
365
|
data: otherCustomerWalletPassList,
|
|
362
366
|
title: locales.getText('tocPay.text.couponCodesAdded'),
|
|
363
367
|
onChange: handleOtherChange,
|
|
364
|
-
value: selectValue
|
|
368
|
+
value: selectValue,
|
|
369
|
+
loading: loading,
|
|
370
|
+
onChangeDebounce: true
|
|
365
371
|
}), /*#__PURE__*/React.createElement(List, {
|
|
366
372
|
walletSetting: walletSetting,
|
|
367
373
|
title: walletSetting.name,
|
|
368
374
|
onChange: handleCurrentChange,
|
|
369
375
|
ref: listRef,
|
|
370
|
-
value: selectValue
|
|
376
|
+
value: selectValue,
|
|
377
|
+
onLoadingChange: setLoading
|
|
371
378
|
}))), /*#__PURE__*/React.createElement(PisellModal, {
|
|
372
379
|
title: /*#__PURE__*/React.createElement("div", null, locales.getText('tocPay.text.searchResult')),
|
|
373
380
|
mobileModalHeight: '90%',
|
|
@@ -51,7 +51,7 @@ export declare const formatFranchiseeRoute: (url: string, history?: any) => stri
|
|
|
51
51
|
export declare const getAvailableMaxAmount: (data: WalletPassDataType) => string;
|
|
52
52
|
export declare const clientPayment: (params: {
|
|
53
53
|
order_id: number;
|
|
54
|
-
type: "aliPay" | "wxPay";
|
|
54
|
+
type: "aliPay" | "wxPay" | 'google_pay';
|
|
55
55
|
values: any;
|
|
56
56
|
interaction?: any;
|
|
57
57
|
}) => void;
|
|
@@ -27,7 +27,7 @@ import { holderId, isDaysBooking, isNormalProductByDurationSchedule } from "../.
|
|
|
27
27
|
import { getIsBundleOrCombination, isBooking4Shop } from "../../../booking/info/utils";
|
|
28
28
|
import { getProductDetail } from "../../../booking/info/service/serve";
|
|
29
29
|
import { useService } from "../../../booking/info/service/serviceManager";
|
|
30
|
-
import ProductSelect from "
|
|
30
|
+
import ProductSelect from "../../../../plus/productSelect";
|
|
31
31
|
import "./index.less";
|
|
32
32
|
import { addService, addServiceScroll, createSimpleCacheItem, genServiceKey, getIsShowNumber, isSameProduct } from "../../utils";
|
|
33
33
|
import NotAvailable from "../notAvailable";
|
|
@@ -584,8 +584,8 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
584
584
|
isTitle: 1,
|
|
585
585
|
isSubtitle: 1,
|
|
586
586
|
isPrice: 1,
|
|
587
|
-
isOriginPrice:
|
|
588
|
-
isStock:
|
|
587
|
+
isOriginPrice: 0,
|
|
588
|
+
isStock: 0
|
|
589
589
|
}
|
|
590
590
|
}), /*#__PURE__*/React.createElement(NotAvailable, {
|
|
591
591
|
ref: notAvailableRef
|
|
@@ -30,7 +30,7 @@ var Text = Typography.Text;
|
|
|
30
30
|
dayjs.extend(timezone);
|
|
31
31
|
dayjs.extend(utc);
|
|
32
32
|
var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
33
|
-
var _context$appHelper, _utils$getStore, _dvaStore$core, _context$appHelper2, _store$getState, _detail$machinecode_c;
|
|
33
|
+
var _context$appHelper, _utils$getStore, _dvaStore$core, _context$appHelper2, _store$getState, _utils$interaction, _utils$interaction$is, _detail$machinecode_c;
|
|
34
34
|
var _props$detail = props.detail,
|
|
35
35
|
detail = _props$detail === void 0 ? {} : _props$detail,
|
|
36
36
|
_props$buttonGroupLis = props.buttonGroupList,
|
|
@@ -817,7 +817,7 @@ var Detail = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
817
817
|
return /*#__PURE__*/React.createElement("div", {
|
|
818
818
|
className: "wallet-detail".concat(platform === 'h5' ? ' wallet-detail-h5' : ' wallet-detail-pc', " ").concat(className || ''),
|
|
819
819
|
ref: detailWrapperRef
|
|
820
|
-
}, (platform === 'h5' || showWalletBar) && /*#__PURE__*/React.createElement("div", {
|
|
820
|
+
}, (platform === 'h5' || showWalletBar) && !(utils !== null && utils !== void 0 && (_utils$interaction = utils.interaction) !== null && _utils$interaction !== void 0 && (_utils$interaction = _utils$interaction.utils) !== null && _utils$interaction !== void 0 && (_utils$interaction$is = _utils$interaction.isAppEnv) !== null && _utils$interaction$is !== void 0 && _utils$interaction$is.call(_utils$interaction)) && /*#__PURE__*/React.createElement("div", {
|
|
821
821
|
className: "wallet-detail-header"
|
|
822
822
|
}, /*#__PURE__*/React.createElement(WalletBar, {
|
|
823
823
|
setup: "detail",
|
|
@@ -62,8 +62,9 @@ var WalletCard = function WalletCard(_ref) {
|
|
|
62
62
|
disabled: isDisabled,
|
|
63
63
|
showDisabledReason: isDisabled,
|
|
64
64
|
disabledReason: disabledReason,
|
|
65
|
-
|
|
66
|
-
marginBottom: 16
|
|
65
|
+
style: {
|
|
66
|
+
marginBottom: 16,
|
|
67
|
+
width: '100%'
|
|
67
68
|
},
|
|
68
69
|
showBalanceSymbol: !['point_card', 'good_pass'].includes(tag),
|
|
69
70
|
active: isActive,
|
|
@@ -7,7 +7,14 @@ export var useWindowSize = function useWindowSize() {
|
|
|
7
7
|
var timeoutId;
|
|
8
8
|
var setRealVH = function setRealVH() {
|
|
9
9
|
// window.innerHeight 会返回视口真实的高度(不包括工具栏)
|
|
10
|
-
var
|
|
10
|
+
var height = window.innerHeight;
|
|
11
|
+
|
|
12
|
+
// 检查 URL 参数中是否有 formTabbar
|
|
13
|
+
var urlParams = new URLSearchParams(window.location.search);
|
|
14
|
+
if (urlParams.has('formTabbar')) {
|
|
15
|
+
height = height - 54;
|
|
16
|
+
}
|
|
17
|
+
var vh = height * 0.01;
|
|
11
18
|
document.documentElement.style.setProperty('--vh', "".concat(vh, "px"));
|
|
12
19
|
};
|
|
13
20
|
var debouncedHandleResize = function debouncedHandleResize() {
|