@pisell/pisellos 0.0.105 → 0.0.107
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.
|
@@ -76,7 +76,6 @@ export var OrderModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
76
76
|
var is_deposit = 0; // 是否存在定金,0 不存在,1 存在
|
|
77
77
|
if (params.cartItems.length > 0) {
|
|
78
78
|
params.cartItems.forEach(function (item) {
|
|
79
|
-
var _item$_productOrigin;
|
|
80
79
|
if (!item._origin.duration) {
|
|
81
80
|
var _generateDuration = generateDuration(item),
|
|
82
81
|
duration = _generateDuration.duration,
|
|
@@ -84,8 +83,8 @@ export var OrderModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
84
83
|
item._origin.duration = duration;
|
|
85
84
|
item._origin.sub_type = durationType;
|
|
86
85
|
}
|
|
87
|
-
//
|
|
88
|
-
if (
|
|
86
|
+
// 零售都视为普通商品
|
|
87
|
+
if (order.type === 'virtual') {
|
|
89
88
|
var _order$relation_forms;
|
|
90
89
|
order.relation_products.push(item._origin.product);
|
|
91
90
|
var relationForms = item._origin.relation_forms || [];
|
|
@@ -1215,6 +1215,9 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
1215
1215
|
});
|
|
1216
1216
|
}
|
|
1217
1217
|
this.store.cart.updateItem(params);
|
|
1218
|
+
if (this.otherParams.isRetailTemplate) {
|
|
1219
|
+
return;
|
|
1220
|
+
}
|
|
1218
1221
|
var allOriginResources = [];
|
|
1219
1222
|
var dateRange = this.store.date.getDateRange();
|
|
1220
1223
|
if (dateRange !== null && dateRange !== void 0 && dateRange.length) {
|
|
@@ -52,13 +52,12 @@ var OrderModule = class extends import_BaseModule.BaseModule {
|
|
|
52
52
|
let is_deposit = 0;
|
|
53
53
|
if (params.cartItems.length > 0) {
|
|
54
54
|
params.cartItems.forEach((item) => {
|
|
55
|
-
var _a;
|
|
56
55
|
if (!item._origin.duration) {
|
|
57
56
|
const { duration, durationType } = (0, import_utils.generateDuration)(item);
|
|
58
57
|
item._origin.duration = duration;
|
|
59
58
|
item._origin.sub_type = durationType;
|
|
60
59
|
}
|
|
61
|
-
if (
|
|
60
|
+
if (order.type === "virtual") {
|
|
62
61
|
order.relation_products.push(item._origin.product);
|
|
63
62
|
const relationForms = item._origin.relation_forms || [];
|
|
64
63
|
order.relation_forms.push(...relationForms);
|
|
@@ -596,6 +596,9 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
|
|
|
596
596
|
});
|
|
597
597
|
}
|
|
598
598
|
this.store.cart.updateItem(params);
|
|
599
|
+
if (this.otherParams.isRetailTemplate) {
|
|
600
|
+
return;
|
|
601
|
+
}
|
|
599
602
|
const allOriginResources = [];
|
|
600
603
|
const dateRange = this.store.date.getDateRange();
|
|
601
604
|
if (dateRange == null ? void 0 : dateRange.length) {
|