diff --git a/pages/component/commonComponents/selectGoods.vue b/pages/component/commonComponents/selectGoods.vue index 4b81ac9..c0117ae 100644 --- a/pages/component/commonComponents/selectGoods.vue +++ b/pages/component/commonComponents/selectGoods.vue @@ -24,31 +24,42 @@ - - - ¥{{(selectGoodsData.vipPrice).toFixed(2)}} - VIP到手价 - - - - - - - - ¥{{(selectGoodsData.activityPrice).toFixed(2)}} - 活动价 - - - - - - - ¥{{Number(selectGoodsData.price).toFixed(2)}} - + + ¥{{ selectGoodsData.vipPrice.toFixed(2) }} + VIP到手价 + + + + + ¥{{ selectGoodsData.activityPrice.toFixed(2) }} + 活动价 + + + + + ¥{{ Number(selectGoodsData.price).toFixed(2) }} + {{ slotProps.row.productName }} - + - - - ¥{{ slotProps.row.vipPrice.toFixed(2) }} - - ¥{{ Number(slotProps.row.price).toFixed(2) }} - - - - ¥{{ slotProps.row.activityPrice.toFixed(2) }} - - ¥{{ Number(slotProps.row.price).toFixed(2) }} - - - ¥{{ Number(slotProps.row.price).toFixed(2) }} + 0 + ) { + return ` + + ¥${Number(slotProps.row.vipPrice).toFixed(2)} + + + ¥${Number(slotProps.row.price).toFixed(2)} + +`; + } else if (Number(slotProps.row.activityPrice) > 0) { + return ` + + ¥${Number(slotProps.row.activityPrice).toFixed(2)} + + + ¥${Number(slotProps.row.price).toFixed(2)} + +`; + } else { + return ` + ¥${Number(slotProps.row.price).toFixed(2)} +`; + } + }, // 放大图片 previewImage(url) { console.log(url); diff --git a/pages/goods/index/index.vue b/pages/goods/index/index.vue index b69f7e5..8e6676a 100644 --- a/pages/goods/index/index.vue +++ b/pages/goods/index/index.vue @@ -428,6 +428,7 @@ @buttonClick="onHandleClickBuy1" /> +