Commit 45e95abb by liimin

style(order): 优化售后详情页面图片展示

- 为图片添加 border-radius 和 overflow 属性,实现圆角显示
- 在 image 组件中添加 mode="aspectFill" 属性,确保图片等比例填充
1 parent e21df45b
...@@ -165,4 +165,6 @@ ...@@ -165,4 +165,6 @@
height: 200rpx; height: 200rpx;
background: #d8d8d8; background: #d8d8d8;
margin: 0 20rpx 20rpx 0; margin: 0 20rpx 20rpx 0;
border-radius: 16rpx;
overflow: hidden;
} }
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
<view class="photo-box"> <view class="photo-box">
<block wx:for="{{orderInfo.imgUrls}}" wx:key="index"> <block wx:for="{{orderInfo.imgUrls}}" wx:key="index">
<view class="item" bindtap="previewImage" data-current="{{item}}" data-urls="{{orderInfo.imgUrls}}"> <view class="item" bindtap="previewImage" data-current="{{item}}" data-urls="{{orderInfo.imgUrls}}">
<image webp src="{{item}}"></image> <image webp mode="aspectFill" class="image" src="{{item}}"></image>
</view> </view>
</block> </block>
</view> </view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!