提交 c790780f 编写于 作者: api工厂's avatar api工厂

fix商品首页图片变形;fix 商品详细页面商品变形

上级 fa5a0b66
......@@ -5,7 +5,7 @@
autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" bindchange="swiperchange">
<block wx:for="{{goodsDetail.pics}}" wx:key="id">
<swiper-item>
<image src="{{item.pic}}" class="slide-image" width="355" height="150"/>
<image src="{{item.pic}}" class="slide-image" width="355" height="150" mode="aspectFit" lazy-load="true"/>
</swiper-item>
</block>
</swiper>
......
......@@ -54,7 +54,7 @@
<view class="goods-container">
<view class="goods-box" wx:for-items="{{goods}}" wx:key="{{index}}" bindtap="toDetailsTap" data-id="{{item.id}}">
<view class="img-box">
<image src="{{item.pic}}" class="image"/>
<image src="{{item.pic}}" class="image" mode="aspectFill" lazy-load="true"/>
</view>
<view class="goods-title">{{item.name}}</view>
<view class="goods-price">¥ {{item.minPrice}}</view>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册