@pisell/pisellos 2.1.34 → 2.1.36
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(): "normal" | "duration" | "session";
|
|
53
53
|
}
|
|
@@ -1196,7 +1196,7 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
1196
1196
|
date: date
|
|
1197
1197
|
});
|
|
1198
1198
|
// 如果 quantity 大于 1,且是预约商品,则进入购物车拆散成多条数据
|
|
1199
|
-
if (addItemParams.quantity > 1 && !isNormalProduct(productData
|
|
1199
|
+
if (addItemParams.quantity > 1 && !isNormalProduct(productData)) {
|
|
1200
1200
|
for (var i = 0; i < addItemParams.quantity; i++) {
|
|
1201
1201
|
var newAddItemParams = cloneDeep(addItemParams);
|
|
1202
1202
|
newAddItemParams.quantity = 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(): "normal" | "duration" | "session";
|
|
53
53
|
}
|
|
@@ -636,7 +636,7 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
|
|
|
636
636
|
addItemParams.account = account;
|
|
637
637
|
}
|
|
638
638
|
this.addProductCheck({ date });
|
|
639
|
-
if (addItemParams.quantity > 1 && !(0, import_utils5.isNormalProduct)(productData
|
|
639
|
+
if (addItemParams.quantity > 1 && !(0, import_utils5.isNormalProduct)(productData)) {
|
|
640
640
|
for (let i = 0; i < addItemParams.quantity; i++) {
|
|
641
641
|
const newAddItemParams = (0, import_lodash_es.cloneDeep)(addItemParams);
|
|
642
642
|
newAddItemParams.quantity = 1;
|