@pisell/private-materials 3.3.53 → 3.3.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/meta.js +1 -1
- 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 +2 -2
- package/es/components/appointmentBooking/components/Content/index.d.ts +0 -1
- package/es/components/appointmentBooking/components/Header/index.d.ts +0 -1
- package/es/components/booking/components/footer/index.d.ts +1 -0
- package/es/components/booking/info/index.d.ts +1 -0
- package/es/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/es/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/es/components/eventBooking/components/progressBar/index.js +16 -0
- package/es/components/eventBooking/index.d.ts +0 -1
- package/es/components/pay/toC/PaymentList/index.js +10 -4
- package/es/components/pay/toC/PaymentList/serve.d.ts +1 -1
- package/es/components/pay/toC/PaymentList/serve.js +7 -1
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +30 -13
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.js +30 -13
- package/es/components/pay/toC/PaymentMethods/index.js +29 -2
- package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/es/components/pay/toC/WalletPassBlock/index.less +4 -0
- package/es/components/pay/toC/index.js +38 -30
- package/es/components/pay/toC/utils.d.ts +6 -0
- package/es/components/pay/toC/utils.js +21 -0
- package/es/components/wallet/index.js +51 -5
- package/lib/components/appointmentBooking/components/Content/index.d.ts +0 -1
- package/lib/components/appointmentBooking/components/Header/index.d.ts +0 -1
- package/lib/components/booking/components/footer/index.d.ts +1 -0
- package/lib/components/booking/info/index.d.ts +1 -0
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/booking/info2/service/addTimeModal/index.d.ts +1 -0
- package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
- package/lib/components/eventBooking/components/progressBar/index.js +15 -0
- package/lib/components/eventBooking/index.d.ts +0 -1
- package/lib/components/pay/toC/PaymentList/index.js +11 -6
- package/lib/components/pay/toC/PaymentList/serve.d.ts +1 -1
- package/lib/components/pay/toC/PaymentList/serve.js +5 -2
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +10 -1
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.js +10 -1
- package/lib/components/pay/toC/PaymentMethods/index.js +28 -4
- package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
- package/lib/components/pay/toC/WalletPassBlock/index.less +4 -0
- package/lib/components/pay/toC/index.js +20 -13
- package/lib/components/pay/toC/utils.d.ts +6 -0
- package/lib/components/pay/toC/utils.js +15 -0
- package/lib/components/wallet/index.js +26 -1
- package/package.json +4 -4
- package/es/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
- package/lib/components/booking/info2/service/editService/Resources/index.d.ts +0 -4
|
@@ -239,9 +239,21 @@ var Wallet = (0, import_model.Provider)(() => {
|
|
|
239
239
|
]
|
|
240
240
|
};
|
|
241
241
|
const menuItem = ({ count = 0, title = "" }) => /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-wallet-menu-item" }, /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement("span", { className: "pisell-lowcode-wallet-menu-title" }, title), count > 0 && /* @__PURE__ */ import_react.default.createElement(import_materials.Badge, { styleType: "default", count })), /* @__PURE__ */ import_react.default.createElement(import_icons.RightOutlined, null));
|
|
242
|
+
const mergeSearch = (currentSearch, params) => {
|
|
243
|
+
const searchParams = new URLSearchParams(currentSearch);
|
|
244
|
+
Object.entries(params).forEach(([key, value]) => {
|
|
245
|
+
searchParams.set(key, value);
|
|
246
|
+
});
|
|
247
|
+
return searchParams.toString();
|
|
248
|
+
};
|
|
242
249
|
const MenuProps = {
|
|
243
250
|
className: "pisell-lowcode-wallet-menu",
|
|
244
251
|
onClick: (e) => {
|
|
252
|
+
var _a2, _b2;
|
|
253
|
+
(_b2 = (_a2 = context.appHelper.utils) == null ? void 0 : _a2.history) == null ? void 0 : _b2.push({
|
|
254
|
+
hash: location.hash,
|
|
255
|
+
search: mergeSearch(location.search, { type: "list" })
|
|
256
|
+
});
|
|
245
257
|
dispatch({
|
|
246
258
|
type: "setState",
|
|
247
259
|
payload: {
|
|
@@ -286,12 +298,22 @@ var Wallet = (0, import_model.Provider)(() => {
|
|
|
286
298
|
}
|
|
287
299
|
]
|
|
288
300
|
};
|
|
301
|
+
(0, import_react.useEffect)(() => {
|
|
302
|
+
const searchParams = new URLSearchParams(location.search);
|
|
303
|
+
const type = searchParams.get("type");
|
|
304
|
+
if (type) {
|
|
305
|
+
dispatch({ type: "setState", payload: { setup: type } });
|
|
306
|
+
} else {
|
|
307
|
+
dispatch({ type: "setState", payload: { setup: "menu" } });
|
|
308
|
+
}
|
|
309
|
+
}, [location.search]);
|
|
289
310
|
const onBack = () => {
|
|
290
311
|
if (setup === "menu") {
|
|
291
312
|
history.back();
|
|
292
313
|
} else {
|
|
293
314
|
const prevSetup = setup === "detail" ? "list" : "menu";
|
|
294
315
|
dispatch({ type: "setState", payload: { setup: prevSetup } });
|
|
316
|
+
history.back();
|
|
295
317
|
}
|
|
296
318
|
};
|
|
297
319
|
const openAddModal = () => {
|
|
@@ -424,7 +446,10 @@ var Wallet = (0, import_model.Provider)(() => {
|
|
|
424
446
|
}
|
|
425
447
|
return null;
|
|
426
448
|
};
|
|
427
|
-
const renderMobileLayout = () =>
|
|
449
|
+
const renderMobileLayout = () => {
|
|
450
|
+
var _a2, _b2, _c2;
|
|
451
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-wallet-mobile" }, !((_c2 = (_b2 = (_a2 = utils == null ? void 0 : utils.interaction) == null ? void 0 : _a2.utils) == null ? void 0 : _b2.isAppEnv) == null ? void 0 : _c2.call(_b2)) && /* @__PURE__ */ import_react.default.createElement(import_WalletBar.default, { setup, onBack }), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-wallet-content" }, renderMobileContent()), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode-wallet-footer" }, renderMobileFooter()));
|
|
452
|
+
};
|
|
428
453
|
const renderSearchCard = (item) => {
|
|
429
454
|
const {
|
|
430
455
|
id,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.56",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"react-infinite-scroll-component": "^6.1.0",
|
|
60
60
|
"rc-virtual-list": "^3.11.3",
|
|
61
61
|
"decimal.js": "^10.4.3",
|
|
62
|
-
"@pisell/
|
|
63
|
-
"@pisell/
|
|
62
|
+
"@pisell/materials": "3.3.22",
|
|
63
|
+
"@pisell/utils": "1.0.42",
|
|
64
64
|
"@pisell/date-picker": "3.0.2",
|
|
65
|
-
"@pisell/
|
|
65
|
+
"@pisell/icon": "0.0.11"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"react": "^18.0.0",
|