You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
1.6 KiB
92 lines
1.6 KiB
5 months ago
|
<template>
|
||
|
<view class="comment">
|
||
|
<view class="item" v-for="(a,i) in cityInfo.evaluate">
|
||
|
<view class="avater">
|
||
|
<image :src="a.image"></image>
|
||
|
</view>
|
||
|
<view class="info">
|
||
|
<view class="a">{{a.nickname}}<text v-if="false">10分钟前</text></view>
|
||
|
<view class="b">{{a.content}}</view>
|
||
|
<view class="c" v-if="false">
|
||
|
<image v-for="o in 3" :key="o" :src="$picUrl+'/static/home/phone.jpg'"></image>
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
<addShuiyin />
|
||
|
</view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
cityInfo: {}
|
||
|
};
|
||
|
},
|
||
|
onLoad() {
|
||
|
this.cityInfo = uni.getStorageSync("cityInfo")
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style lang="scss" scoped>
|
||
|
.comment{
|
||
|
padding: 20rpx 0;
|
||
|
overflow: hidden;
|
||
|
.item{
|
||
|
padding: 45rpx 40rpx;
|
||
|
overflow: hidden;
|
||
|
background-color: #fff;
|
||
|
display: flex;
|
||
|
align-items: flex-start;
|
||
|
.avater{
|
||
|
width: 80rpx;
|
||
|
height: 80rpx;
|
||
|
margin-right: 30rpx;
|
||
|
image{
|
||
|
width: 100%;
|
||
|
height: 100%;
|
||
|
border-radius: 50%;
|
||
|
}
|
||
|
}
|
||
|
.info{
|
||
|
flex: 1;
|
||
|
max-width: 600rpx;
|
||
|
text-align: left;
|
||
|
overflow: hidden;
|
||
|
.a{
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: space-between;
|
||
|
font-size: 32rpx;
|
||
|
font-weight: 400;
|
||
|
color: #232323;
|
||
|
text{
|
||
|
font-size: 28rpx;
|
||
|
font-weight: 400;
|
||
|
color: #B4B4B4;
|
||
|
}
|
||
|
}
|
||
|
.b{
|
||
|
font-size: 28rpx;
|
||
|
font-weight: 400;
|
||
|
color: #515151;
|
||
|
|
||
|
}
|
||
|
.c{
|
||
|
width: 110%;
|
||
|
overflow: hidden;
|
||
|
image{
|
||
|
width: 150rpx;
|
||
|
height: 150rpx;
|
||
|
float: left;
|
||
|
margin-left: 20rpx;
|
||
|
margin-top: 20rpx;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|
||
|
</style>
|