deming/components/mine/comment/index.vue

72 lines
1.6 KiB
Vue
Raw Normal View History

2020-06-08 15:23:23 +08:00
<template>
<view class="comment">
<view class="user-info">
<image src="@/pageE/static/mine/23.png" class="user-avatar"></image>
<view class="user-name">***</view>
</view>
<view class="user-comment">
<view class="text u-line-2">宝贝收到了和卖家描述的一样,质量不错,很漂亮一直想买这样的杯子这个蓝色的稍微有点小瑕疵不过自己用没问题没问题没问题</view>
<view class="image">
<image v-for="(src, index) in ImageList" :key="index" :src="src" mode="aspectFit"></image>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
ImageList: [
require('@/pageE/static/mine/23.png'),
require('@/pageE/static/mine/23.png'),
require('@/pageE/static/mine/23.png'),
require('@/pageE/static/mine/23.png')
]
}
}
};
</script>
<style lang="scss" scoped>
.comment {
padding: 30rpx;
width: 750rpx;
background: rgba(255,255,255,1);
.user-info {
display: flex;
align-items: center;
margin-bottom: 19rpx;
.user-avatar {
width: 60rpx;
height: 60rpx;
border-radius: 50%;
margin-right: 20rpx;
}
.user-name {
font-size: 26rpx;
color: rgba(153,153,153,1);
}
}
.user-comment {
.text {
font-size: 26rpx;
color: rgba(51,51,51,1);
line-height: 40rpx;
margin-bottom: 19rpx;
}
.image {
display: flex;
flex-wrap: wrap;
> image {
width: 210rpx;
height: 210rpx;
border-radius: 10rpx;
margin-bottom: 20rpx;
flex-shrink: 0;
&:not(:nth-child(3n)) {
margin-right: 30rpx;
}
}
}
}
}
</style>