Browse Source

更新 'hichina-main-front-mobile-first/src/pages/ProductDetailPage.vue'

fxie 1 year ago
parent
commit
1f519b6e16
1 changed files with 2 additions and 1 deletions
  1. 2 1
      hichina-main-front-mobile-first/src/pages/ProductDetailPage.vue

+ 2 - 1
hichina-main-front-mobile-first/src/pages/ProductDetailPage.vue

@@ -346,7 +346,8 @@ export default {
         totalPrice.value =
           adultCount.value * adultUnitPrice.value +
           childCount.value * childUnitPrice.value +
-          infantCount.value * infantUnitPrice.value;
+          infantCount.value * infantUnitPrice.value +
+          (adultCount.value % 2 == 0 ? 0 : 1*singleDiffPrice.value);
       } else {
         totalPrice.value = generalPrice.value * buyCount.value;
       }