fixing bug
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
</view>
|
||||
<view class="user-comment">
|
||||
<view class="text u-line-2">{{ info.comment }}</view>
|
||||
<view class="image">
|
||||
<image v-for="(src, index) in info.images" :key="index" :src="src" mode="aspectFit"></image>
|
||||
<view class="image" v-if="info.comment_img">
|
||||
<image :src="info.comment_img" mode="aspectFit" @click="previewImage(info.comment_img)"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -19,6 +19,14 @@ export default {
|
||||
},
|
||||
props: {
|
||||
info: Object,
|
||||
},
|
||||
methods: {
|
||||
previewImage(urls) {
|
||||
// console.log(urls)
|
||||
uni.previewImage({
|
||||
urls: urls,
|
||||
});
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
@@ -47,12 +55,12 @@ export default {
|
||||
font-size: 26rpx;
|
||||
color: rgba(51,51,51,1);
|
||||
line-height: 40rpx;
|
||||
margin-bottom: 19rpx;
|
||||
}
|
||||
.image {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
> image {
|
||||
margin-top: 20rpx;
|
||||
width: 210rpx;
|
||||
height: 210rpx;
|
||||
border-radius: 10rpx;
|
||||
|
||||
Reference in New Issue
Block a user