@pisell/private-materials 3.4.54 → 3.4.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Voucher/index.js +2 -1
- package/es/components/booking/addons/index.js +20 -17
- package/es/components/booking/components/TabProduct/index.d.ts +0 -1
- package/es/components/booking/components/footer/utils.d.ts +6 -0
- package/es/components/booking/components/footer/utils.js +117 -53
- package/es/components/booking/components/voucher/index.js +27 -12
- package/es/components/booking/forms/table/index.d.ts +0 -1
- package/es/components/booking/info/service2/utils.js +1 -0
- package/es/components/booking/info2/service/addService/index.js +3 -3
- package/es/components/booking/utils.d.ts +1 -0
- package/es/components/booking/utils.js +16 -2
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +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/Status/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/es/components/schedules/products/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/es/components/systemSettings/registry/components/SectionList.js +5 -1
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +3 -3
- package/es/components/ticketBooking/utils/index.js +23 -8
- package/es/components/wallet/Detail/index.js +34 -2
- package/es/components/wallet/Detail/index.less +11 -0
- package/es/components/wallet/Detail/locales.d.ts +6 -0
- package/es/components/wallet/Detail/locales.js +14 -2
- package/es/components/wallet/Voucher/index.js +11 -10
- package/es/components/wallet/components/WalletCard.js +5 -1
- package/es/components/wallet/index.js +4 -2
- package/es/components/wallet/serve.d.ts +7 -0
- package/es/components/wallet/utils.d.ts +48 -0
- package/es/components/wallet/utils.js +342 -0
- package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
- package/es/plus/walletPassGallery/components/passDetail/index.js +79 -30
- package/es/plus/walletPassGallery/index.js +4 -2
- package/es/plus/walletPassGallery/serve.d.ts +3 -0
- package/es/plus/walletPassGallery/serve.js +6 -2
- package/es/pro/Login2.0/AuthModal.js +12 -4
- package/es/pro/Login2.0/index.less +7 -7
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Voucher/index.js +2 -1
- package/lib/components/booking/addons/index.js +10 -7
- package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
- package/lib/components/booking/components/footer/utils.d.ts +6 -0
- package/lib/components/booking/components/footer/utils.js +86 -36
- package/lib/components/booking/components/voucher/index.js +23 -7
- package/lib/components/booking/forms/table/index.d.ts +0 -1
- package/lib/components/booking/info/service2/utils.js +1 -0
- package/lib/components/booking/info2/service/addService/index.js +2 -2
- package/lib/components/booking/utils.d.ts +1 -0
- package/lib/components/booking/utils.js +12 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
- package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +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/Status/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +4 -2
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
- package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
- package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
- package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
- package/lib/components/schedules/products/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
- package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
- package/lib/components/systemSettings/registry/components/SectionList.js +4 -1
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +1 -1
- package/lib/components/ticketBooking/utils/index.js +9 -4
- package/lib/components/wallet/Detail/index.js +31 -3
- package/lib/components/wallet/Detail/index.less +11 -0
- package/lib/components/wallet/Detail/locales.d.ts +6 -0
- package/lib/components/wallet/Detail/locales.js +14 -2
- package/lib/components/wallet/Voucher/index.js +8 -8
- package/lib/components/wallet/components/WalletCard.js +4 -0
- package/lib/components/wallet/index.js +2 -2
- package/lib/components/wallet/serve.d.ts +7 -0
- package/lib/components/wallet/utils.d.ts +48 -0
- package/lib/components/wallet/utils.js +287 -0
- package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +1 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.js +50 -14
- package/lib/plus/walletPassGallery/index.js +4 -2
- package/lib/plus/walletPassGallery/serve.d.ts +3 -0
- package/lib/plus/walletPassGallery/serve.js +5 -2
- package/lib/pro/Login2.0/AuthModal.js +15 -7
- package/lib/pro/Login2.0/index.less +7 -7
- package/lowcode/wallet-pass-detail/meta.ts +89 -0
- package/package.json +4 -4
package/lib/index.d.ts
CHANGED
|
@@ -57,4 +57,5 @@ export { default as ContactInfoModal } from './plus/contactInfoModal';
|
|
|
57
57
|
export { Login2, Register2, AuthModal } from './pro/Login2.0';
|
|
58
58
|
export { default as WalletEditor } from './plus/walletEditor';
|
|
59
59
|
export { default as WalletPassGallery } from './plus/walletPassGallery';
|
|
60
|
+
export { default as WalletPassDetail } from './plus/walletPassGallery/components/passDetail';
|
|
60
61
|
export { default as SettingsRegistry } from './components/systemSettings/registry';
|
package/lib/index.js
CHANGED
|
@@ -94,6 +94,7 @@ __export(src_exports, {
|
|
|
94
94
|
Wallet: () => import_wallet.default,
|
|
95
95
|
WalletEditor: () => import_walletEditor.default,
|
|
96
96
|
WalletList: () => import_walletList.default,
|
|
97
|
+
WalletPassDetail: () => import_passDetail.default,
|
|
97
98
|
WalletPassGallery: () => import_walletPassGallery.default,
|
|
98
99
|
WorkspaceList: () => import_workSpaceList.default,
|
|
99
100
|
WorkspaceListDetail: () => import_workSpaceListDetail.default
|
|
@@ -159,6 +160,7 @@ var import_contactInfoModal = __toESM(require("./plus/contactInfoModal"));
|
|
|
159
160
|
var import_Login2 = require("./pro/Login2.0");
|
|
160
161
|
var import_walletEditor = __toESM(require("./plus/walletEditor"));
|
|
161
162
|
var import_walletPassGallery = __toESM(require("./plus/walletPassGallery"));
|
|
163
|
+
var import_passDetail = __toESM(require("./plus/walletPassGallery/components/passDetail"));
|
|
162
164
|
var import_registry = __toESM(require("./components/systemSettings/registry"));
|
|
163
165
|
import_dayjs.default.extend(import_weekday.default);
|
|
164
166
|
import_dayjs.default.extend(import_localeData.default);
|
|
@@ -229,6 +231,7 @@ import_dayjs.default.extend(import_localeData.default);
|
|
|
229
231
|
Wallet,
|
|
230
232
|
WalletEditor,
|
|
231
233
|
WalletList,
|
|
234
|
+
WalletPassDetail,
|
|
232
235
|
WalletPassGallery,
|
|
233
236
|
WorkspaceList,
|
|
234
237
|
WorkspaceListDetail
|
|
@@ -48,19 +48,26 @@ var import_recharge = __toESM(require("../recharge"));
|
|
|
48
48
|
var import_footerButton = __toESM(require("../footerButton"));
|
|
49
49
|
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
|
50
50
|
var import_index = require("./index.less");
|
|
51
|
+
var import_utils3 = require("../../../../components/wallet/utils");
|
|
52
|
+
var import_locales = __toESM(require("../../locales"));
|
|
53
|
+
var import_utils4 = require("../../../../utils");
|
|
51
54
|
var { Text } = import_antd.Typography;
|
|
52
55
|
var PassDetail = (props) => {
|
|
53
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
54
|
-
if (!props.dataSource) return null;
|
|
56
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
|
55
57
|
const { symbol = "$" } = (0, import_materials.usePisellConfig)();
|
|
56
|
-
const { dataSource, platform = "pc" } = props;
|
|
58
|
+
const { dataSource, platform = "pc", showTimeLine = true } = props;
|
|
57
59
|
const [activeKey, setActiveKey] = (0, import_react.useState)("detail");
|
|
58
60
|
const [rechargeOpen, setRechargeOpen] = (0, import_react.useState)(false);
|
|
59
61
|
const containerRef = (0, import_react.useRef)(null);
|
|
60
62
|
const isIndicatorVisibleRef = (0, import_react.useRef)(false);
|
|
61
63
|
const context = (0, import_useEngineContext.default)();
|
|
62
64
|
const { store } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || { store: {} };
|
|
63
|
-
const
|
|
65
|
+
const { apiPrefix } = ((_b = context.appHelper) == null ? void 0 : _b.constants) || { apiPrefix: "/h5" };
|
|
66
|
+
const timezone = ((_g = (_f = (_e = (_d = (_c = store == null ? void 0 : store.getState) == null ? void 0 : _c.call(store)) == null ? void 0 : _d.global) == null ? void 0 : _e.symbol) == null ? void 0 : _f.shop) == null ? void 0 : _g.timezone) || "Asia/Shanghai";
|
|
67
|
+
import_utils.locales.init(import_locales.default, ((_i = (_h = context == null ? void 0 : context.engine) == null ? void 0 : _h.props) == null ? void 0 : _i.locale) || "en");
|
|
68
|
+
if ((_k = (_j = context.appHelper) == null ? void 0 : _j.utils) == null ? void 0 : _k.request) {
|
|
69
|
+
import_utils4.request.setRequest((_m = (_l = context.appHelper) == null ? void 0 : _l.utils) == null ? void 0 : _m.request);
|
|
70
|
+
}
|
|
64
71
|
const {
|
|
65
72
|
id = "",
|
|
66
73
|
code = "",
|
|
@@ -69,17 +76,22 @@ var PassDetail = (props) => {
|
|
|
69
76
|
encoded = "",
|
|
70
77
|
balance,
|
|
71
78
|
expire_date = "",
|
|
72
|
-
product = {}
|
|
79
|
+
product = {},
|
|
80
|
+
custom_schedule_snapshot,
|
|
81
|
+
customer_id
|
|
73
82
|
} = dataSource || {};
|
|
74
83
|
const {
|
|
75
84
|
description = "",
|
|
76
85
|
extension_data = [],
|
|
77
86
|
customer_order_behavior_count = 0
|
|
78
87
|
} = product || {};
|
|
79
|
-
const _getDetail = (0, import_ahooks.useRequest)(() => (0, import_serve.getDetailApi)({ id }), {
|
|
88
|
+
const _getDetail = (0, import_ahooks.useRequest)(() => (0, import_serve.getDetailApi)({ id, apiPrefix, order_behavior_count_customer_id: customer_id }), {
|
|
80
89
|
ready: !!id,
|
|
81
|
-
refreshDeps: [id]
|
|
90
|
+
refreshDeps: [id, customer_id]
|
|
82
91
|
});
|
|
92
|
+
const scheduleList = (0, import_react.useMemo)(() => {
|
|
93
|
+
return (custom_schedule_snapshot == null ? void 0 : custom_schedule_snapshot.data) || [];
|
|
94
|
+
}, [custom_schedule_snapshot]);
|
|
83
95
|
(0, import_react.useEffect)(() => {
|
|
84
96
|
if (tag === "product_discount_card") {
|
|
85
97
|
setActiveKey("detail");
|
|
@@ -111,7 +123,29 @@ var PassDetail = (props) => {
|
|
|
111
123
|
return () => clearTimeout(timeoutId);
|
|
112
124
|
}, []);
|
|
113
125
|
const descs = (0, import_react.useMemo)(() => {
|
|
114
|
-
var _a2;
|
|
126
|
+
var _a2, _b2, _c2;
|
|
127
|
+
const detail = (0, import_utils3.formatScheduleText)(scheduleList, (_b2 = (_a2 = context == null ? void 0 : context.engine) == null ? void 0 : _a2.props) == null ? void 0 : _b2.locale);
|
|
128
|
+
let expireText = expire_date ? expire_date : import_utils.locales.getText("wallet-pass-gallery.expireDate");
|
|
129
|
+
if (scheduleList.length > 0) {
|
|
130
|
+
let validityTexts = "";
|
|
131
|
+
let excludedText = "";
|
|
132
|
+
let includedText = "";
|
|
133
|
+
detail.forEach((item) => {
|
|
134
|
+
if (item.validityTexts.length > 0) {
|
|
135
|
+
validityTexts = `${validityTexts}${item.validityTexts.join("\n")}
|
|
136
|
+
`;
|
|
137
|
+
}
|
|
138
|
+
if (item.excluded_date.length > 0) {
|
|
139
|
+
excludedText = `${excludedText}${item.excluded_date.join("\n")}
|
|
140
|
+
`;
|
|
141
|
+
}
|
|
142
|
+
if (item.included_date.length > 0) {
|
|
143
|
+
includedText = `${includedText}${item.included_date.join("\n")}
|
|
144
|
+
`;
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
expireText = /* @__PURE__ */ import_react.default.createElement("span", { className: "wallet-detail-expire-text" }, validityTexts, excludedText && /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-detail-expire-text-title" }, import_utils.locales.getText("page.wallet.notValidDate")), excludedText, includedText && /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-detail-expire-text-title" }, import_utils.locales.getText("page.wallet.includedDate")), includedText);
|
|
148
|
+
}
|
|
115
149
|
let data = [
|
|
116
150
|
{
|
|
117
151
|
label: import_utils.locales.getText("wallet-pass-gallery.cardName"),
|
|
@@ -124,11 +158,11 @@ var PassDetail = (props) => {
|
|
|
124
158
|
},
|
|
125
159
|
{
|
|
126
160
|
label: import_utils.locales.getText("wallet-pass-gallery.validDate"),
|
|
127
|
-
value:
|
|
161
|
+
value: expireText
|
|
128
162
|
}
|
|
129
163
|
];
|
|
130
164
|
if (tag === "product_discount_card") {
|
|
131
|
-
const isFixedAmount = ((
|
|
165
|
+
const isFixedAmount = ((_c2 = dataSource.metadata) == null ? void 0 : _c2.discount_card_type) === "fixed_amount";
|
|
132
166
|
data.splice(2, 0, {
|
|
133
167
|
label: import_utils.locales.getText("wallet-pass-gallery.discount"),
|
|
134
168
|
value: balance ? isFixedAmount ? `${symbol}${Number(balance)}` : `${Number(balance)}%` : ""
|
|
@@ -195,8 +229,10 @@ var PassDetail = (props) => {
|
|
|
195
229
|
};
|
|
196
230
|
const renderTimeLine = () => {
|
|
197
231
|
if (tag === "product_discount_card") return null;
|
|
232
|
+
if (!showTimeLine) return null;
|
|
198
233
|
return /* @__PURE__ */ import_react.default.createElement(import_timelineSection.default, { code, tag, timezone });
|
|
199
234
|
};
|
|
235
|
+
if (!props.dataSource) return null;
|
|
200
236
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
201
237
|
"div",
|
|
202
238
|
{
|
|
@@ -240,7 +276,7 @@ var PassDetail = (props) => {
|
|
|
240
276
|
},
|
|
241
277
|
/* @__PURE__ */ import_react.default.createElement("div", { "data-anchor": "detail" })
|
|
242
278
|
),
|
|
243
|
-
/* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement(Text, { className: "pisell-wallet-pass-gallery_detail-title" }, import_utils.locales.getText("wallet-pass-gallery.details")), platform === "pc" && tag === "gift_card" && ((
|
|
279
|
+
/* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement(Text, { className: "pisell-wallet-pass-gallery_detail-title" }, import_utils.locales.getText("wallet-pass-gallery.details")), platform === "pc" && tag === "gift_card" && ((_n = dataSource == null ? void 0 : dataSource.machinecode_config) == null ? void 0 : _n.hide_recharge) === 0 && /* @__PURE__ */ import_react.default.createElement(
|
|
244
280
|
import_antd.Button,
|
|
245
281
|
{
|
|
246
282
|
type: "primary",
|
|
@@ -272,9 +308,9 @@ var PassDetail = (props) => {
|
|
|
272
308
|
), platform === "h5" && tag === "gift_card" ? /* @__PURE__ */ import_react.default.createElement(
|
|
273
309
|
import_footerButton.default,
|
|
274
310
|
{
|
|
275
|
-
appleWalletUrl: (
|
|
276
|
-
googleWalletUrl: (
|
|
277
|
-
onRechargeClick: ((
|
|
311
|
+
appleWalletUrl: (_o = _getDetail.data) == null ? void 0 : _o.apple_wallet_url,
|
|
312
|
+
googleWalletUrl: (_p = _getDetail.data) == null ? void 0 : _p.google_wallet_url,
|
|
313
|
+
onRechargeClick: ((_q = dataSource == null ? void 0 : dataSource.machinecode_config) == null ? void 0 : _q.hide_recharge) === 0 ? () => setRechargeOpen(true) : void 0,
|
|
278
314
|
platform
|
|
279
315
|
}
|
|
280
316
|
) : null, /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -89,7 +89,8 @@ var WalletPassGallery = (props) => {
|
|
|
89
89
|
num: 20,
|
|
90
90
|
skip: (d == null ? void 0 : d.nextId) || 1,
|
|
91
91
|
tags: TAGS,
|
|
92
|
-
filter_wallet_id: walletId || void 0
|
|
92
|
+
filter_wallet_id: walletId || void 0,
|
|
93
|
+
"with": ["customScheduleSnapshot"]
|
|
93
94
|
});
|
|
94
95
|
return {
|
|
95
96
|
list: (res == null ? void 0 : res.list) || [],
|
|
@@ -115,7 +116,8 @@ var WalletPassGallery = (props) => {
|
|
|
115
116
|
num: 20,
|
|
116
117
|
skip: (d == null ? void 0 : d.nextId) || 1,
|
|
117
118
|
tags: TAGS,
|
|
118
|
-
filter_wallet_id: walletId || void 0
|
|
119
|
+
filter_wallet_id: walletId || void 0,
|
|
120
|
+
"with": ["customScheduleSnapshot"]
|
|
119
121
|
});
|
|
120
122
|
return {
|
|
121
123
|
list: (res == null ? void 0 : res.list) || [],
|
|
@@ -17,6 +17,7 @@ export interface IWalletListParmsProps {
|
|
|
17
17
|
skip?: number;
|
|
18
18
|
filter_wallet_id?: string;
|
|
19
19
|
available: 0 | 1;
|
|
20
|
+
with?: string[];
|
|
20
21
|
}
|
|
21
22
|
/**
|
|
22
23
|
* 钱包列表项属性接口
|
|
@@ -171,6 +172,8 @@ export declare const getAssetList: (params: IAssetListProps) => Promise<{
|
|
|
171
172
|
*/
|
|
172
173
|
export declare const getDetailApi: (params: {
|
|
173
174
|
id: string;
|
|
175
|
+
order_behavior_count_customer_id: string;
|
|
176
|
+
apiPrefix: string;
|
|
174
177
|
}) => Promise<IDetailResponse>;
|
|
175
178
|
/**
|
|
176
179
|
* 详情响应数据结构,供组件消费
|
|
@@ -69,11 +69,14 @@ var getAssetList = async (params) => {
|
|
|
69
69
|
return data;
|
|
70
70
|
};
|
|
71
71
|
var getDetailApi = async (params) => {
|
|
72
|
-
const { data } = await import_utils.request.getRequest().get(
|
|
72
|
+
const { data } = await import_utils.request.getRequest().get(`${params.apiPrefix || "/h5"}/machinecode/lowcode/detail/${params.id}`, {
|
|
73
73
|
order_behavior_count: 1,
|
|
74
74
|
// 订单行为次数
|
|
75
|
-
order_behavior_count_customer: 1
|
|
75
|
+
order_behavior_count_customer: 1,
|
|
76
76
|
// 客户订单行为次数
|
|
77
|
+
order_behavior_count_customer_id: params.apiPrefix === "/shop" ? params.order_behavior_count_customer_id : void 0
|
|
78
|
+
}, {
|
|
79
|
+
isOriginHost: true
|
|
77
80
|
});
|
|
78
81
|
return data;
|
|
79
82
|
};
|
|
@@ -81,7 +81,7 @@ var AuthModal = () => {
|
|
|
81
81
|
}
|
|
82
82
|
}, [currentView]);
|
|
83
83
|
const login2Config = (0, import_react.useMemo)(() => {
|
|
84
|
-
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
84
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
85
85
|
if (!localesInitialized) {
|
|
86
86
|
return {
|
|
87
87
|
loginMethods: [],
|
|
@@ -262,9 +262,13 @@ var AuthModal = () => {
|
|
|
262
262
|
show: (config == null ? void 0 : config.logo) ? true : false,
|
|
263
263
|
url: config == null ? void 0 : config.logo,
|
|
264
264
|
// 直接从 config.logo 读取
|
|
265
|
-
position: "center"
|
|
265
|
+
position: "center",
|
|
266
|
+
size: {
|
|
267
|
+
width: ((_v = config == null ? void 0 : config.logoSize) == null ? void 0 : _v.width) || 48,
|
|
268
|
+
height: ((_w = config == null ? void 0 : config.logoSize) == null ? void 0 : _w.height) || 48
|
|
269
|
+
}
|
|
266
270
|
} : void 0,
|
|
267
|
-
themeColor: ((
|
|
271
|
+
themeColor: ((_z = (_y = (_x = config == null ? void 0 : config.page) == null ? void 0 : _x.login) == null ? void 0 : _y.ui) == null ? void 0 : _z.themeColor) || "#7F56D9",
|
|
268
272
|
formLabels: {
|
|
269
273
|
email: { show: false },
|
|
270
274
|
phone: { show: false },
|
|
@@ -275,7 +279,7 @@ var AuthModal = () => {
|
|
|
275
279
|
};
|
|
276
280
|
}, [config, channel, emailLinkVerification, localesInitialized]);
|
|
277
281
|
const register2Config = (0, import_react.useMemo)(() => {
|
|
278
|
-
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
|
282
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
|
279
283
|
if (!localesInitialized) {
|
|
280
284
|
return {
|
|
281
285
|
registrationMethods: [],
|
|
@@ -395,10 +399,14 @@ var AuthModal = () => {
|
|
|
395
399
|
show: config.logo ? true : false,
|
|
396
400
|
url: config.logo,
|
|
397
401
|
// 直接从 config.logo 读取
|
|
398
|
-
position: "center"
|
|
402
|
+
position: "center",
|
|
403
|
+
size: {
|
|
404
|
+
width: ((_l = config == null ? void 0 : config.logoSize) == null ? void 0 : _l.width) || 48,
|
|
405
|
+
height: ((_m = config == null ? void 0 : config.logoSize) == null ? void 0 : _m.height) || 48
|
|
406
|
+
}
|
|
399
407
|
} : void 0,
|
|
400
|
-
themeColor: ((
|
|
401
|
-
passwordRules: transformPasswordRules((
|
|
408
|
+
themeColor: ((_p = (_o = (_n = config.page) == null ? void 0 : _n.register) == null ? void 0 : _o.ui) == null ? void 0 : _p.themeColor) || "#7F56D9",
|
|
409
|
+
passwordRules: transformPasswordRules((_q = config.auth) == null ? void 0 : _q.password),
|
|
402
410
|
// 传递密码规则
|
|
403
411
|
formLabels: {
|
|
404
412
|
email: { show: false },
|
|
@@ -326,21 +326,21 @@
|
|
|
326
326
|
.login2-submit-button {
|
|
327
327
|
height: 44px;
|
|
328
328
|
border-radius: 8px;
|
|
329
|
-
border: 1px solid var(--theme-color, #7f56d9);
|
|
330
|
-
background: var(--theme-color, #7f56d9);
|
|
329
|
+
border: 1px solid var(--custom-button-bg-color, var(--theme-color, #7f56d9));
|
|
330
|
+
background: var(--custom-button-bg-color, var(--theme-color, #7f56d9));
|
|
331
331
|
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
332
332
|
font-size: 16px;
|
|
333
333
|
font-weight: 600;
|
|
334
|
-
color: #ffffff;
|
|
334
|
+
color: var(--custom-button-text-color, #ffffff);
|
|
335
335
|
|
|
336
336
|
&:hover:not(:disabled) {
|
|
337
|
-
background: #6941c6;
|
|
338
|
-
border-color: #6941c6;
|
|
337
|
+
background: var(--custom-button-bg-color, #6941c6);
|
|
338
|
+
border-color: var(--custom-button-bg-color, #6941c6);
|
|
339
339
|
}
|
|
340
340
|
|
|
341
341
|
&:focus {
|
|
342
|
-
background: var(--theme-color, #7f56d9);
|
|
343
|
-
border-color: var(--theme-color, #7f56d9);
|
|
342
|
+
background: var(--custom-button-bg-color, var(--theme-color, #7f56d9));
|
|
343
|
+
border-color: var(--custom-button-bg-color, var(--theme-color, #7f56d9));
|
|
344
344
|
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05),
|
|
345
345
|
0px 0px 0px 4px rgba(127, 86, 217, 0.1);
|
|
346
346
|
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
const Meta = {
|
|
2
|
+
componentName: 'WalletPassDetail',
|
|
3
|
+
title: 'WalletPassDetail',
|
|
4
|
+
docUrl: '',
|
|
5
|
+
screenshot: '',
|
|
6
|
+
devMode: 'proCode',
|
|
7
|
+
npm: {
|
|
8
|
+
package: '@pisell/private-materials',
|
|
9
|
+
version: '1.1.558',
|
|
10
|
+
exportName: 'WalletPassDetail',
|
|
11
|
+
main: 'src/index.ts',
|
|
12
|
+
destructuring: true,
|
|
13
|
+
subName: '',
|
|
14
|
+
},
|
|
15
|
+
configure: {
|
|
16
|
+
props: [
|
|
17
|
+
{
|
|
18
|
+
"title": {
|
|
19
|
+
"label": {
|
|
20
|
+
"type": "i18n",
|
|
21
|
+
"en-US": "详情数据",
|
|
22
|
+
"zh-CN": "详情数据"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"name": "dataSource",
|
|
26
|
+
"setter": ["JsonSetter", "VariableSetter"],
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"title": {
|
|
30
|
+
"label": {
|
|
31
|
+
"type": "i18n",
|
|
32
|
+
"en-US": "平台",
|
|
33
|
+
"zh-CN": "平台"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"name": "platform",
|
|
37
|
+
"setter": "StringSetter",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'buttonGroupList',
|
|
41
|
+
"title": {
|
|
42
|
+
"label": {
|
|
43
|
+
"type": "i18n",
|
|
44
|
+
"en-US": "按钮组列表",
|
|
45
|
+
"zh-CN": "按钮组列表"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
type: 'array',
|
|
49
|
+
default: [],
|
|
50
|
+
setter: 'ArraySetter',
|
|
51
|
+
itemSetter: {
|
|
52
|
+
componentName: 'ObjectSetter',
|
|
53
|
+
props: {
|
|
54
|
+
itemSetter: {
|
|
55
|
+
componentName: 'ObjectSetter',
|
|
56
|
+
props: {
|
|
57
|
+
itemSetter: 'StringSetter',
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'showTimeLine',
|
|
65
|
+
title: { label: '显示时间轴', tip: 'showTimeLine | 显示时间轴' },
|
|
66
|
+
setter: 'BoolSetter',
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
supports: {},
|
|
70
|
+
component: {},
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
const snippets = [
|
|
74
|
+
{
|
|
75
|
+
title: 'wallet详情',
|
|
76
|
+
screenshot: '',
|
|
77
|
+
schema: {
|
|
78
|
+
componentName: 'WalletPassDetail',
|
|
79
|
+
props: {
|
|
80
|
+
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
];
|
|
85
|
+
|
|
86
|
+
export default {
|
|
87
|
+
...Meta,
|
|
88
|
+
snippets,
|
|
89
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.56",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
"decimal.js": "^10.4.3",
|
|
62
62
|
"@react-spring/web": "^9.6.1",
|
|
63
63
|
"@use-gesture/react": "^10.3.1",
|
|
64
|
-
"@pisell/date-picker": "3.0.3",
|
|
65
|
-
"@pisell/materials": "3.3.70",
|
|
66
64
|
"@pisell/utils": "3.0.1",
|
|
67
|
-
"@pisell/
|
|
65
|
+
"@pisell/date-picker": "3.0.3",
|
|
66
|
+
"@pisell/icon": "0.0.11",
|
|
67
|
+
"@pisell/materials": "3.3.71"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"react": "^18.0.0",
|