emis-frontend/src/views/emis/emisWaybillProblemFaq/commentPanel.vue
2024-06-20 17:31:46 +08:00

179 lines
3.2 KiB
Vue

<template>
<div>
<div v-for="(item,index) in emisWaybillProblemFaqList" :key="index" class="author-title reply-father">
<div class="author-info">
<span class="author-name">{{item.name}}</span>
<span class="author-time">{{item.time}}</span>
</div>
<div class="talk-box">
<p>
<span class="reply">{{item.content}}</span>
</p>
</div>
</div>
</div>
</template>
<script>
import { listEmisWaybillProblemFaq } from "@/api/emis/emisWaybillProblemFaq";
export default {
name:'CommentPanel',
props:{
billCode:{
type:String
},
},
data(){
return{
emisWaybillProblemFaqList: [],
// comments:[
// {
// name:'张三',
// comment:'测试回复',
// time:'2024-06-19 12:58:03',
// },
// {
// name:'李四',
// comment:'测试回复',
// time:'2024-06-19 12:58:03',
// },
// ],
queryParams: {
pageNum: 1,
pageSize: 20,
billCode: this.billCode
},
}
},
methods: {
getList() {
listEmisWaybillProblemFaq(this.queryParams).then(response => {
this.emisWaybillProblemFaqList = response.rows;
});
},
},
}
</script>
<style lang="scss" scoped>
.my-reply {
padding: 10px;
background-color: #fafbfc;
.header-img {
display: inline-block;
vertical-align: top;
}
.reply-info {
display: inline-block;
margin-left: 5px;
width: 90%;
@media screen and (max-width: 1200px) {
width: 80%;
}
.reply-input {
min-height: 20px;
line-height: 22px;
padding: 10px 10px;
color: #ccc;
background-color: #fff;
border-radius: 5px;
&:empty:before {
content: attr(placeholder);
}
&:focus:before {
content: none;
}
&:focus {
padding: 8px 8px;
border: 2px solid blue;
box-shadow: none;
outline: none;
}
}
}
.reply-btn-box {
height: 25px;
margin: 10px 0;
.reply-btn {
position: relative;
float: right;
margin-right: 15px;
}
}
}
.my-comment-reply {
margin-left: 50px;
.reply-input {
width: flex;
}
}
.author-title:not(:last-child) {
border-bottom: 1px solid rgba(178, 186, 194, 0.3);
}
.author-title {
padding: 10px;
.header-img {
display: inline-block;
vertical-align: top;
}
.author-info {
display: inline-block;
margin-left: 5px;
width: 60%;
height: 40px;
line-height: 20px;
> span {
display: block;
cursor: pointer;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.author-name {
color: #000;
font-size: 13px;
font-weight: bold;
}
.author-time {
font-size: 12px;
}
}
.icon-btn {
width: 30%;
padding: 0 !important ;
float: right;
@media screen and (max-width: 1200px) {
width: 20%;
padding: 7px;
}
> span {
cursor: pointer;
}
.iconfont {
margin: 0 5px;
}
}
.talk-box {
margin: 0 10px;
> p {
margin: 0;
}
.reply {
font-size: 12px;
color: #000;
}
}
.reply-box {
margin: 10px 0 0 50px;
background-color: #efefef;
}
}
</style>