Browse Source

【功能修复】拼团的单买价格展示不正确

YunaiV 11 months ago
parent
commit
7268659193
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pages/goods/groupon.vue

+ 1 - 1
pages/goods/groupon.vue

@@ -265,7 +265,7 @@
     state.goodsId = spu.id;
     // 默认显示最低价
     activity.products.forEach((product) => {
-      spu.price = Math.min(spu.price, product.combinationPrice); // 设置 SPU 的最低价格
+      state.activity.price = Math.min(spu.price, product.combinationPrice); // 设置 SPU 的最低价格
     });
     // 价格、库存使用活动的
     spu.skus.forEach((sku) => {