文章和问答的评论

This commit is contained in:
lmj
2022-10-19 11:40:13 +08:00
parent 397c558abc
commit 48339378fe
3 changed files with 184 additions and 8 deletions

View File

@@ -72,7 +72,8 @@
<div class="comment" v-for="(com,comIdx) in list" :key="com.id">
<div class="comment-top">
<div class="comment-author">
<authorInfo :aid="com.sysCreateAid" :avatar="com.avatar" :name="com.sysCreateBy" :sex="com.sex" :info="com.orgInfo"></authorInfo>
<authorInfo :aid="com.sysCreateAid" :avatar="com.avatar" :name="com.sysCreateBy" :sex="com.sex" :info="com.orgInfo" :sign="com.sign"></authorInfo>
<!-- <span class="signtext">{{ com.sign }}</span> -->
</div>
</div>
<div class="comment-body" >
@@ -114,7 +115,7 @@
<div class="comment" v-for="(reply,replyIdx) in com.replyList" :key="reply.id" :class="replyIdx===com.replyList.length-1 ? 'comment-last' : ''">
<div class="comment-top">
<div class="comment-author">
<authorInfo :aid="reply.sysCreateAid" :avatar="reply.avatar" :name="reply.sysCreateBy" :sex="reply.sex" :info="reply.orgInfo"></authorInfo>
<authorInfo :aid="reply.sysCreateAid" :avatar="reply.avatar" :name="reply.sysCreateBy" :sex="reply.sex" :info="reply.orgInfo" :sign="reply.sign"></authorInfo>
<span style="margin-left: 10px;color: #8590A6;font-size:14px; ">
<svg-icon style="font-size: 10px;margin-right: 0;" icon-class="triangle"></svg-icon>
</span>
@@ -238,7 +239,7 @@
import interactBar from "@/components/Portal/interactBar.vue";
import apiComment from '@/api/modules/comments.js'
import apiUser from '@/api/system/user.js'
import authorInfo from '@/components/Portal/authorInfo.vue';
import authorInfo from '@/components/Portal/artauthor.vue';
// import author from '@/components/Portal/author.vue';
import { mapGetters } from 'vuex';
export default {
@@ -405,6 +406,8 @@
item.avatar=author.avatar;
item.orgInfo=author.orgInfo;
item.sex=author.sex;
item.sign=author.sign
console.log(list,'评论信息')
return true;
}else{
return false;
@@ -447,6 +450,7 @@
res.result.list.forEach(item=>{
item.avatar='';
item.orgInfo='';
item.sign='';
item.isAll=false;
//item.sex=null;
allList.push(item);
@@ -456,6 +460,7 @@
reply.avatar='';
reply.orgInfo='';
reply.sex=null;
reply.sign='';
reply.isAll=false;
allList.push(reply);
ids.push(reply.sysCreateAid);
@@ -793,6 +798,9 @@
</script>
<style lang="scss" scoped>
.signtext{
}
.publish-button{
// line-height: 30px;