falvpingtai/src/components/PersonafFollows.vue
2019-12-18 17:37:50 +08:00

130 lines
2.7 KiB
Vue

<template>
<div class="PersonafFollow">
<div class="title">
<!-- <p>{{operation}}</p>
<p>{{day}}</p> -->
</div>
<div class="center">{{title}}</div>
<div class="answer">
<div class="user">
<img :src="userimg" alt srcset />
<div>
<p>{{nickname}}</p>
<p>{{role}}</p>
</div>
</div>
<div class="agree">{{num}}人赞同了该回答</div>
<div class="content">
<img :src="img" alt srcset />
<p>
{{text}}
</p>
</div>
<div class="operation">
<!-- <div>
<img src="../assets/share.png" alt="" srcset="">
分享
</div> -->
<div>
<img src="../assets/pl.png" alt="" srcset="">
{{comment}}评论
</div>
<div>
</div>
</div>
</div>
</div>
</template>
<style lang="scss" scoped>
.PersonafFollow {
padding: 0 0 39px 0;
border-bottom: 1px solid #dfdfdf;
.title {
display: flex;
justify-content: space-between;
font-size: 26px;
color: #95998f;
// margin-bottom: 28px;
}
.center {
font-size: 30px;
color: #000;
line-height: 46px;
}
.answer {
.user {
display: flex;
align-items: center;
margin-top: 34px;
> img {
width: 58px;
height: 58px;
border-radius: 4px;
margin-right: 20px;
}
> div {
display: flex;
flex-direction: column;
> p {
font-size: 24px;
color: #000;
}
> p:last-child {
margin-top: 10px;
font-size: 24px;
color: #999;
}
}
}
.agree {
margin-top: 29px;
font-size: 26px;
color: #95998f;
}
.content {
> img {
width: 690px;
height: 374px;
background-color: #000;
display: block;
margin-top: 39px;
margin-bottom: 32px;
}
> p {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
line-height: 40px;
font-size: 26px;
}
}
.operation{
display: flex;
margin-top: 30px;
>div{
margin-right: 60px;
font-size: 22px;
color: #95998F;
>img{
width: 17px;
height: 17px;
margin-right: 11px;
}
}
}
}
}
</style>
<script>
export default {
name: "PersonafFollows",
data() {
return {};
},
props:['operation','day','title','userimg','nickname','img','role','num','text','comment']
};
</script>