修改团购页面图片不显示的bug

This commit is contained in:
赵毅 2025-08-25 11:32:40 +08:00
parent c15528bcde
commit aaf8962505
2 changed files with 4 additions and 1 deletions

View File

@ -247,6 +247,7 @@
.sku-item{
position: relative;
margin-bottom: 30rpx;
}
.sku-info{

View File

@ -32,7 +32,7 @@ m<template>
<view class="sku-item" @click="toDetail(sku)">
<view class="sku-info">
<view class="sku-image">
<image :src="item.commodity_pic" mode="aspectFill"></image>
<image :src="sku.commodity_pic" mode="aspectFill"></image>
</view>
<view class="goods-info">
<view class="goods-name">{{ sku.goods_name }}</view>
@ -155,6 +155,7 @@ export default {
// quantity
const group_buy_goods_list = item.group_buy_goods_list.map(sku => ({
...sku,
commodity_pic: picUrl + sku.commodity_pic,
quantity: 0
}));
return {
@ -164,6 +165,7 @@ export default {
group_buy_goods_list
}
})
console.log("🚀 ~ getGoodsList ~ list:", list)
this.goodsList = list
return res;
})