@pisell/private-materials 3.0.43 → 3.0.44
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.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/booking/info/service/addService/index.js +7 -0
- package/lib/components/booking/info/service/addService/index.js +7 -0
- package/package.json +3 -3
|
@@ -30,6 +30,7 @@ import { getProductDetail } from "../serve";
|
|
|
30
30
|
import { getIsBundleOrCombination } from "../../utils";
|
|
31
31
|
import { formatProductListByCategory, getProductTotalPrice, request, getCacheParams, deleteCacheParams } from "../../../utils";
|
|
32
32
|
import { locales, getUniqueId } from "@pisell/utils";
|
|
33
|
+
var shopList = [2886, 4422, 5538];
|
|
33
34
|
var getCacheResourceId = function getCacheResourceId() {
|
|
34
35
|
var serviceParams = getCacheParams();
|
|
35
36
|
var resId = Number(serviceParams === null || serviceParams === void 0 ? void 0 : serviceParams.resource_id);
|
|
@@ -306,6 +307,12 @@ var Info = function Info() {
|
|
|
306
307
|
return state.service.value.length > 0;
|
|
307
308
|
}, [state.service.value]);
|
|
308
309
|
useEffect(function () {
|
|
310
|
+
var _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4, _context$appHelper$ut5;
|
|
311
|
+
// Salonip 不要这个
|
|
312
|
+
|
|
313
|
+
if (shopList.includes((_context$appHelper$ut = context.appHelper.utils.store) === null || _context$appHelper$ut === void 0 ? void 0 : (_context$appHelper$ut2 = _context$appHelper$ut.getState) === null || _context$appHelper$ut2 === void 0 ? void 0 : (_context$appHelper$ut3 = _context$appHelper$ut2.call(_context$appHelper$ut)) === null || _context$appHelper$ut3 === void 0 ? void 0 : (_context$appHelper$ut4 = _context$appHelper$ut3.global) === null || _context$appHelper$ut4 === void 0 ? void 0 : (_context$appHelper$ut5 = _context$appHelper$ut4.globalConfig) === null || _context$appHelper$ut5 === void 0 ? void 0 : _context$appHelper$ut5.id)) {
|
|
314
|
+
return;
|
|
315
|
+
}
|
|
309
316
|
// 如果弹窗打开,并且是创建, 则自动打开选择服务的弹窗
|
|
310
317
|
if (state.modalOpen && !state.bookingId) {
|
|
311
318
|
handleSelectService();
|
|
@@ -45,6 +45,7 @@ var import_serve = require("../serve");
|
|
|
45
45
|
var import_utils = require("../../utils");
|
|
46
46
|
var import_utils2 = require("../../../utils");
|
|
47
47
|
var import_utils3 = require("@pisell/utils");
|
|
48
|
+
var shopList = [2886, 4422, 5538];
|
|
48
49
|
var getCacheResourceId = () => {
|
|
49
50
|
const serviceParams = (0, import_utils2.getCacheParams)();
|
|
50
51
|
let resId = Number(serviceParams == null ? void 0 : serviceParams.resource_id);
|
|
@@ -222,6 +223,12 @@ var Info = () => {
|
|
|
222
223
|
return state.service.value.length > 0;
|
|
223
224
|
}, [state.service.value]);
|
|
224
225
|
(0, import_react.useEffect)(() => {
|
|
226
|
+
var _a2, _b2, _c2, _d, _e;
|
|
227
|
+
if (shopList.includes(
|
|
228
|
+
(_e = (_d = (_c2 = (_b2 = (_a2 = context.appHelper.utils.store) == null ? void 0 : _a2.getState) == null ? void 0 : _b2.call(_a2)) == null ? void 0 : _c2.global) == null ? void 0 : _d.globalConfig) == null ? void 0 : _e.id
|
|
229
|
+
)) {
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
225
232
|
if (state.modalOpen && !state.bookingId) {
|
|
226
233
|
handleSelectService();
|
|
227
234
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.44",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"react-infinite-scroll-component": "^6.1.0",
|
|
60
60
|
"rc-virtual-list": "^3.11.3",
|
|
61
61
|
"@pisell/utils": "1.0.24",
|
|
62
|
-
"@pisell/
|
|
63
|
-
"@pisell/
|
|
62
|
+
"@pisell/icon": "0.0.8",
|
|
63
|
+
"@pisell/date-picker": "1.0.69"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"react": "^18.0.0",
|