diff --git a/pages/goods/groupon.vue b/pages/goods/groupon.vue index 3f464ed..ae333cf 100644 --- a/pages/goods/groupon.vue +++ b/pages/goods/groupon.vue @@ -80,7 +80,7 @@ - + @@ -90,6 +90,7 @@ {{ - fen2yuan(state.activity.price || state.goodsInfo.price) + fen2yuan(state.selectedSku.price * state.selectedSku.count || state.activity.price * state.selectedSku.count || state.goodsInfo.price * state.selectedSku.count || state.goodsInfo.price) }} 未开始 已结束 @@ -168,7 +169,7 @@ goodsInfo: {}, // 商品信息 goodsSwiper: [], // 商品轮播图 showSelectSku: false, // 显示规格弹框 - selectedSkuPrice: {}, // 选中的规格价格 + selectedSku: {}, // 选中的规格属性 activity: {}, // 团购活动 grouponId: 0, // 团购ID grouponNum: 0, // 团购人数 @@ -183,7 +184,7 @@ // 规格变更 function onSkuChange(e) { - state.selectedSkuPrice = e; + state.selectedSku = e; } function onSkuClose() { diff --git a/sheep/components/s-groupon-block/s-groupon-block.vue b/sheep/components/s-groupon-block/s-groupon-block.vue index 67da2e1..d7e6fcf 100644 --- a/sheep/components/s-groupon-block/s-groupon-block.vue +++ b/sheep/components/s-groupon-block/s-groupon-block.vue @@ -1,37 +1,38 @@