@pisell/pisellos 2.1.115 → 2.1.116
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.
|
@@ -1855,12 +1855,12 @@ export var RulesModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
1855
1855
|
return true; // 单独购买时可用
|
|
1856
1856
|
}
|
|
1857
1857
|
if (isBundleItem) {
|
|
1858
|
-
var _flatItem$bundleItem9, _flatItem$bundleItem10, _flatItem$
|
|
1858
|
+
var _flatItem$bundleItem9, _flatItem$bundleItem10, _flatItem$parentProdu10, _flatItem$originProdu;
|
|
1859
1859
|
// 套餐中购买时,判断是否为原价
|
|
1860
1860
|
var priceType = (_flatItem$bundleItem9 = flatItem.bundleItem) === null || _flatItem$bundleItem9 === void 0 ? void 0 : _flatItem$bundleItem9.price_type;
|
|
1861
1861
|
var priceTypeExt = (_flatItem$bundleItem10 = flatItem.bundleItem) === null || _flatItem$bundleItem10 === void 0 ? void 0 : _flatItem$bundleItem10.price_type_ext;
|
|
1862
1862
|
// 主商品id
|
|
1863
|
-
var mainProductId = (flatItem === null || flatItem === void 0 || (_flatItem$
|
|
1863
|
+
var mainProductId = (flatItem === null || flatItem === void 0 || (_flatItem$parentProdu10 = flatItem.parentProduct) === null || _flatItem$parentProdu10 === void 0 ? void 0 : _flatItem$parentProdu10.id) || (flatItem === null || flatItem === void 0 || (_flatItem$originProdu = flatItem.originProduct) === null || _flatItem$originProdu === void 0 ? void 0 : _flatItem$originProdu.product_id) || 0;
|
|
1864
1864
|
// original_price 对应:
|
|
1865
1865
|
// 1. price_type: "markup" && price_type_ext: "product_price"
|
|
1866
1866
|
// markup_price 对应:
|
|
@@ -1925,10 +1925,10 @@ export var RulesModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
1925
1925
|
return false; // 单独购买时不可用
|
|
1926
1926
|
}
|
|
1927
1927
|
if (isBundleItem) {
|
|
1928
|
-
var _flatItem$
|
|
1928
|
+
var _flatItem$bundleItem11, _flatItem$bundleItem12;
|
|
1929
1929
|
// 套餐中购买时,判断是否为原价
|
|
1930
|
-
var _priceType = (_flatItem$
|
|
1931
|
-
var _priceTypeExt = (_flatItem$
|
|
1930
|
+
var _priceType = (_flatItem$bundleItem11 = flatItem.bundleItem) === null || _flatItem$bundleItem11 === void 0 ? void 0 : _flatItem$bundleItem11.price_type;
|
|
1931
|
+
var _priceTypeExt = (_flatItem$bundleItem12 = flatItem.bundleItem) === null || _flatItem$bundleItem12 === void 0 ? void 0 : _flatItem$bundleItem12.price_type_ext;
|
|
1932
1932
|
|
|
1933
1933
|
// original_price 对应:
|
|
1934
1934
|
// 1. price_type: "markup" && price_type_ext: "product_price"
|
|
@@ -310,7 +310,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
310
310
|
date: string;
|
|
311
311
|
status: string;
|
|
312
312
|
week: string;
|
|
313
|
-
weekNum: 0 |
|
|
313
|
+
weekNum: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
314
314
|
}[]>;
|
|
315
315
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
316
316
|
private getScheduleDataByIds;
|
|
@@ -1410,7 +1410,7 @@ var RulesModule = class extends import_BaseModule.BaseModule {
|
|
|
1410
1410
|
if (isBundleItem) {
|
|
1411
1411
|
const priceType = (_a = flatItem.bundleItem) == null ? void 0 : _a.price_type;
|
|
1412
1412
|
const priceTypeExt = (_b = flatItem.bundleItem) == null ? void 0 : _b.price_type_ext;
|
|
1413
|
-
const mainProductId = ((_c = flatItem == null ? void 0 : flatItem.
|
|
1413
|
+
const mainProductId = ((_c = flatItem == null ? void 0 : flatItem.parentProduct) == null ? void 0 : _c.id) || ((_d = flatItem == null ? void 0 : flatItem.originProduct) == null ? void 0 : _d.product_id) || 0;
|
|
1414
1414
|
const isOriginalPrice = priceType === "markup" && priceTypeExt === "product_price";
|
|
1415
1415
|
const isMarkupPrice = priceType === "markup" && (priceTypeExt === "" || !priceTypeExt);
|
|
1416
1416
|
if (rules.length > 0) {
|
|
@@ -310,7 +310,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
310
310
|
date: string;
|
|
311
311
|
status: string;
|
|
312
312
|
week: string;
|
|
313
|
-
weekNum: 0 |
|
|
313
|
+
weekNum: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
314
314
|
}[]>;
|
|
315
315
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
316
316
|
private getScheduleDataByIds;
|