@pisell/private-materials 3.3.64 → 3.3.65
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 +7 -7
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +6 -6
- package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
- package/es/components/appointmentBooking/components/Voucher/index.less +2 -0
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
- package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
- package/es/components/appointmentBooking/index.d.ts +1 -0
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/es/components/booking/components/footer/index.js +15 -30
- package/es/components/booking/components/voucher/index.d.ts +1 -0
- package/es/components/booking/components/voucher/index.less +1 -0
- package/es/components/booking/forms/footer.d.ts +1 -0
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/es/components/booking/hooks/useClearCart.d.ts +1 -0
- package/es/components/booking/info/dateRange/index.d.ts +1 -0
- package/es/components/booking/info/service/addService/index.d.ts +1 -0
- package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/es/components/booking/info/service/serviceItem/index.d.ts +1 -0
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/editService/index.js +9 -13
- package/es/components/booking/info2/service/serviceItem/index.d.ts +1 -0
- package/es/components/booking/info2/utilsByBooking.js +10 -17
- package/es/components/booking/utils.js +4 -10
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/es/components/eftposPay/component/fail/index.d.ts +1 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/index.d.ts +1 -0
- package/es/components/eftposPay/pay.d.ts +1 -0
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +1 -0
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/timeResourceSelector/index.less +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/index.js +4 -5
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
- package/es/components/productSelect/components/TabProduct/index.d.ts +1 -0
- package/es/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/es/components/ruleSetting/index.d.ts +1 -0
- package/es/components/schedules/calendar/index.less +152 -158
- package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +10 -12
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/es/components/ticketBooking/components/ticketBooking/index.js +9 -135
- package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/es/components/ticketBooking/locales.d.ts +146 -164
- package/es/components/ticketBooking/locales.js +147 -195
- package/es/components/ticketBooking/serve.d.ts +0 -5
- package/es/components/ticketBooking/serve.js +0 -27
- package/es/components/wallet/DiscountCard/index.less +1 -0
- package/es/components/wallet/PointCard/index.less +1 -0
- package/es/components/wallet/RechargeableCard/index.less +9 -5
- package/es/components/wallet/Voucher/index.less +1 -0
- package/es/components/wallet/index.less +4 -0
- package/es/components/walletList/index.js +7 -55
- package/es/components/walletList/index.less +15 -17
- package/es/components/walletList/serve.d.ts +0 -8
- package/es/components/walletList/serve.js +0 -38
- package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
- package/lib/components/appointmentBooking/components/Voucher/index.less +2 -0
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
- package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
- package/lib/components/appointmentBooking/index.d.ts +1 -0
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
- package/lib/components/booking/components/footer/index.js +2 -14
- package/lib/components/booking/components/voucher/index.d.ts +1 -0
- package/lib/components/booking/components/voucher/index.less +1 -0
- package/lib/components/booking/forms/footer.d.ts +1 -0
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
- package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
- package/lib/components/booking/info/dateRange/index.d.ts +1 -0
- package/lib/components/booking/info/service/addService/index.d.ts +1 -0
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
- package/lib/components/booking/info/service/serviceItem/index.d.ts +1 -0
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/editService/index.js +3 -7
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +1 -0
- package/lib/components/booking/info2/utilsByBooking.js +9 -7
- package/lib/components/booking/utils.js +3 -7
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/index.d.ts +1 -0
- package/lib/components/eftposPay/pay.d.ts +1 -0
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +1 -0
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/timeResourceSelector/index.less +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/index.js +9 -10
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
- package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
- package/lib/components/productSelect/components/TabProduct/index.d.ts +1 -0
- package/lib/components/productSelect/components/productGroup/index.d.ts +1 -0
- package/lib/components/ruleSetting/index.d.ts +1 -0
- package/lib/components/schedules/calendar/index.less +152 -158
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
- package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +3 -5
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.js +8 -134
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/lib/components/ticketBooking/locales.d.ts +146 -164
- package/lib/components/ticketBooking/locales.js +4 -22
- package/lib/components/ticketBooking/serve.d.ts +0 -5
- package/lib/components/ticketBooking/serve.js +2 -8
- package/lib/components/wallet/DiscountCard/index.less +1 -0
- package/lib/components/wallet/PointCard/index.less +1 -0
- package/lib/components/wallet/RechargeableCard/index.less +9 -5
- package/lib/components/wallet/Voucher/index.less +1 -0
- package/lib/components/wallet/index.less +4 -0
- package/lib/components/walletList/index.js +14 -42
- package/lib/components/walletList/index.less +15 -17
- package/lib/components/walletList/serve.d.ts +0 -8
- package/lib/components/walletList/serve.js +2 -15
- package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
- package/package.json +3 -3
- package/es/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
- package/es/components/ticketBooking/utils/formatProductMessage.js +0 -53
- package/es/components/ticketBooking/utils/formatTime.d.ts +0 -31
- package/es/components/ticketBooking/utils/formatTime.js +0 -144
- package/es/components/walletList/locales.d.ts +0 -18
- package/es/components/walletList/locales.js +0 -17
- package/es/components/walletList/status.d.ts +0 -38
- package/es/components/walletList/status.js +0 -47
- package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +0 -2
- package/lib/components/ticketBooking/utils/formatProductMessage.js +0 -76
- package/lib/components/ticketBooking/utils/formatTime.d.ts +0 -31
- package/lib/components/ticketBooking/utils/formatTime.js +0 -139
- package/lib/components/walletList/locales.d.ts +0 -18
- package/lib/components/walletList/locales.js +0 -41
- package/lib/components/walletList/status.d.ts +0 -38
- package/lib/components/walletList/status.js +0 -66
|
@@ -21,11 +21,9 @@ import { Provider, Context } from "./model";
|
|
|
21
21
|
import { WalletCard, Carousel } from '@pisell/materials';
|
|
22
22
|
import { LeftOutlined, RightOutlined } from '@ant-design/icons';
|
|
23
23
|
import useEngineContext from "./../../hooks/useEngineContext";
|
|
24
|
-
import { getWalletList, getWalletBalance
|
|
25
|
-
import { locales
|
|
24
|
+
import { getWalletList, getWalletBalance } from "./serve";
|
|
25
|
+
import { locales } from '@pisell/utils';
|
|
26
26
|
import { request } from "./../../utils";
|
|
27
|
-
import { defaultWalletGuideConfig } from "./status";
|
|
28
|
-
import localeTexts from "./locales";
|
|
29
27
|
import "./index.less";
|
|
30
28
|
import classNames from 'classnames';
|
|
31
29
|
// 导入所有类型
|
|
@@ -122,7 +120,7 @@ var DEFAULT_WALLET_CARD = {
|
|
|
122
120
|
original: 'Level',
|
|
123
121
|
'zh-CN': 'Level',
|
|
124
122
|
'zh-HK': 'Level',
|
|
125
|
-
en: 'Level'
|
|
123
|
+
'en': 'Level'
|
|
126
124
|
},
|
|
127
125
|
metadata: {
|
|
128
126
|
barcodetype: 'barCode',
|
|
@@ -152,7 +150,7 @@ var WalletList = Provider(function (props) {
|
|
|
152
150
|
constants = _ref.constants,
|
|
153
151
|
utils = _ref.utils;
|
|
154
152
|
var dvaStore = utils === null || utils === void 0 || (_utils$getStore = utils.getStore) === null || _utils$getStore === void 0 || (_utils$getStore = _utils$getStore.call(utils)) === null || _utils$getStore === void 0 ? void 0 : _utils$getStore.getState();
|
|
155
|
-
locales.init(
|
|
153
|
+
locales.init({}, (dvaStore === null || dvaStore === void 0 || (_dvaStore$core = dvaStore.core) === null || _dvaStore$core === void 0 ? void 0 : _dvaStore$core.translateLocale) || 'en');
|
|
156
154
|
// 添加组件挂载状态引用
|
|
157
155
|
var isMountedRef = useRef(true);
|
|
158
156
|
var carouselRef = useRef(null);
|
|
@@ -166,15 +164,9 @@ var WalletList = Provider(function (props) {
|
|
|
166
164
|
_useState2 = _slicedToArray(_useState, 2),
|
|
167
165
|
currentIndex = _useState2[0],
|
|
168
166
|
setCurrentIndex = _useState2[1];
|
|
169
|
-
// 店铺wallet pass列表
|
|
170
|
-
var _useState3 = useState([]),
|
|
171
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
172
|
-
walletShopList = _useState4[0],
|
|
173
|
-
setWalletShopList = _useState4[1];
|
|
174
167
|
|
|
175
168
|
// 添加一个请求ID引用,用于去重
|
|
176
169
|
var requestIdRef = useRef('');
|
|
177
|
-
var pubsub = utils === null || utils === void 0 ? void 0 : utils.pubsub;
|
|
178
170
|
|
|
179
171
|
//获取登录状态
|
|
180
172
|
var isUserLoggedIn = useMemo(function () {
|
|
@@ -196,27 +188,6 @@ var WalletList = Provider(function (props) {
|
|
|
196
188
|
request.setRequest(utils.request);
|
|
197
189
|
}
|
|
198
190
|
}, [utils === null || utils === void 0 ? void 0 : utils.request]);
|
|
199
|
-
useEffect(function () {
|
|
200
|
-
if (isUserLoggedIn) {
|
|
201
|
-
// 获取店铺wallet pass列表
|
|
202
|
-
getWalletShopList({
|
|
203
|
-
skip: 1,
|
|
204
|
-
num: 50
|
|
205
|
-
}).then(function (res) {
|
|
206
|
-
pubsub.publish('wallet:shopList', res);
|
|
207
|
-
});
|
|
208
|
-
|
|
209
|
-
// 订阅
|
|
210
|
-
var subscription = pubsub.subscribe('wallet:shopList', function (res) {
|
|
211
|
-
setWalletShopList((res === null || res === void 0 ? void 0 : res.list) || []);
|
|
212
|
-
});
|
|
213
|
-
|
|
214
|
-
// 卸载时取消订阅
|
|
215
|
-
return function () {
|
|
216
|
-
subscription.unsubscribe();
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
}, [isUserLoggedIn]);
|
|
220
191
|
|
|
221
192
|
// 组件挂载时执行一次请求
|
|
222
193
|
useEffect(function () {
|
|
@@ -462,7 +433,7 @@ var WalletList = Provider(function (props) {
|
|
|
462
433
|
return _context3.abrupt("return");
|
|
463
434
|
case 24:
|
|
464
435
|
// 如果获取到有效数据,保存到 localStorage
|
|
465
|
-
if (walletListData) {
|
|
436
|
+
if (walletListData && walletListData.length > 0) {
|
|
466
437
|
try {
|
|
467
438
|
saveToLocalStorage(STORAGE_KEY, walletListData);
|
|
468
439
|
} catch (e) {
|
|
@@ -739,24 +710,10 @@ var WalletList = Provider(function (props) {
|
|
|
739
710
|
})));
|
|
740
711
|
}, []);
|
|
741
712
|
|
|
742
|
-
/**
|
|
743
|
-
* @title: 是否显示引导页
|
|
744
|
-
* @description:
|
|
745
|
-
* @param {*} useMemo
|
|
746
|
-
* @return {*}
|
|
747
|
-
* @Author: WangHan
|
|
748
|
-
* @Date: 2025-06-09 13:16
|
|
749
|
-
*/
|
|
750
|
-
var isShowGuide = useMemo(function () {
|
|
751
|
-
var _globalState$walletGu;
|
|
752
|
-
if ((globalState === null || globalState === void 0 || (_globalState$walletGu = globalState.walletGuideConfig) === null || _globalState$walletGu === void 0 ? void 0 : _globalState$walletGu.show) === 0) return false;
|
|
753
|
-
return (walletShopList === null || walletShopList === void 0 ? void 0 : walletShopList.length) > 0 && !(list !== null && list !== void 0 && list.length);
|
|
754
|
-
}, [walletShopList, list, globalState === null || globalState === void 0 ? void 0 : globalState.walletGuideConfig]);
|
|
755
|
-
|
|
756
713
|
// 确保renderContent总是返回JSX,避免返回null
|
|
757
714
|
var renderContent = function renderContent() {
|
|
758
715
|
// 如果列表为空,不显示任何内容
|
|
759
|
-
if (list.length === 0
|
|
716
|
+
if (list.length === 0) {
|
|
760
717
|
return null;
|
|
761
718
|
}
|
|
762
719
|
|
|
@@ -765,12 +722,7 @@ var WalletList = Provider(function (props) {
|
|
|
765
722
|
className: "pisell-wallet-list-container"
|
|
766
723
|
}, /*#__PURE__*/React.createElement("div", {
|
|
767
724
|
className: "wallet-content"
|
|
768
|
-
},
|
|
769
|
-
key: getUniqueId(),
|
|
770
|
-
isGuide: true
|
|
771
|
-
}, globalState, {
|
|
772
|
-
walletGuideConfig: (globalState === null || globalState === void 0 ? void 0 : globalState.walletGuideConfig) || defaultWalletGuideConfig()
|
|
773
|
-
})) : /*#__PURE__*/React.createElement(Carousel, _extends({
|
|
725
|
+
}, /*#__PURE__*/React.createElement(Carousel, _extends({
|
|
774
726
|
ref: carouselRef
|
|
775
727
|
}, carouselProps), list.map(function (item) {
|
|
776
728
|
return renderWalletCard(item);
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
opacity: 1;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
>
|
|
34
|
+
>div {
|
|
35
35
|
height: 100%;
|
|
36
36
|
margin: 0;
|
|
37
37
|
padding: 0;
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
cursor: pointer;
|
|
216
216
|
width: 44px;
|
|
217
217
|
height: 44px;
|
|
218
|
-
background-color: #
|
|
218
|
+
background-color: #FFFFFF;
|
|
219
219
|
border-radius: 50%;
|
|
220
220
|
display: flex;
|
|
221
221
|
padding: 10px;
|
|
@@ -224,10 +224,9 @@
|
|
|
224
224
|
justify-content: center;
|
|
225
225
|
cursor: pointer;
|
|
226
226
|
border-radius: 22px;
|
|
227
|
-
background: rgba(255, 255, 255, 0.
|
|
227
|
+
background: rgba(255, 255, 255, 0.90);
|
|
228
228
|
backdrop-filter: blur(4px);
|
|
229
|
-
box-shadow: 0px 2px 4px rgba(16, 24, 40, 0.1),
|
|
230
|
-
0px 1px 3px rgba(16, 24, 40, 0.1);
|
|
229
|
+
box-shadow: 0px 2px 4px rgba(16, 24, 40, 0.1), 0px 1px 3px rgba(16, 24, 40, 0.1);
|
|
231
230
|
z-index: 10;
|
|
232
231
|
position: relative;
|
|
233
232
|
/* 确保相对定位 */
|
|
@@ -245,9 +244,8 @@
|
|
|
245
244
|
}
|
|
246
245
|
|
|
247
246
|
&:hover {
|
|
248
|
-
background-color: #
|
|
249
|
-
box-shadow: 0px 3px 6px rgba(16, 24, 40, 0.15),
|
|
250
|
-
0px 2px 4px rgba(16, 24, 40, 0.1);
|
|
247
|
+
background-color: #FFFFFF;
|
|
248
|
+
box-shadow: 0px 3px 6px rgba(16, 24, 40, 0.15), 0px 2px 4px rgba(16, 24, 40, 0.1);
|
|
251
249
|
}
|
|
252
250
|
|
|
253
251
|
&.disabled {
|
|
@@ -255,8 +253,7 @@
|
|
|
255
253
|
opacity: 0.7;
|
|
256
254
|
|
|
257
255
|
&:hover {
|
|
258
|
-
box-shadow: 0px 2px 4px rgba(16, 24, 40, 0.1),
|
|
259
|
-
0px 1px 3px rgba(16, 24, 40, 0.1);
|
|
256
|
+
box-shadow: 0px 2px 4px rgba(16, 24, 40, 0.1), 0px 1px 3px rgba(16, 24, 40, 0.1);
|
|
260
257
|
}
|
|
261
258
|
}
|
|
262
259
|
|
|
@@ -272,18 +269,17 @@
|
|
|
272
269
|
justify-content: center;
|
|
273
270
|
padding: 12px;
|
|
274
271
|
border-radius: 17px;
|
|
275
|
-
background: rgba(255, 255, 255, 0.
|
|
272
|
+
background: rgba(255, 255, 255, 0.90);
|
|
276
273
|
backdrop-filter: blur(4px);
|
|
277
274
|
height: 34px;
|
|
278
275
|
z-index: 100;
|
|
279
|
-
box-shadow: 0px 2px 4px rgba(16, 24, 40, 0.1),
|
|
280
|
-
0px 1px 3px rgba(16, 24, 40, 0.1);
|
|
276
|
+
box-shadow: 0px 2px 4px rgba(16, 24, 40, 0.1), 0px 1px 3px rgba(16, 24, 40, 0.1);
|
|
281
277
|
|
|
282
278
|
.wallet-dot {
|
|
283
279
|
width: 10px;
|
|
284
280
|
height: 10px;
|
|
285
281
|
border-radius: 50%;
|
|
286
|
-
background-color: #
|
|
282
|
+
background-color: #F2F4F7;
|
|
287
283
|
margin: 0 8px;
|
|
288
284
|
transition: all 0.3s ease;
|
|
289
285
|
|
|
@@ -291,7 +287,7 @@
|
|
|
291
287
|
width: 8px;
|
|
292
288
|
height: 8px;
|
|
293
289
|
border-radius: 4px;
|
|
294
|
-
background-color: #
|
|
290
|
+
background-color: #6941C6;
|
|
295
291
|
}
|
|
296
292
|
}
|
|
297
293
|
}
|
|
@@ -301,13 +297,14 @@
|
|
|
301
297
|
display: flex;
|
|
302
298
|
align-items: center;
|
|
303
299
|
justify-content: center;
|
|
304
|
-
color: #
|
|
300
|
+
color: #FFFFFF;
|
|
305
301
|
min-width: 70px;
|
|
306
302
|
text-align: center;
|
|
307
303
|
|
|
308
304
|
color: var(--Gray-500, #667085);
|
|
309
305
|
|
|
310
306
|
/* Text xl/Semibold */
|
|
307
|
+
font-family: Inter;
|
|
311
308
|
font-size: 20px;
|
|
312
309
|
font-style: normal;
|
|
313
310
|
font-weight: 600;
|
|
@@ -348,6 +345,7 @@
|
|
|
348
345
|
}
|
|
349
346
|
}
|
|
350
347
|
|
|
348
|
+
|
|
351
349
|
.pisell-lowcode__error {
|
|
352
350
|
text-align: center;
|
|
353
351
|
padding: 20px;
|
|
@@ -366,4 +364,4 @@
|
|
|
366
364
|
.pisell-wallet-skeleton {
|
|
367
365
|
padding: 16px;
|
|
368
366
|
}
|
|
369
|
-
}
|
|
367
|
+
}
|
|
@@ -10,11 +10,3 @@ export declare const getWalletList: () => Promise<WalletPass[]>;
|
|
|
10
10
|
* @returns
|
|
11
11
|
*/
|
|
12
12
|
export declare const getWalletBalance: () => Promise<WalletBalance | null>;
|
|
13
|
-
/**
|
|
14
|
-
* @title: 获取钱包店铺列表
|
|
15
|
-
* @description:
|
|
16
|
-
* @return {*}
|
|
17
|
-
* @Author: WangHan
|
|
18
|
-
* @Date: 2025-06-09 11:12
|
|
19
|
-
*/
|
|
20
|
-
export declare const getWalletShopList: (params: any) => Promise<any>;
|
|
@@ -66,42 +66,4 @@ export var getWalletBalance = /*#__PURE__*/function () {
|
|
|
66
66
|
return function getWalletBalance() {
|
|
67
67
|
return _ref2.apply(this, arguments);
|
|
68
68
|
};
|
|
69
|
-
}();
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* @title: 获取钱包店铺列表
|
|
73
|
-
* @description:
|
|
74
|
-
* @return {*}
|
|
75
|
-
* @Author: WangHan
|
|
76
|
-
* @Date: 2025-06-09 11:12
|
|
77
|
-
*/
|
|
78
|
-
export var getWalletShopList = /*#__PURE__*/function () {
|
|
79
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(params) {
|
|
80
|
-
var _yield$request$getReq3, data;
|
|
81
|
-
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
82
|
-
while (1) switch (_context3.prev = _context3.next) {
|
|
83
|
-
case 0:
|
|
84
|
-
_context3.prev = 0;
|
|
85
|
-
_context3.next = 3;
|
|
86
|
-
return request.getRequest().get('/h5/wallet/shop/list', params || {}, {
|
|
87
|
-
abort: true,
|
|
88
|
-
useCache: true
|
|
89
|
-
});
|
|
90
|
-
case 3:
|
|
91
|
-
_yield$request$getReq3 = _context3.sent;
|
|
92
|
-
data = _yield$request$getReq3.data;
|
|
93
|
-
return _context3.abrupt("return", data || null);
|
|
94
|
-
case 8:
|
|
95
|
-
_context3.prev = 8;
|
|
96
|
-
_context3.t0 = _context3["catch"](0);
|
|
97
|
-
return _context3.abrupt("return", null);
|
|
98
|
-
case 11:
|
|
99
|
-
case "end":
|
|
100
|
-
return _context3.stop();
|
|
101
|
-
}
|
|
102
|
-
}, _callee3, null, [[0, 8]]);
|
|
103
|
-
}));
|
|
104
|
-
return function getWalletShopList(_x) {
|
|
105
|
-
return _ref3.apply(this, arguments);
|
|
106
|
-
};
|
|
107
69
|
}();
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
align-items: center;
|
|
10
10
|
gap: 10px;
|
|
11
11
|
color: var(--Gray-500, #667085);
|
|
12
|
+
font-family: Inter;
|
|
12
13
|
font-size: 14px;
|
|
13
14
|
font-style: normal;
|
|
14
15
|
font-weight: 600;
|
|
@@ -102,6 +103,7 @@
|
|
|
102
103
|
> div {
|
|
103
104
|
color: var(--Gray-500, #667085);
|
|
104
105
|
text-align: center;
|
|
106
|
+
font-family: Inter;
|
|
105
107
|
font-size: 16px;
|
|
106
108
|
font-style: normal;
|
|
107
109
|
font-weight: 600;
|
|
@@ -51,8 +51,6 @@ var import_utils3 = require("./utils");
|
|
|
51
51
|
var import_voucher = __toESM(require("../voucher"));
|
|
52
52
|
var import__ = require("../../../../index");
|
|
53
53
|
var import_useIsBooking4Shop = require("../../hooks/useIsBooking4Shop");
|
|
54
|
-
var import_utils4 = require("@pisell/utils");
|
|
55
|
-
var import_dayjs = __toESM(require("dayjs"));
|
|
56
54
|
var Footer = (props) => {
|
|
57
55
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
58
56
|
const { state, buttons, dispatch, source } = props;
|
|
@@ -224,10 +222,7 @@ var Footer = (props) => {
|
|
|
224
222
|
const isHasDayProducts = handleDaySubmit();
|
|
225
223
|
if (isHasDayProducts) return;
|
|
226
224
|
}
|
|
227
|
-
const res = await handleSave({
|
|
228
|
-
type: "checkout",
|
|
229
|
-
messageShow: !(isTerminal == null ? void 0 : isTerminal())
|
|
230
|
-
});
|
|
225
|
+
const res = await handleSave({ type: "checkout" });
|
|
231
226
|
goCheckout((res == null ? void 0 : res.order_id) || state.bookingId);
|
|
232
227
|
return;
|
|
233
228
|
}
|
|
@@ -293,13 +288,6 @@ var Footer = (props) => {
|
|
|
293
288
|
let callbackData = null;
|
|
294
289
|
let values = (0, import_utils3.formatValues)({ ...state, ...saveOtherValue });
|
|
295
290
|
const api = state.bookingId ? editApi : createApi;
|
|
296
|
-
(0, import_utils4.sendWarningLog)({
|
|
297
|
-
title: "saveBooking",
|
|
298
|
-
content: [
|
|
299
|
-
{ key: "下单前数据", value: JSON.stringify(values) },
|
|
300
|
-
{ key: "日期", value: (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm") }
|
|
301
|
-
]
|
|
302
|
-
});
|
|
303
291
|
if (addonsEdit) {
|
|
304
292
|
await handleSaveAddons();
|
|
305
293
|
}
|
|
@@ -313,7 +301,7 @@ var Footer = (props) => {
|
|
|
313
301
|
);
|
|
314
302
|
}
|
|
315
303
|
}
|
|
316
|
-
state == null ? void 0 : state.callback(callbackData
|
|
304
|
+
state == null ? void 0 : state.callback(callbackData);
|
|
317
305
|
_setLoading(false);
|
|
318
306
|
return callbackData || values;
|
|
319
307
|
} catch (err) {
|
|
@@ -244,4 +244,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
|
|
|
244
244
|
* @Author: WangHan
|
|
245
245
|
* @Date: 2024-12-24 11:32
|
|
246
246
|
*/
|
|
247
|
-
export declare const updateServicePrice: (state: any) => never[]
|
|
247
|
+
export declare const updateServicePrice: (state: any) => Promise<any> | never[];
|
|
@@ -158,7 +158,7 @@ var Info = (_, ref) => {
|
|
|
158
158
|
form.setFieldsValue({ discount });
|
|
159
159
|
};
|
|
160
160
|
const onFinish = (values) => {
|
|
161
|
-
var _a2
|
|
161
|
+
var _a2;
|
|
162
162
|
let isSuccess = (_a2 = resourcesRef.current) == null ? void 0 : _a2.check();
|
|
163
163
|
if (isShowTimeAndResource && !isSuccess) {
|
|
164
164
|
return;
|
|
@@ -177,10 +177,6 @@ var Info = (_, ref) => {
|
|
|
177
177
|
};
|
|
178
178
|
let _extend = {
|
|
179
179
|
..._item._extend,
|
|
180
|
-
other: {
|
|
181
|
-
...((_b2 = _item._extend) == null ? void 0 : _b2.other) || {},
|
|
182
|
-
quantity: values.quantity
|
|
183
|
-
},
|
|
184
180
|
...values
|
|
185
181
|
};
|
|
186
182
|
const { startDate, endDate } = (0, import_utils3.getServiceTimes)({ _extend });
|
|
@@ -337,9 +333,9 @@ var Info = (_, ref) => {
|
|
|
337
333
|
isOS: isSession,
|
|
338
334
|
customer_id: (_e2 = (_d2 = state.client) == null ? void 0 : _d2.value) == null ? void 0 : _e2.id,
|
|
339
335
|
value: {
|
|
336
|
+
quantity: item._extend.quantity,
|
|
340
337
|
...item._extend.other,
|
|
341
|
-
...sessionValue
|
|
342
|
-
quantity: values.quantity || item._extend.quantity
|
|
338
|
+
...sessionValue
|
|
343
339
|
}
|
|
344
340
|
},
|
|
345
341
|
callback: (e2, extension_type, detail) => {
|
|
@@ -73,6 +73,12 @@ var getResourceTimeIsUsable = (item, cacheItem, resourceItem) => {
|
|
|
73
73
|
let endDate = null;
|
|
74
74
|
let isCalcCount = true;
|
|
75
75
|
if (isFlexible) {
|
|
76
|
+
if (eventList.length) {
|
|
77
|
+
timeStartDate = eventList.reduce((max, event) => {
|
|
78
|
+
const endAt = (0, import_dayjs.default)(event.end_at);
|
|
79
|
+
return endAt.isAfter(max) ? endAt : max;
|
|
80
|
+
}, (0, import_dayjs.default)(eventList[0].end_at));
|
|
81
|
+
}
|
|
76
82
|
isDateRange = startDate.isAfter(timeStartDate) && startDate.isBefore(timeEndDate);
|
|
77
83
|
if (!isDateRange && eventList.length) {
|
|
78
84
|
isCalcCount = false;
|
|
@@ -212,14 +218,10 @@ var getServiceStartTimeAndEndTime = (state, cacheItem, timeObj) => {
|
|
|
212
218
|
if (lastServer) {
|
|
213
219
|
let lastServerStartDate = lastServer._extend.startDate;
|
|
214
220
|
let lastServerEndDate = lastServer._extend.endDate;
|
|
215
|
-
if (
|
|
216
|
-
_extend.start_time =
|
|
221
|
+
if ((0, import_dayjs.default)(lastServerEndDate).isAfter(lastServerStartDate, "day")) {
|
|
222
|
+
_extend.start_time = timeObj.timeSlices[timeObj.timeSlices.length - 1].value;
|
|
217
223
|
} else {
|
|
218
|
-
|
|
219
|
-
_extend.start_time = timeObj.timeSlices[timeObj.timeSlices.length - 1].value;
|
|
220
|
-
} else {
|
|
221
|
-
_extend.start_time = lastServerEndDate.format("HH:mm");
|
|
222
|
-
}
|
|
224
|
+
_extend.start_time = appointmentTimingPreference === "sequential" ? lastServerEndDate.format("HH:mm") : lastServerStartDate.format("HH:mm");
|
|
223
225
|
}
|
|
224
226
|
} else {
|
|
225
227
|
let findNextSliceProps = {
|
|
@@ -557,14 +557,10 @@ var getServerItemExtend = (state, cacheItem, timeObj) => {
|
|
|
557
557
|
_extend.resource = lastServer._extend.resource;
|
|
558
558
|
let lastServerStartDate = lastServer._extend.startDate;
|
|
559
559
|
let lastServerEndDate = lastServer._extend.endDate;
|
|
560
|
-
if (
|
|
561
|
-
_extend.start_time =
|
|
560
|
+
if ((0, import_dayjs.default)(lastServerEndDate).isAfter(lastServerStartDate, "day")) {
|
|
561
|
+
_extend.start_time = timeObj.timeSlices[timeObj.timeSlices.length - 1].value;
|
|
562
562
|
} else {
|
|
563
|
-
|
|
564
|
-
_extend.start_time = timeObj.timeSlices[timeObj.timeSlices.length - 1].value;
|
|
565
|
-
} else {
|
|
566
|
-
_extend.start_time = lastServerEndDate.format("HH:mm");
|
|
567
|
-
}
|
|
563
|
+
_extend.start_time = appointmentTimingPreference === "sequential" ? lastServerEndDate.format("HH:mm") : lastServerStartDate.format("HH:mm");
|
|
568
564
|
}
|
|
569
565
|
} else {
|
|
570
566
|
let findNextSliceProps = {
|
|
@@ -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: "success" | "page" | "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: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
|
|
15
15
|
[keys: string]: unknown;
|
|
16
16
|
} | undefined, other?: any) => void) | undefined;
|
|
17
17
|
onClose: () => void;
|
|
@@ -15,7 +15,7 @@ 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<"success" | "warn" | "loading" | "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>;
|