fixing bug

This commit is contained in:
2020-09-05 14:26:17 +08:00
parent e1a74972f2
commit b653379d53
8 changed files with 72 additions and 42 deletions

View File

@@ -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;

View File

@@ -110,7 +110,6 @@ export default {
left: 0;
top: 0;
z-index: 8;
background-color: aqua;
}
&:last-child {
left: 32rpx;