@pisell/pisellos 0.0.432 → 0.0.433
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.
|
@@ -49,5 +49,5 @@ export declare class Product extends BaseModule implements Module {
|
|
|
49
49
|
getCategories(): ProductCategory[];
|
|
50
50
|
setOtherParams(key: string, value: any): void;
|
|
51
51
|
getOtherParams(): any;
|
|
52
|
-
getProductType(): "
|
|
52
|
+
getProductType(): "duration" | "session" | "normal";
|
|
53
53
|
}
|
|
@@ -4277,6 +4277,13 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
4277
4277
|
}
|
|
4278
4278
|
}
|
|
4279
4279
|
});
|
|
4280
|
+
// 可能存在 renderList 没有的情况,则需要判断 resource.optional_resource 和 resource.default_resource 是否存在那个资源,如果不存在也打上 onlyComputed 的标记
|
|
4281
|
+
currentResourcesList.forEach(function (item) {
|
|
4282
|
+
var _resource$optional_re, _resource$default_res;
|
|
4283
|
+
if (!((_resource$optional_re = resource.optional_resource) !== null && _resource$optional_re !== void 0 && _resource$optional_re.includes(item.id)) && !((_resource$default_res = resource.default_resource) !== null && _resource$default_res !== void 0 && _resource$default_res.includes(item.id))) {
|
|
4284
|
+
item.onlyComputed = true;
|
|
4285
|
+
}
|
|
4286
|
+
});
|
|
4280
4287
|
// currentResourcesList 排序,onlyComputed 的资源排在前面先计算
|
|
4281
4288
|
currentResourcesList.sort(function (a, b) {
|
|
4282
4289
|
return a.onlyComputed ? -1 : 1;
|
|
@@ -49,5 +49,5 @@ export declare class Product extends BaseModule implements Module {
|
|
|
49
49
|
getCategories(): ProductCategory[];
|
|
50
50
|
setOtherParams(key: string, value: any): void;
|
|
51
51
|
getOtherParams(): any;
|
|
52
|
-
getProductType(): "
|
|
52
|
+
getProductType(): "duration" | "session" | "normal";
|
|
53
53
|
}
|
|
@@ -2995,6 +2995,12 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
|
|
|
2995
2995
|
}
|
|
2996
2996
|
}
|
|
2997
2997
|
});
|
|
2998
|
+
currentResourcesList.forEach((item2) => {
|
|
2999
|
+
var _a3, _b2;
|
|
3000
|
+
if (!((_a3 = resource.optional_resource) == null ? void 0 : _a3.includes(item2.id)) && !((_b2 = resource.default_resource) == null ? void 0 : _b2.includes(item2.id))) {
|
|
3001
|
+
item2.onlyComputed = true;
|
|
3002
|
+
}
|
|
3003
|
+
});
|
|
2998
3004
|
currentResourcesList.sort((a, b) => {
|
|
2999
3005
|
return a.onlyComputed ? -1 : 1;
|
|
3000
3006
|
});
|