浏览代码

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

YunaiV 11 月之前
父节点
当前提交
7268659193
共有 1 个文件被更改,包括 1 次插入1 次删除
  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) => {