@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,139 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/ticketBooking/utils/formatTime.ts
|
|
30
|
+
var formatTime_exports = {};
|
|
31
|
+
__export(formatTime_exports, {
|
|
32
|
+
formatMultiDayDate: () => formatMultiDayDate,
|
|
33
|
+
getServiceTime: () => getServiceTime,
|
|
34
|
+
isEn: () => isEn
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(formatTime_exports);
|
|
37
|
+
var import_dayjs = __toESM(require("dayjs"));
|
|
38
|
+
var import_utils = require("@pisell/utils");
|
|
39
|
+
var import_zh_cn = require("dayjs/locale/zh-cn");
|
|
40
|
+
var import_en = require("dayjs/locale/en");
|
|
41
|
+
var import_zh_tw = require("dayjs/locale/zh-tw");
|
|
42
|
+
var isEn = (item) => {
|
|
43
|
+
const locale = (item == null ? void 0 : item.locale) || "en-US";
|
|
44
|
+
const _isEn = locale === "en-US" || locale === "en";
|
|
45
|
+
const localeTypes = {
|
|
46
|
+
"en-US": "en",
|
|
47
|
+
"zh-CN": "zh-cn",
|
|
48
|
+
"zh-HK": "zh-tw"
|
|
49
|
+
};
|
|
50
|
+
import_dayjs.default.locale(localeTypes[locale]);
|
|
51
|
+
return _isEn;
|
|
52
|
+
};
|
|
53
|
+
var formatMultiDayDate = (item) => {
|
|
54
|
+
const _isEn = isEn(item);
|
|
55
|
+
const startDate = (0, import_dayjs.default)(item == null ? void 0 : item.start_date);
|
|
56
|
+
const endDate = (0, import_dayjs.default)(item == null ? void 0 : item.end_date);
|
|
57
|
+
const _format = _isEn ? "ddd, DD/MM/YYYY" : "YYYY-MM-DD,ddd";
|
|
58
|
+
const date = `${startDate.format(_format)} ~ ${endDate.format(_format)}`;
|
|
59
|
+
return date;
|
|
60
|
+
};
|
|
61
|
+
var getServiceTime = (item, currentDate, utils) => {
|
|
62
|
+
var _a, _b, _c, _d;
|
|
63
|
+
if (!(0, import_dayjs.default)(currentDate).isValid()) return "";
|
|
64
|
+
const locale = (item == null ? void 0 : item.locale) || ((_a = utils == null ? void 0 : utils.storage) == null ? void 0 : _a.get("umi_locale")) || "en-US";
|
|
65
|
+
const isEn2 = locale === "en-US" || locale === "en";
|
|
66
|
+
const localeTypes = {
|
|
67
|
+
"en-US": "en",
|
|
68
|
+
"zh-CN": "zh-cn",
|
|
69
|
+
"zh-HK": "zh-tw"
|
|
70
|
+
};
|
|
71
|
+
import_dayjs.default.locale(localeTypes[locale]);
|
|
72
|
+
let startDate = (0, import_dayjs.default)(item == null ? void 0 : item.start_date);
|
|
73
|
+
let endDate = (0, import_dayjs.default)(item == null ? void 0 : item.end_date);
|
|
74
|
+
let diffInDays = (item == null ? void 0 : item.custom_day_count) || endDate.diff(startDate, "day");
|
|
75
|
+
if (item == null ? void 0 : item.duration_type) {
|
|
76
|
+
const sameDay = startDate.isSame(endDate, "day");
|
|
77
|
+
const dateFormat = isEn2 ? "DD/MM/YYYY" : "YYYY-MM-DD";
|
|
78
|
+
const timeFormat = "HH:mm";
|
|
79
|
+
const startTime = (item == null ? void 0 : item.start_time) || startDate.format(timeFormat);
|
|
80
|
+
const endTime = (item == null ? void 0 : item.end_time) || endDate.format(timeFormat);
|
|
81
|
+
let dateTime = "";
|
|
82
|
+
if (sameDay) {
|
|
83
|
+
if (isEn2) {
|
|
84
|
+
dateTime = `${startTime} ~ ${endTime} ${startDate.format(dateFormat)}`;
|
|
85
|
+
} else {
|
|
86
|
+
dateTime = `${startDate.format(dateFormat)} ${startTime} ~ ${endTime}`;
|
|
87
|
+
}
|
|
88
|
+
} else {
|
|
89
|
+
if (isEn2) {
|
|
90
|
+
dateTime = `${startTime} ${startDate.format(dateFormat)} ~ ${endTime} ${endDate.format(dateFormat)}`;
|
|
91
|
+
} else {
|
|
92
|
+
dateTime = `${startDate.format(dateFormat)} ${startTime} ~ ${endDate.format(dateFormat)} ${endTime}`;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
const startDateTime = `${startDate.format("YYYY-MM-DD")} ${startTime}`;
|
|
96
|
+
const endDateTime = `${endDate.format("YYYY-MM-DD")} ${endTime}`;
|
|
97
|
+
let _duration = (0, import_dayjs.default)(endDateTime).diff((0, import_dayjs.default)(startDateTime), item == null ? void 0 : item.duration_type);
|
|
98
|
+
let durationText = "";
|
|
99
|
+
if ((item == null ? void 0 : item.duration_type) === "minutes") {
|
|
100
|
+
const hours = Math.floor(_duration / 60);
|
|
101
|
+
const minutes = _duration % 60;
|
|
102
|
+
durationText = import_utils.locales.getText("pisell2.product.card.hour.minute")(hours, minutes);
|
|
103
|
+
} else if ((item == null ? void 0 : item.duration_type) === "days") {
|
|
104
|
+
durationText = import_utils.locales.getText("pisell2.product.card.day")(_duration);
|
|
105
|
+
} else {
|
|
106
|
+
durationText = `${_duration}`;
|
|
107
|
+
}
|
|
108
|
+
return `${dateTime} (${durationText})`;
|
|
109
|
+
}
|
|
110
|
+
let _format = isEn2 ? "ddd, DD/MM/YYYY" : "YYYY-MM-DD,ddd";
|
|
111
|
+
if ((item == null ? void 0 : item.hasOwnProperty("format")) && ((_b = item == null ? void 0 : item.format) == null ? void 0 : _b.length) > 0) {
|
|
112
|
+
_format = isEn2 ? (_c = item == null ? void 0 : item.format) == null ? void 0 : _c[0] : (_d = item == null ? void 0 : item.format) == null ? void 0 : _d[1];
|
|
113
|
+
}
|
|
114
|
+
if (item == null ? void 0 : item.show_time) {
|
|
115
|
+
startDate = (0, import_dayjs.default)((item == null ? void 0 : item.start_time) ? `${item == null ? void 0 : item.start_date} ${item == null ? void 0 : item.start_time}` : startDate.format("YYYY-MM-DD HH:mm"));
|
|
116
|
+
endDate = (0, import_dayjs.default)((item == null ? void 0 : item.end_time) ? `${item == null ? void 0 : item.end_date} ${item == null ? void 0 : item.end_time}` : endDate.format("YYYY-MM-DD HH:mm"));
|
|
117
|
+
}
|
|
118
|
+
if ((item == null ? void 0 : item.duration_type) === "minutes") {
|
|
119
|
+
diffInDays = endDate.diff(startDate, "minute");
|
|
120
|
+
}
|
|
121
|
+
const date = `${startDate.format(_format)} ~ ${endDate.format(_format)}`;
|
|
122
|
+
let text = import_utils.locales.getText("pisell2.product.card.day")(diffInDays);
|
|
123
|
+
if (item == null ? void 0 : item.custom_day_count) {
|
|
124
|
+
text = import_utils.locales.getText("pisell2.product.card.day.event")(diffInDays);
|
|
125
|
+
}
|
|
126
|
+
const textTypes = {
|
|
127
|
+
"minutes": import_utils.locales.getText("pisell2.product.card.minute")(diffInDays),
|
|
128
|
+
"event": import_utils.locales.getText("pisell2.product.card.day.event")(diffInDays)
|
|
129
|
+
};
|
|
130
|
+
text = (textTypes == null ? void 0 : textTypes[item == null ? void 0 : item.duration_type]) || text;
|
|
131
|
+
let duration = `${diffInDays}${text}`;
|
|
132
|
+
return `${date} (${duration})`;
|
|
133
|
+
};
|
|
134
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
135
|
+
0 && (module.exports = {
|
|
136
|
+
formatMultiDayDate,
|
|
137
|
+
getServiceTime,
|
|
138
|
+
isEn
|
|
139
|
+
});
|
|
@@ -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;
|
|
@@ -40,6 +40,8 @@ var import_useEngineContext = __toESM(require("./../../hooks/useEngineContext"))
|
|
|
40
40
|
var import_serve = require("./serve");
|
|
41
41
|
var import_utils = require("@pisell/utils");
|
|
42
42
|
var import_utils2 = require("./../../utils");
|
|
43
|
+
var import_status = require("./status");
|
|
44
|
+
var import_locales = __toESM(require("./locales"));
|
|
43
45
|
var import_index = require("./index.less");
|
|
44
46
|
var import_classnames = __toESM(require("classnames"));
|
|
45
47
|
var import_types = require("./types");
|
|
@@ -98,7 +100,7 @@ var DEFAULT_WALLET_CARD = {
|
|
|
98
100
|
original: "Level",
|
|
99
101
|
"zh-CN": "Level",
|
|
100
102
|
"zh-HK": "Level",
|
|
101
|
-
|
|
103
|
+
en: "Level"
|
|
102
104
|
},
|
|
103
105
|
metadata: {
|
|
104
106
|
barcodetype: "barCode",
|
|
@@ -121,7 +123,7 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
121
123
|
const context = (0, import_useEngineContext.default)();
|
|
122
124
|
const { constants, utils } = context.appHelper || {};
|
|
123
125
|
const dvaStore = (_b = (_a = utils == null ? void 0 : utils.getStore) == null ? void 0 : _a.call(utils)) == null ? void 0 : _b.getState();
|
|
124
|
-
import_utils.locales.init(
|
|
126
|
+
import_utils.locales.init(import_locales.default, ((_c = dvaStore == null ? void 0 : dvaStore.core) == null ? void 0 : _c.translateLocale) || "en");
|
|
125
127
|
const isMountedRef = (0, import_react.useRef)(true);
|
|
126
128
|
const carouselRef = (0, import_react.useRef)(null);
|
|
127
129
|
const { store } = utils;
|
|
@@ -129,23 +131,32 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
129
131
|
const prevButtonRef = (0, import_react.useRef)(null);
|
|
130
132
|
const nextButtonRef = (0, import_react.useRef)(null);
|
|
131
133
|
const [currentIndex, setCurrentIndex] = (0, import_react.useState)(0);
|
|
134
|
+
const [walletShopList, setWalletShopList] = (0, import_react.useState)([]);
|
|
132
135
|
const requestIdRef = (0, import_react.useRef)("");
|
|
136
|
+
const pubsub = utils == null ? void 0 : utils.pubsub;
|
|
133
137
|
const isUserLoggedIn = (0, import_react.useMemo)(() => {
|
|
134
138
|
var _a2, _b2;
|
|
135
139
|
return !!((_b2 = (_a2 = utils == null ? void 0 : utils.token) == null ? void 0 : _a2.get) == null ? void 0 : _b2.call(_a2)) || false;
|
|
136
140
|
}, [store]);
|
|
137
|
-
const {
|
|
138
|
-
list = [],
|
|
139
|
-
error,
|
|
140
|
-
authError,
|
|
141
|
-
hasAttempted,
|
|
142
|
-
isLoggedIn
|
|
143
|
-
} = state;
|
|
141
|
+
const { list = [], error, authError, hasAttempted, isLoggedIn } = state;
|
|
144
142
|
(0, import_react.useEffect)(() => {
|
|
145
143
|
if (utils == null ? void 0 : utils.request) {
|
|
146
144
|
import_utils2.request.setRequest(utils.request);
|
|
147
145
|
}
|
|
148
146
|
}, [utils == null ? void 0 : utils.request]);
|
|
147
|
+
(0, import_react.useEffect)(() => {
|
|
148
|
+
if (isUserLoggedIn) {
|
|
149
|
+
(0, import_serve.getWalletShopList)({ skip: 1, num: 50 }).then((res) => {
|
|
150
|
+
pubsub.publish("wallet:shopList", res);
|
|
151
|
+
});
|
|
152
|
+
const subscription = pubsub.subscribe("wallet:shopList", (res) => {
|
|
153
|
+
setWalletShopList((res == null ? void 0 : res.list) || []);
|
|
154
|
+
});
|
|
155
|
+
return () => {
|
|
156
|
+
subscription.unsubscribe();
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
}, [isUserLoggedIn]);
|
|
149
160
|
(0, import_react.useEffect)(() => {
|
|
150
161
|
return () => {
|
|
151
162
|
isMountedRef.current = false;
|
|
@@ -285,7 +296,7 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
285
296
|
(0, import_serve.getWalletBalance)()
|
|
286
297
|
]);
|
|
287
298
|
if (!isMountedRef.current || requestIdRef.current !== requestId) return;
|
|
288
|
-
if (walletListData
|
|
299
|
+
if (walletListData) {
|
|
289
300
|
try {
|
|
290
301
|
saveToLocalStorage(STORAGE_KEY, walletListData);
|
|
291
302
|
} catch (e) {
|
|
@@ -301,7 +312,8 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
301
312
|
}
|
|
302
313
|
if (!walletBalanceData || Array.isArray(walletListData) && walletListData.length === 0) {
|
|
303
314
|
setTimeout(async () => {
|
|
304
|
-
if (!isMountedRef.current || requestIdRef.current !== requestId)
|
|
315
|
+
if (!isMountedRef.current || requestIdRef.current !== requestId)
|
|
316
|
+
return;
|
|
305
317
|
try {
|
|
306
318
|
let retryBalanceData = walletBalanceData;
|
|
307
319
|
let retryListData = walletListData;
|
|
@@ -311,7 +323,10 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
311
323
|
try {
|
|
312
324
|
saveToLocalStorage(STORAGE_KEY_BALANCE, retryBalanceData);
|
|
313
325
|
} catch (e) {
|
|
314
|
-
console.error(
|
|
326
|
+
console.error(
|
|
327
|
+
"Error saving retry balance to localStorage:",
|
|
328
|
+
e
|
|
329
|
+
);
|
|
315
330
|
}
|
|
316
331
|
}
|
|
317
332
|
}
|
|
@@ -469,11 +484,24 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
|
469
484
|
const renderBalanceCard = (0, import_react.useCallback)((balance) => {
|
|
470
485
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-balance-card", key: balance.id }, /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-card-header" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-card-title" }, balance.name), /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-card-value" }, balance.value)), /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-card-content" }, balance.items && balance.items.map((item) => /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-item", key: item.key }, /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-item-label" }, item.label), /* @__PURE__ */ import_react.default.createElement("div", { className: "balance-item-value" }, item.value)))));
|
|
471
486
|
}, []);
|
|
487
|
+
const isShowGuide = (0, import_react.useMemo)(() => {
|
|
488
|
+
var _a2;
|
|
489
|
+
if (((_a2 = globalState == null ? void 0 : globalState.walletGuideConfig) == null ? void 0 : _a2.show) === 0) return false;
|
|
490
|
+
return (walletShopList == null ? void 0 : walletShopList.length) > 0 && !(list == null ? void 0 : list.length);
|
|
491
|
+
}, [walletShopList, list, globalState == null ? void 0 : globalState.walletGuideConfig]);
|
|
472
492
|
const renderContent = () => {
|
|
473
|
-
if (list.length === 0) {
|
|
493
|
+
if (list.length === 0 && !isShowGuide) {
|
|
474
494
|
return null;
|
|
475
495
|
}
|
|
476
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-list-container" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-content" },
|
|
496
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-wallet-list-container" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-content" }, isShowGuide ? /* @__PURE__ */ import_react.default.createElement(
|
|
497
|
+
import_materials.WalletCard,
|
|
498
|
+
{
|
|
499
|
+
key: (0, import_utils.getUniqueId)(),
|
|
500
|
+
isGuide: true,
|
|
501
|
+
...globalState,
|
|
502
|
+
walletGuideConfig: (globalState == null ? void 0 : globalState.walletGuideConfig) || (0, import_status.defaultWalletGuideConfig)()
|
|
503
|
+
}
|
|
504
|
+
) : /* @__PURE__ */ import_react.default.createElement(import_materials.Carousel, { ref: carouselRef, ...carouselProps }, list.map((item) => renderWalletCard(item)))), list && list.length > 1 && isUserLoggedIn && /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-navigation" }, /* @__PURE__ */ import_react.default.createElement(
|
|
477
505
|
"div",
|
|
478
506
|
{
|
|
479
507
|
className: `wallet-nav-button wallet-prev ${currentIndex === 0 ? "disabled" : ""}`,
|
|
@@ -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,41 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/walletList/locales.ts
|
|
20
|
+
var locales_exports = {};
|
|
21
|
+
__export(locales_exports, {
|
|
22
|
+
default: () => locales_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(locales_exports);
|
|
25
|
+
var locales_default = {
|
|
26
|
+
"en": {
|
|
27
|
+
"page.wallet.guide.title": "Activate Now!",
|
|
28
|
+
"page.wallet.guide.subtitle": "Unlock membership benefits now",
|
|
29
|
+
"page.wallet.guide.button": "Get Your Reward"
|
|
30
|
+
},
|
|
31
|
+
"zh-CN": {
|
|
32
|
+
"page.wallet.guide.title": "待解锁权益",
|
|
33
|
+
"page.wallet.guide.subtitle": "成为专属会员,即可享受更多权益",
|
|
34
|
+
"page.wallet.guide.button": "点击获取"
|
|
35
|
+
},
|
|
36
|
+
"zh-HK": {
|
|
37
|
+
"page.wallet.guide.title": "待解鎖權益",
|
|
38
|
+
"page.wallet.guide.subtitle": "成為專屬會員,即可享受更多權益",
|
|
39
|
+
"page.wallet.guide.button": "點擊獲取"
|
|
40
|
+
}
|
|
41
|
+
};
|
|
@@ -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>;
|
|
@@ -20,7 +20,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
var serve_exports = {};
|
|
21
21
|
__export(serve_exports, {
|
|
22
22
|
getWalletBalance: () => getWalletBalance,
|
|
23
|
-
getWalletList: () => getWalletList
|
|
23
|
+
getWalletList: () => getWalletList,
|
|
24
|
+
getWalletShopList: () => getWalletShopList
|
|
24
25
|
});
|
|
25
26
|
module.exports = __toCommonJS(serve_exports);
|
|
26
27
|
var import_utils = require("./../../utils");
|
|
@@ -40,8 +41,20 @@ var getWalletBalance = async () => {
|
|
|
40
41
|
return null;
|
|
41
42
|
}
|
|
42
43
|
};
|
|
44
|
+
var getWalletShopList = async (params) => {
|
|
45
|
+
try {
|
|
46
|
+
const { data } = await import_utils.request.getRequest().get("/h5/wallet/shop/list", params || {}, {
|
|
47
|
+
abort: true,
|
|
48
|
+
useCache: true
|
|
49
|
+
});
|
|
50
|
+
return data || null;
|
|
51
|
+
} catch (error) {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
};
|
|
43
55
|
// Annotate the CommonJS export names for ESM import in node:
|
|
44
56
|
0 && (module.exports = {
|
|
45
57
|
getWalletBalance,
|
|
46
|
-
getWalletList
|
|
58
|
+
getWalletList,
|
|
59
|
+
getWalletShopList
|
|
47
60
|
});
|
|
@@ -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
|
+
};
|