@pisell/private-materials 3.3.65 → 3.3.66
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 +0 -1
- package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Content/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Voucher/index.less +0 -2
- package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/deposit/index.d.ts +0 -1
- package/es/components/appointmentBooking/index.d.ts +0 -1
- package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/es/components/booking/components/footer/index.js +30 -15
- package/es/components/booking/components/voucher/index.d.ts +0 -1
- package/es/components/booking/components/voucher/index.less +0 -1
- package/es/components/booking/forms/footer.d.ts +0 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/es/components/booking/hooks/useClearCart.d.ts +0 -1
- package/es/components/booking/info/dateRange/index.d.ts +0 -1
- package/es/components/booking/info/service/addService/index.d.ts +0 -1
- package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/es/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/es/components/booking/info/service/serviceItem/index.d.ts +0 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/editService/index.js +13 -9
- package/es/components/booking/info2/service/serviceItem/index.d.ts +0 -1
- package/es/components/booking/info2/utilsByBooking.js +17 -10
- package/es/components/booking/utils.js +10 -4
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/es/components/eftposPay/component/fail/index.d.ts +0 -1
- package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
- 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 +0 -1
- package/es/components/eftposPay/pay.d.ts +0 -1
- package/es/components/eftposPay/store/index.d.ts +3 -3
- package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -1
- package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/es/components/eventBooking/components/timeResourceSelector/index.less +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/index.js +5 -4
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/es/components/pisellSelectCustomerModal/index.d.ts +0 -1
- package/es/components/productSelect/components/TabProduct/index.d.ts +0 -1
- package/es/components/productSelect/components/productGroup/index.d.ts +0 -1
- package/es/components/ruleSetting/index.d.ts +0 -1
- package/es/components/schedules/calendar/index.less +158 -152
- package/es/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/es/components/shoppingCart/components/Cart/index.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +12 -10
- package/es/components/ticketBooking/components/ticketBooking/index.js +135 -9
- package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/es/components/ticketBooking/locales.d.ts +164 -146
- package/es/components/ticketBooking/locales.js +195 -147
- package/es/components/ticketBooking/serve.d.ts +5 -0
- package/es/components/ticketBooking/serve.js +27 -0
- package/es/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
- package/es/components/ticketBooking/utils/formatProductMessage.js +53 -0
- package/es/components/ticketBooking/utils/formatTime.d.ts +31 -0
- package/es/components/ticketBooking/utils/formatTime.js +144 -0
- package/es/components/wallet/DiscountCard/index.less +0 -1
- package/es/components/wallet/PointCard/index.less +0 -1
- package/es/components/wallet/RechargeableCard/index.less +5 -9
- package/es/components/wallet/Voucher/index.less +0 -1
- package/es/components/wallet/index.less +0 -4
- package/es/components/walletList/index.js +55 -7
- package/es/components/walletList/index.less +17 -15
- package/es/components/walletList/locales.d.ts +18 -0
- package/es/components/walletList/locales.js +17 -0
- package/es/components/walletList/serve.d.ts +8 -0
- package/es/components/walletList/serve.js +38 -0
- package/es/components/walletList/status.d.ts +38 -0
- package/es/components/walletList/status.js +47 -0
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Voucher/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Voucher/index.less +0 -2
- package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/deposit/index.d.ts +0 -1
- package/lib/components/appointmentBooking/index.d.ts +0 -1
- package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
- package/lib/components/booking/components/footer/index.js +14 -2
- package/lib/components/booking/components/voucher/index.d.ts +0 -1
- package/lib/components/booking/components/voucher/index.less +0 -1
- package/lib/components/booking/forms/footer.d.ts +0 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
- package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
- package/lib/components/booking/info/dateRange/index.d.ts +0 -1
- package/lib/components/booking/info/service/addService/index.d.ts +0 -1
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
- package/lib/components/booking/info/service/editService/BookingList/index.d.ts +0 -1
- package/lib/components/booking/info/service/serviceItem/index.d.ts +0 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/editService/index.js +7 -3
- package/lib/components/booking/info2/service/serviceItem/index.d.ts +0 -1
- package/lib/components/booking/info2/utilsByBooking.js +7 -9
- package/lib/components/booking/utils.js +7 -3
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
- package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
- 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 +0 -1
- package/lib/components/eftposPay/pay.d.ts +0 -1
- package/lib/components/eftposPay/store/index.d.ts +3 -3
- package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.less +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.less +0 -1
- package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +0 -1
- package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
- package/lib/components/eventBooking/components/timeResourceSelector/index.less +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/index.js +10 -9
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
- package/lib/components/pisellSelectCustomerModal/index.d.ts +0 -1
- package/lib/components/productSelect/components/TabProduct/index.d.ts +0 -1
- package/lib/components/productSelect/components/productGroup/index.d.ts +0 -1
- package/lib/components/ruleSetting/index.d.ts +0 -1
- package/lib/components/schedules/calendar/index.less +158 -152
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +0 -1
- package/lib/components/shoppingCart/components/Cart/index.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +5 -3
- package/lib/components/ticketBooking/components/ticketBooking/index.js +134 -8
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -1
- package/lib/components/ticketBooking/locales.d.ts +164 -146
- package/lib/components/ticketBooking/locales.js +22 -4
- package/lib/components/ticketBooking/serve.d.ts +5 -0
- package/lib/components/ticketBooking/serve.js +8 -2
- package/lib/components/ticketBooking/utils/formatProductMessage.d.ts +2 -0
- package/lib/components/ticketBooking/utils/formatProductMessage.js +76 -0
- package/lib/components/ticketBooking/utils/formatTime.d.ts +31 -0
- package/lib/components/ticketBooking/utils/formatTime.js +139 -0
- package/lib/components/wallet/DiscountCard/index.less +0 -1
- package/lib/components/wallet/PointCard/index.less +0 -1
- package/lib/components/wallet/RechargeableCard/index.less +5 -9
- package/lib/components/wallet/Voucher/index.less +0 -1
- package/lib/components/wallet/index.less +0 -4
- package/lib/components/walletList/index.js +42 -14
- package/lib/components/walletList/index.less +17 -15
- package/lib/components/walletList/locales.d.ts +18 -0
- package/lib/components/walletList/locales.js +41 -0
- package/lib/components/walletList/serve.d.ts +8 -0
- package/lib/components/walletList/serve.js +15 -2
- package/lib/components/walletList/status.d.ts +38 -0
- package/lib/components/walletList/status.js +66 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +0 -1
- package/package.json +3 -3
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
import { locales } from '@pisell/utils';
|
|
3
|
+
import 'dayjs/locale/zh-cn';
|
|
4
|
+
import 'dayjs/locale/en';
|
|
5
|
+
import 'dayjs/locale/zh-tw';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @title: 是否英文
|
|
9
|
+
* @description:
|
|
10
|
+
* @param {any} item
|
|
11
|
+
* @return {*}
|
|
12
|
+
* @Author: WangHan
|
|
13
|
+
* @Date: 2024-12-28 22:49
|
|
14
|
+
*/
|
|
15
|
+
export var isEn = function isEn(item) {
|
|
16
|
+
var locale = (item === null || item === void 0 ? void 0 : item.locale) || 'en-US';
|
|
17
|
+
var _isEn = locale === 'en-US' || locale === 'en';
|
|
18
|
+
var localeTypes = {
|
|
19
|
+
'en-US': 'en',
|
|
20
|
+
'zh-CN': 'zh-cn',
|
|
21
|
+
'zh-HK': 'zh-tw'
|
|
22
|
+
};
|
|
23
|
+
dayjs.locale(localeTypes[locale]);
|
|
24
|
+
return _isEn;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @title: 跨日预约时间
|
|
29
|
+
* @description:
|
|
30
|
+
* @param {any} item
|
|
31
|
+
* @return {*}
|
|
32
|
+
* @Author: WangHan
|
|
33
|
+
* @Date: 2024-12-28 22:50
|
|
34
|
+
*/
|
|
35
|
+
export var formatMultiDayDate = function formatMultiDayDate(item) {
|
|
36
|
+
var _isEn = isEn(item);
|
|
37
|
+
|
|
38
|
+
// 跨日
|
|
39
|
+
var startDate = dayjs(item === null || item === void 0 ? void 0 : item.start_date);
|
|
40
|
+
var endDate = dayjs(item === null || item === void 0 ? void 0 : item.end_date);
|
|
41
|
+
var _format = _isEn ? 'ddd, DD/MM/YYYY' : 'YYYY-MM-DD,ddd';
|
|
42
|
+
var date = "".concat(startDate.format(_format), " ~ ").concat(endDate.format(_format));
|
|
43
|
+
return date;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @title: 格式化服务的 开始时间-结束时间-时长, 用于展示
|
|
48
|
+
* @description:
|
|
49
|
+
* @param {any} item
|
|
50
|
+
* @param {any} currentDate
|
|
51
|
+
* @return {*}
|
|
52
|
+
* @Author: zhiwei.Wang
|
|
53
|
+
* @Date: 2024-04-26 14:04
|
|
54
|
+
*/
|
|
55
|
+
export var getServiceTime = function getServiceTime(item, currentDate, utils) {
|
|
56
|
+
var _utils$storage, _item$format;
|
|
57
|
+
if (!dayjs(currentDate).isValid()) return '';
|
|
58
|
+
var locale = (item === null || item === void 0 ? void 0 : item.locale) || (utils === null || utils === void 0 || (_utils$storage = utils.storage) === null || _utils$storage === void 0 ? void 0 : _utils$storage.get('umi_locale')) || 'en-US';
|
|
59
|
+
var isEn = locale === 'en-US' || locale === 'en';
|
|
60
|
+
var localeTypes = {
|
|
61
|
+
'en-US': 'en',
|
|
62
|
+
'zh-CN': 'zh-cn',
|
|
63
|
+
'zh-HK': 'zh-tw'
|
|
64
|
+
};
|
|
65
|
+
dayjs.locale(localeTypes[locale]);
|
|
66
|
+
var startDate = dayjs(item === null || item === void 0 ? void 0 : item.start_date);
|
|
67
|
+
var endDate = dayjs(item === null || item === void 0 ? void 0 : item.end_date);
|
|
68
|
+
var diffInDays = (item === null || item === void 0 ? void 0 : item.custom_day_count) || endDate.diff(startDate, 'day');
|
|
69
|
+
|
|
70
|
+
// 1.2时间格式, 同天显示 年月日 开始 - 结束, 不同天 年月日 开始 - 年月日 结束
|
|
71
|
+
if (item !== null && item !== void 0 && item.duration_type) {
|
|
72
|
+
var sameDay = startDate.isSame(endDate, 'day');
|
|
73
|
+
var dateFormat = isEn ? 'DD/MM/YYYY' : 'YYYY-MM-DD';
|
|
74
|
+
var timeFormat = 'HH:mm';
|
|
75
|
+
var startTime = (item === null || item === void 0 ? void 0 : item.start_time) || startDate.format(timeFormat);
|
|
76
|
+
var endTime = (item === null || item === void 0 ? void 0 : item.end_time) || endDate.format(timeFormat);
|
|
77
|
+
var dateTime = '';
|
|
78
|
+
if (sameDay) {
|
|
79
|
+
if (isEn) {
|
|
80
|
+
// 英文:开始时间 - 结束时间 年月日
|
|
81
|
+
dateTime = "".concat(startTime, " ~ ").concat(endTime, " ").concat(startDate.format(dateFormat));
|
|
82
|
+
} else {
|
|
83
|
+
// 中文:年月日 开始时间 - 结束时间
|
|
84
|
+
dateTime = "".concat(startDate.format(dateFormat), " ").concat(startTime, " ~ ").concat(endTime);
|
|
85
|
+
}
|
|
86
|
+
} else {
|
|
87
|
+
// 不同天
|
|
88
|
+
if (isEn) {
|
|
89
|
+
// 英文:开始时间 年月日 - 结束时间 年月日
|
|
90
|
+
dateTime = "".concat(startTime, " ").concat(startDate.format(dateFormat), " ~ ").concat(endTime, " ").concat(endDate.format(dateFormat));
|
|
91
|
+
} else {
|
|
92
|
+
// 中文:年月日 开始时间 - 年月日 结束时间
|
|
93
|
+
dateTime = "".concat(startDate.format(dateFormat), " ").concat(startTime, " ~ ").concat(endDate.format(dateFormat), " ").concat(endTime);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
var startDateTime = "".concat(startDate.format('YYYY-MM-DD'), " ").concat(startTime);
|
|
97
|
+
var endDateTime = "".concat(endDate.format('YYYY-MM-DD'), " ").concat(endTime);
|
|
98
|
+
var _duration = dayjs(endDateTime).diff(dayjs(startDateTime), item === null || item === void 0 ? void 0 : item.duration_type);
|
|
99
|
+
var durationText = '';
|
|
100
|
+
if ((item === null || item === void 0 ? void 0 : item.duration_type) === 'minutes') {
|
|
101
|
+
// 转为小时+分钟
|
|
102
|
+
var hours = Math.floor(_duration / 60);
|
|
103
|
+
var minutes = _duration % 60;
|
|
104
|
+
durationText = locales.getText('pisell2.product.card.hour.minute')(hours, minutes);
|
|
105
|
+
} else if ((item === null || item === void 0 ? void 0 : item.duration_type) === 'days') {
|
|
106
|
+
durationText = locales.getText('pisell2.product.card.day')(_duration);
|
|
107
|
+
} else {
|
|
108
|
+
durationText = "".concat(_duration);
|
|
109
|
+
}
|
|
110
|
+
return "".concat(dateTime, " (").concat(durationText, ")");
|
|
111
|
+
}
|
|
112
|
+
var _format = isEn ? 'ddd, DD/MM/YYYY' : 'YYYY-MM-DD,ddd';
|
|
113
|
+
|
|
114
|
+
// 是否自定义格式
|
|
115
|
+
if (item !== null && item !== void 0 && item.hasOwnProperty('format') && (item === null || item === void 0 || (_item$format = item.format) === null || _item$format === void 0 ? void 0 : _item$format.length) > 0) {
|
|
116
|
+
var _item$format2, _item$format3;
|
|
117
|
+
_format = isEn ? item === null || item === void 0 || (_item$format2 = item.format) === null || _item$format2 === void 0 ? void 0 : _item$format2[0] : item === null || item === void 0 || (_item$format3 = item.format) === null || _item$format3 === void 0 ? void 0 : _item$format3[1];
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// 是否显示时间
|
|
121
|
+
if (item !== null && item !== void 0 && item.show_time) {
|
|
122
|
+
startDate = dayjs(item !== null && item !== void 0 && item.start_time ? "".concat(item === null || item === void 0 ? void 0 : item.start_date, " ").concat(item === null || item === void 0 ? void 0 : item.start_time) : startDate.format('YYYY-MM-DD HH:mm'));
|
|
123
|
+
endDate = dayjs(item !== null && item !== void 0 && item.end_time ? "".concat(item === null || item === void 0 ? void 0 : item.end_date, " ").concat(item === null || item === void 0 ? void 0 : item.end_time) : endDate.format('YYYY-MM-DD HH:mm'));
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// 显示时长分钟
|
|
127
|
+
if ((item === null || item === void 0 ? void 0 : item.duration_type) === 'minutes') {
|
|
128
|
+
diffInDays = endDate.diff(startDate, 'minute');
|
|
129
|
+
}
|
|
130
|
+
var date = "".concat(startDate.format(_format), " ~ ").concat(endDate.format(_format));
|
|
131
|
+
|
|
132
|
+
// 自定义文案
|
|
133
|
+
var text = locales.getText('pisell2.product.card.day')(diffInDays);
|
|
134
|
+
if (item !== null && item !== void 0 && item.custom_day_count) {
|
|
135
|
+
text = locales.getText('pisell2.product.card.day.event')(diffInDays);
|
|
136
|
+
}
|
|
137
|
+
var textTypes = {
|
|
138
|
+
'minutes': locales.getText('pisell2.product.card.minute')(diffInDays),
|
|
139
|
+
'event': locales.getText('pisell2.product.card.day.event')(diffInDays)
|
|
140
|
+
};
|
|
141
|
+
text = (textTypes === null || textTypes === void 0 ? void 0 : textTypes[item === null || item === void 0 ? void 0 : item.duration_type]) || text;
|
|
142
|
+
var duration = "".concat(diffInDays).concat(text);
|
|
143
|
+
return "".concat(date, " (").concat(duration, ")");
|
|
144
|
+
};
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
color: var(--Gray-900, #101828);
|
|
21
21
|
|
|
22
22
|
/* Paragraph/Semi Bold */
|
|
23
|
-
font-family: Inter;
|
|
24
23
|
font-size: 14px;
|
|
25
24
|
font-style: normal;
|
|
26
25
|
font-weight: 600;
|
|
@@ -36,7 +35,6 @@
|
|
|
36
35
|
text-overflow: ellipsis;
|
|
37
36
|
|
|
38
37
|
/* Small/Regular */
|
|
39
|
-
font-family: Inter;
|
|
40
38
|
font-size: 12px;
|
|
41
39
|
font-style: normal;
|
|
42
40
|
font-weight: 400;
|
|
@@ -55,7 +53,6 @@
|
|
|
55
53
|
text-overflow: ellipsis;
|
|
56
54
|
|
|
57
55
|
/* Text md/Semibold */
|
|
58
|
-
font-family: Inter;
|
|
59
56
|
font-size: 16px;
|
|
60
57
|
font-style: normal;
|
|
61
58
|
font-weight: 600;
|
|
@@ -66,8 +63,8 @@
|
|
|
66
63
|
}
|
|
67
64
|
|
|
68
65
|
.pisell-card-selected {
|
|
69
|
-
border: 1px solid var(--theme-color, #
|
|
70
|
-
background: var(--Primary-50, #
|
|
66
|
+
border: 1px solid var(--theme-color, #7f56d9);
|
|
67
|
+
background: var(--Primary-50, #f9f5ff);
|
|
71
68
|
}
|
|
72
69
|
|
|
73
70
|
.pisell-card-item:last-child {
|
|
@@ -78,7 +75,6 @@
|
|
|
78
75
|
// 充值卡标题
|
|
79
76
|
&-title {
|
|
80
77
|
color: var(--Gray-900, #101828);
|
|
81
|
-
font-family: Inter;
|
|
82
78
|
font-size: 20px;
|
|
83
79
|
font-style: normal;
|
|
84
80
|
font-weight: 600;
|
|
@@ -104,9 +100,9 @@
|
|
|
104
100
|
margin-bottom: 16px;
|
|
105
101
|
cursor: pointer;
|
|
106
102
|
}
|
|
107
|
-
|
|
103
|
+
|
|
108
104
|
.pisell-card-selected {
|
|
109
|
-
border: 1px solid var(--theme-color, #
|
|
110
|
-
background: var(--Primary-50, #
|
|
105
|
+
border: 1px solid var(--theme-color, #7f56d9);
|
|
106
|
+
background: var(--Primary-50, #f9f5ff);
|
|
111
107
|
}
|
|
112
108
|
}
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
color: var(--Gray-900, #101828);
|
|
19
19
|
|
|
20
20
|
/* Display sm/Semibold */
|
|
21
|
-
font-family: Inter;
|
|
22
21
|
font-size: 30px;
|
|
23
22
|
font-style: normal;
|
|
24
23
|
font-weight: 600;
|
|
@@ -53,7 +52,6 @@
|
|
|
53
52
|
text-align: center;
|
|
54
53
|
|
|
55
54
|
/* Text sm/Semibold */
|
|
56
|
-
font-family: Inter;
|
|
57
55
|
font-size: 14px;
|
|
58
56
|
font-style: normal;
|
|
59
57
|
font-weight: 600;
|
|
@@ -89,7 +87,6 @@
|
|
|
89
87
|
}
|
|
90
88
|
.pisell-lowcode-wallet-title {
|
|
91
89
|
color: var(--Gray-900, #101828);
|
|
92
|
-
font-family: Inter;
|
|
93
90
|
font-size: 30px;
|
|
94
91
|
font-style: normal;
|
|
95
92
|
font-weight: 600;
|
|
@@ -117,7 +114,6 @@
|
|
|
117
114
|
color: var(--Gray-900, #101828);
|
|
118
115
|
|
|
119
116
|
/* Text md/Medium */
|
|
120
|
-
font-family: Inter;
|
|
121
117
|
font-size: 16px;
|
|
122
118
|
font-style: normal;
|
|
123
119
|
font-weight: 500;
|
|
@@ -21,9 +21,11 @@ import { Provider, Context } from "./model";
|
|
|
21
21
|
import { WalletCard, Carousel } from '@pisell/materials';
|
|
22
22
|
import { LeftOutlined, RightOutlined } from '@ant-design/icons';
|
|
23
23
|
import useEngineContext from "./../../hooks/useEngineContext";
|
|
24
|
-
import { getWalletList, getWalletBalance } from "./serve";
|
|
25
|
-
import { locales } from '@pisell/utils';
|
|
24
|
+
import { getWalletList, getWalletBalance, getWalletShopList } from "./serve";
|
|
25
|
+
import { locales, getUniqueId } from '@pisell/utils';
|
|
26
26
|
import { request } from "./../../utils";
|
|
27
|
+
import { defaultWalletGuideConfig } from "./status";
|
|
28
|
+
import localeTexts from "./locales";
|
|
27
29
|
import "./index.less";
|
|
28
30
|
import classNames from 'classnames';
|
|
29
31
|
// 导入所有类型
|
|
@@ -120,7 +122,7 @@ var DEFAULT_WALLET_CARD = {
|
|
|
120
122
|
original: 'Level',
|
|
121
123
|
'zh-CN': 'Level',
|
|
122
124
|
'zh-HK': 'Level',
|
|
123
|
-
|
|
125
|
+
en: 'Level'
|
|
124
126
|
},
|
|
125
127
|
metadata: {
|
|
126
128
|
barcodetype: 'barCode',
|
|
@@ -150,7 +152,7 @@ var WalletList = Provider(function (props) {
|
|
|
150
152
|
constants = _ref.constants,
|
|
151
153
|
utils = _ref.utils;
|
|
152
154
|
var dvaStore = utils === null || utils === void 0 || (_utils$getStore = utils.getStore) === null || _utils$getStore === void 0 || (_utils$getStore = _utils$getStore.call(utils)) === null || _utils$getStore === void 0 ? void 0 : _utils$getStore.getState();
|
|
153
|
-
locales.init(
|
|
155
|
+
locales.init(localeTexts, (dvaStore === null || dvaStore === void 0 || (_dvaStore$core = dvaStore.core) === null || _dvaStore$core === void 0 ? void 0 : _dvaStore$core.translateLocale) || 'en');
|
|
154
156
|
// 添加组件挂载状态引用
|
|
155
157
|
var isMountedRef = useRef(true);
|
|
156
158
|
var carouselRef = useRef(null);
|
|
@@ -164,9 +166,15 @@ var WalletList = Provider(function (props) {
|
|
|
164
166
|
_useState2 = _slicedToArray(_useState, 2),
|
|
165
167
|
currentIndex = _useState2[0],
|
|
166
168
|
setCurrentIndex = _useState2[1];
|
|
169
|
+
// 店铺wallet pass列表
|
|
170
|
+
var _useState3 = useState([]),
|
|
171
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
172
|
+
walletShopList = _useState4[0],
|
|
173
|
+
setWalletShopList = _useState4[1];
|
|
167
174
|
|
|
168
175
|
// 添加一个请求ID引用,用于去重
|
|
169
176
|
var requestIdRef = useRef('');
|
|
177
|
+
var pubsub = utils === null || utils === void 0 ? void 0 : utils.pubsub;
|
|
170
178
|
|
|
171
179
|
//获取登录状态
|
|
172
180
|
var isUserLoggedIn = useMemo(function () {
|
|
@@ -188,6 +196,27 @@ var WalletList = Provider(function (props) {
|
|
|
188
196
|
request.setRequest(utils.request);
|
|
189
197
|
}
|
|
190
198
|
}, [utils === null || utils === void 0 ? void 0 : utils.request]);
|
|
199
|
+
useEffect(function () {
|
|
200
|
+
if (isUserLoggedIn) {
|
|
201
|
+
// 获取店铺wallet pass列表
|
|
202
|
+
getWalletShopList({
|
|
203
|
+
skip: 1,
|
|
204
|
+
num: 50
|
|
205
|
+
}).then(function (res) {
|
|
206
|
+
pubsub.publish('wallet:shopList', res);
|
|
207
|
+
});
|
|
208
|
+
|
|
209
|
+
// 订阅
|
|
210
|
+
var subscription = pubsub.subscribe('wallet:shopList', function (res) {
|
|
211
|
+
setWalletShopList((res === null || res === void 0 ? void 0 : res.list) || []);
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
// 卸载时取消订阅
|
|
215
|
+
return function () {
|
|
216
|
+
subscription.unsubscribe();
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
}, [isUserLoggedIn]);
|
|
191
220
|
|
|
192
221
|
// 组件挂载时执行一次请求
|
|
193
222
|
useEffect(function () {
|
|
@@ -433,7 +462,7 @@ var WalletList = Provider(function (props) {
|
|
|
433
462
|
return _context3.abrupt("return");
|
|
434
463
|
case 24:
|
|
435
464
|
// 如果获取到有效数据,保存到 localStorage
|
|
436
|
-
if (walletListData
|
|
465
|
+
if (walletListData) {
|
|
437
466
|
try {
|
|
438
467
|
saveToLocalStorage(STORAGE_KEY, walletListData);
|
|
439
468
|
} catch (e) {
|
|
@@ -710,10 +739,24 @@ var WalletList = Provider(function (props) {
|
|
|
710
739
|
})));
|
|
711
740
|
}, []);
|
|
712
741
|
|
|
742
|
+
/**
|
|
743
|
+
* @title: 是否显示引导页
|
|
744
|
+
* @description:
|
|
745
|
+
* @param {*} useMemo
|
|
746
|
+
* @return {*}
|
|
747
|
+
* @Author: WangHan
|
|
748
|
+
* @Date: 2025-06-09 13:16
|
|
749
|
+
*/
|
|
750
|
+
var isShowGuide = useMemo(function () {
|
|
751
|
+
var _globalState$walletGu;
|
|
752
|
+
if ((globalState === null || globalState === void 0 || (_globalState$walletGu = globalState.walletGuideConfig) === null || _globalState$walletGu === void 0 ? void 0 : _globalState$walletGu.show) === 0) return false;
|
|
753
|
+
return (walletShopList === null || walletShopList === void 0 ? void 0 : walletShopList.length) > 0 && !(list !== null && list !== void 0 && list.length);
|
|
754
|
+
}, [walletShopList, list, globalState === null || globalState === void 0 ? void 0 : globalState.walletGuideConfig]);
|
|
755
|
+
|
|
713
756
|
// 确保renderContent总是返回JSX,避免返回null
|
|
714
757
|
var renderContent = function renderContent() {
|
|
715
758
|
// 如果列表为空,不显示任何内容
|
|
716
|
-
if (list.length === 0) {
|
|
759
|
+
if (list.length === 0 && !isShowGuide) {
|
|
717
760
|
return null;
|
|
718
761
|
}
|
|
719
762
|
|
|
@@ -722,7 +765,12 @@ var WalletList = Provider(function (props) {
|
|
|
722
765
|
className: "pisell-wallet-list-container"
|
|
723
766
|
}, /*#__PURE__*/React.createElement("div", {
|
|
724
767
|
className: "wallet-content"
|
|
725
|
-
}, /*#__PURE__*/React.createElement(
|
|
768
|
+
}, isShowGuide ? /*#__PURE__*/React.createElement(WalletCard, _extends({
|
|
769
|
+
key: getUniqueId(),
|
|
770
|
+
isGuide: true
|
|
771
|
+
}, globalState, {
|
|
772
|
+
walletGuideConfig: (globalState === null || globalState === void 0 ? void 0 : globalState.walletGuideConfig) || defaultWalletGuideConfig()
|
|
773
|
+
})) : /*#__PURE__*/React.createElement(Carousel, _extends({
|
|
726
774
|
ref: carouselRef
|
|
727
775
|
}, carouselProps), list.map(function (item) {
|
|
728
776
|
return renderWalletCard(item);
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
opacity: 1;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
>div {
|
|
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,9 +224,10 @@
|
|
|
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.9);
|
|
228
228
|
backdrop-filter: blur(4px);
|
|
229
|
-
box-shadow: 0px 2px 4px rgba(16, 24, 40, 0.1),
|
|
229
|
+
box-shadow: 0px 2px 4px rgba(16, 24, 40, 0.1),
|
|
230
|
+
0px 1px 3px rgba(16, 24, 40, 0.1);
|
|
230
231
|
z-index: 10;
|
|
231
232
|
position: relative;
|
|
232
233
|
/* 确保相对定位 */
|
|
@@ -244,8 +245,9 @@
|
|
|
244
245
|
}
|
|
245
246
|
|
|
246
247
|
&:hover {
|
|
247
|
-
background-color: #
|
|
248
|
-
box-shadow: 0px 3px 6px rgba(16, 24, 40, 0.15),
|
|
248
|
+
background-color: #ffffff;
|
|
249
|
+
box-shadow: 0px 3px 6px rgba(16, 24, 40, 0.15),
|
|
250
|
+
0px 2px 4px rgba(16, 24, 40, 0.1);
|
|
249
251
|
}
|
|
250
252
|
|
|
251
253
|
&.disabled {
|
|
@@ -253,7 +255,8 @@
|
|
|
253
255
|
opacity: 0.7;
|
|
254
256
|
|
|
255
257
|
&:hover {
|
|
256
|
-
box-shadow: 0px 2px 4px rgba(16, 24, 40, 0.1),
|
|
258
|
+
box-shadow: 0px 2px 4px rgba(16, 24, 40, 0.1),
|
|
259
|
+
0px 1px 3px rgba(16, 24, 40, 0.1);
|
|
257
260
|
}
|
|
258
261
|
}
|
|
259
262
|
|
|
@@ -269,17 +272,18 @@
|
|
|
269
272
|
justify-content: center;
|
|
270
273
|
padding: 12px;
|
|
271
274
|
border-radius: 17px;
|
|
272
|
-
background: rgba(255, 255, 255, 0.
|
|
275
|
+
background: rgba(255, 255, 255, 0.9);
|
|
273
276
|
backdrop-filter: blur(4px);
|
|
274
277
|
height: 34px;
|
|
275
278
|
z-index: 100;
|
|
276
|
-
box-shadow: 0px 2px 4px rgba(16, 24, 40, 0.1),
|
|
279
|
+
box-shadow: 0px 2px 4px rgba(16, 24, 40, 0.1),
|
|
280
|
+
0px 1px 3px rgba(16, 24, 40, 0.1);
|
|
277
281
|
|
|
278
282
|
.wallet-dot {
|
|
279
283
|
width: 10px;
|
|
280
284
|
height: 10px;
|
|
281
285
|
border-radius: 50%;
|
|
282
|
-
background-color: #
|
|
286
|
+
background-color: #f2f4f7;
|
|
283
287
|
margin: 0 8px;
|
|
284
288
|
transition: all 0.3s ease;
|
|
285
289
|
|
|
@@ -287,7 +291,7 @@
|
|
|
287
291
|
width: 8px;
|
|
288
292
|
height: 8px;
|
|
289
293
|
border-radius: 4px;
|
|
290
|
-
background-color: #
|
|
294
|
+
background-color: #6941c6;
|
|
291
295
|
}
|
|
292
296
|
}
|
|
293
297
|
}
|
|
@@ -297,14 +301,13 @@
|
|
|
297
301
|
display: flex;
|
|
298
302
|
align-items: center;
|
|
299
303
|
justify-content: center;
|
|
300
|
-
color: #
|
|
304
|
+
color: #ffffff;
|
|
301
305
|
min-width: 70px;
|
|
302
306
|
text-align: center;
|
|
303
307
|
|
|
304
308
|
color: var(--Gray-500, #667085);
|
|
305
309
|
|
|
306
310
|
/* Text xl/Semibold */
|
|
307
|
-
font-family: Inter;
|
|
308
311
|
font-size: 20px;
|
|
309
312
|
font-style: normal;
|
|
310
313
|
font-weight: 600;
|
|
@@ -345,7 +348,6 @@
|
|
|
345
348
|
}
|
|
346
349
|
}
|
|
347
350
|
|
|
348
|
-
|
|
349
351
|
.pisell-lowcode__error {
|
|
350
352
|
text-align: center;
|
|
351
353
|
padding: 20px;
|
|
@@ -364,4 +366,4 @@
|
|
|
364
366
|
.pisell-wallet-skeleton {
|
|
365
367
|
padding: 16px;
|
|
366
368
|
}
|
|
367
|
-
}
|
|
369
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'page.wallet.guide.title': string;
|
|
4
|
+
'page.wallet.guide.subtitle': string;
|
|
5
|
+
'page.wallet.guide.button': string;
|
|
6
|
+
};
|
|
7
|
+
'zh-CN': {
|
|
8
|
+
'page.wallet.guide.title': string;
|
|
9
|
+
'page.wallet.guide.subtitle': string;
|
|
10
|
+
'page.wallet.guide.button': string;
|
|
11
|
+
};
|
|
12
|
+
'zh-HK': {
|
|
13
|
+
'page.wallet.guide.title': string;
|
|
14
|
+
'page.wallet.guide.subtitle': string;
|
|
15
|
+
'page.wallet.guide.button': string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"en": {
|
|
3
|
+
'page.wallet.guide.title': 'Activate Now!',
|
|
4
|
+
'page.wallet.guide.subtitle': 'Unlock membership benefits now',
|
|
5
|
+
'page.wallet.guide.button': 'Get Your Reward'
|
|
6
|
+
},
|
|
7
|
+
'zh-CN': {
|
|
8
|
+
'page.wallet.guide.title': '待解锁权益',
|
|
9
|
+
'page.wallet.guide.subtitle': '成为专属会员,即可享受更多权益',
|
|
10
|
+
'page.wallet.guide.button': '点击获取'
|
|
11
|
+
},
|
|
12
|
+
'zh-HK': {
|
|
13
|
+
'page.wallet.guide.title': '待解鎖權益',
|
|
14
|
+
'page.wallet.guide.subtitle': '成為專屬會員,即可享受更多權益',
|
|
15
|
+
'page.wallet.guide.button': '點擊獲取'
|
|
16
|
+
}
|
|
17
|
+
};
|
|
@@ -10,3 +10,11 @@ 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,4 +66,42 @@ 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
|
+
};
|
|
69
107
|
}();
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @title: 默认引导页配置
|
|
3
|
+
* @description:
|
|
4
|
+
* @param {any} locales
|
|
5
|
+
* @return {any}
|
|
6
|
+
* @Author: WangHan
|
|
7
|
+
* @Date: 2025-06-09 14:22
|
|
8
|
+
*/
|
|
9
|
+
export declare const defaultWalletGuideConfig: () => {
|
|
10
|
+
show: number;
|
|
11
|
+
align: string;
|
|
12
|
+
backgroundColor: string;
|
|
13
|
+
backgroundImage: string;
|
|
14
|
+
backgroundImageAlt: string;
|
|
15
|
+
buttonColor: string;
|
|
16
|
+
buttonBorderColor: string;
|
|
17
|
+
titleConfig: {
|
|
18
|
+
size: number;
|
|
19
|
+
color: string;
|
|
20
|
+
weight: number;
|
|
21
|
+
style: string;
|
|
22
|
+
text: any;
|
|
23
|
+
};
|
|
24
|
+
subtitleConfig: {
|
|
25
|
+
size: number;
|
|
26
|
+
color: string;
|
|
27
|
+
weight: number;
|
|
28
|
+
style: string;
|
|
29
|
+
text: any;
|
|
30
|
+
};
|
|
31
|
+
buttonConfig: {
|
|
32
|
+
size: number;
|
|
33
|
+
color: string;
|
|
34
|
+
weight: number;
|
|
35
|
+
style: string;
|
|
36
|
+
text: any;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { locales } from '@pisell/utils';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @title: 默认引导页配置
|
|
5
|
+
* @description:
|
|
6
|
+
* @param {any} locales
|
|
7
|
+
* @return {any}
|
|
8
|
+
* @Author: WangHan
|
|
9
|
+
* @Date: 2025-06-09 14:22
|
|
10
|
+
*/
|
|
11
|
+
export var defaultWalletGuideConfig = function defaultWalletGuideConfig() {
|
|
12
|
+
return {
|
|
13
|
+
show: 1,
|
|
14
|
+
//文字居中
|
|
15
|
+
align: 'center',
|
|
16
|
+
//背景颜色
|
|
17
|
+
backgroundColor: '',
|
|
18
|
+
backgroundImage: '',
|
|
19
|
+
backgroundImageAlt: '',
|
|
20
|
+
buttonColor: 'rgba(127,86,217,1)',
|
|
21
|
+
buttonBorderColor: 'rgba(127,86,217,1)',
|
|
22
|
+
// 标题配置
|
|
23
|
+
titleConfig: {
|
|
24
|
+
size: 18,
|
|
25
|
+
color: 'rgba(255,255,255,1)',
|
|
26
|
+
weight: 600,
|
|
27
|
+
style: 'normal',
|
|
28
|
+
text: locales.getText('page.wallet.guide.title')
|
|
29
|
+
},
|
|
30
|
+
// 副标题配置
|
|
31
|
+
subtitleConfig: {
|
|
32
|
+
size: 14,
|
|
33
|
+
color: 'rgba(208,213,221,1)',
|
|
34
|
+
weight: 400,
|
|
35
|
+
style: 'normal',
|
|
36
|
+
text: locales.getText('page.wallet.guide.subtitle')
|
|
37
|
+
},
|
|
38
|
+
// 按钮配置
|
|
39
|
+
buttonConfig: {
|
|
40
|
+
size: 14,
|
|
41
|
+
color: 'rgba(255,255,255,1)',
|
|
42
|
+
weight: 600,
|
|
43
|
+
style: 'normal',
|
|
44
|
+
text: locales.getText('page.wallet.guide.button')
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
};
|