浏览代码

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

fxie 1 年之前
父节点
当前提交
1f519b6e16
共有 1 个文件被更改,包括 2 次插入1 次删除
  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;
       }