Commit 74096345 by songbingqi

修复首页商品图片尺寸问题

parent 3018864e
......@@ -16,7 +16,7 @@
<view :style="loads" class="right-title">{{ category.name }}</view>
<view class="nav-right-item" v-for="item in category.goods" :key="item.goodsId">
<view class="thumbnailBox">
<image src="/static/imgs/aixin.png" v-if="item.isRecommend == 1" class="isRecommend" />
<!-- <image src="/static/imgs/aixin.png" v-if="item.isRecommend == 1" class="isRecommend" /> -->
<image @click="cart(item, category)" class="thumbnail" v-if="item.pics.thumbnailApplet" :src="item.pics.thumbnailApplet" />
<image @click="cart(item, category)" class="thumbnail" v-else :src="item.pics.thumbnail" />
</view>
......@@ -422,8 +422,8 @@ export default {
}
.thumbnail {
//缩略图
width: 160rpx;
height: 160rpx;
// max-width: 160rpx;
// max-height: 160rpx;
// margin-top: -2rpx;
vertical-align: bottom;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment