@pisell/pisellos 0.0.411 → 0.0.412
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.
|
@@ -919,8 +919,9 @@ export var getSurcharge = function getSurcharge(_ref10, options) {
|
|
|
919
919
|
mainQuantity: mainQuantity // 主商品的mainQuantity等于自己的quantity
|
|
920
920
|
});
|
|
921
921
|
}
|
|
922
|
+
var arr = (item === null || item === void 0 ? void 0 : item.bundle) || (item === null || item === void 0 ? void 0 : item.bundles) || [];
|
|
922
923
|
// 遍历子商品 原价商品符合附加费条件
|
|
923
|
-
var _iterator6 = _createForOfIteratorHelper(
|
|
924
|
+
var _iterator6 = _createForOfIteratorHelper(arr),
|
|
924
925
|
_step6;
|
|
925
926
|
try {
|
|
926
927
|
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
|
@@ -1169,7 +1170,8 @@ function resetItemsSurchargeSideEffects(_ref12) {
|
|
|
1169
1170
|
for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
|
|
1170
1171
|
var item = _step10.value;
|
|
1171
1172
|
resetItem(item);
|
|
1172
|
-
var
|
|
1173
|
+
var arr = (item === null || item === void 0 ? void 0 : item.bundle) || (item === null || item === void 0 ? void 0 : item.bundles) || [];
|
|
1174
|
+
var _iterator11 = _createForOfIteratorHelper(arr),
|
|
1173
1175
|
_step11;
|
|
1174
1176
|
try {
|
|
1175
1177
|
for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
|
|
@@ -559,7 +559,8 @@ var getSurcharge = ({ service, addons, bookingDetail, bookingId }, options) => {
|
|
|
559
559
|
// 主商品的mainQuantity等于自己的quantity
|
|
560
560
|
});
|
|
561
561
|
}
|
|
562
|
-
|
|
562
|
+
const arr = (item == null ? void 0 : item.bundle) || (item == null ? void 0 : item.bundles) || [];
|
|
563
|
+
for (let bundleItem of arr) {
|
|
563
564
|
if (getBundleItemIsOriginalPrice(bundleItem) && isProductMatchSurchargeCondition(
|
|
564
565
|
{
|
|
565
566
|
isCustomItem: false,
|
|
@@ -735,7 +736,8 @@ function resetItemsSurchargeSideEffects({ service, addons }) {
|
|
|
735
736
|
if (Array.isArray(service)) {
|
|
736
737
|
for (let item of service) {
|
|
737
738
|
resetItem(item);
|
|
738
|
-
|
|
739
|
+
const arr = (item == null ? void 0 : item.bundle) || (item == null ? void 0 : item.bundles) || [];
|
|
740
|
+
for (let bundleItem of arr)
|
|
739
741
|
resetItem(bundleItem);
|
|
740
742
|
for (let relationDetail of (item == null ? void 0 : item.relation_details) || [])
|
|
741
743
|
resetItem(relationDetail);
|