mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-15 05:46:43 +08:00
文章和问答的评论
This commit is contained in:
@@ -64,8 +64,7 @@
|
||||
<div class="answer" v-for="(item, index) of answerList" :key="item.id" :style="index === answerList.length - 1 ? 'border-bottom:none;' : ''">
|
||||
<div class="answer-top">
|
||||
<div>
|
||||
<author :aid="item.sysCreateAid" :avatar="item.avatar" :name="item.sysCreateBy" :info="item.orgInfo" :sex="item.sex"></author>
|
||||
<div class="sign">{{item.sign}}</div>
|
||||
<author :aid="item.sysCreateAid" :avatar="item.avatar" :name="item.sysCreateBy" :info="item.orgInfo" :sex="item.sex" :sign="item.sign"></author>
|
||||
</div>
|
||||
<div>
|
||||
<span v-if="detailData.isResolve && item.isBest" style="color: #ffb30f">最佳答案</span>
|
||||
@@ -123,7 +122,7 @@
|
||||
:class="i === item.answers.length - 1 ? 'comment-last' : ''">
|
||||
<div class="comment-top">
|
||||
<div class="comment-author">
|
||||
<author :aid="con.sysCreateAid" :avatar="con.avatar" :name="con.sysCreateBy" :sex="con.sex"></author>
|
||||
<author :aid="con.sysCreateAid" :avatar="con.avatar" :name="con.sysCreateBy" :sex="con.sex" :sign="con.sign"></author>
|
||||
<span class="comment-author-text">回复</span>
|
||||
<span style="margin-left: 10px; font-size:14px">{{ con.replayName }}</span>
|
||||
</div>
|
||||
@@ -290,7 +289,7 @@ import portalFooter from "@/components/PortalFooter.vue";
|
||||
import interactBar from "@/components/Portal/interactBar.vue";
|
||||
import editQuestion from "@/components/Qa/editQuestion.vue";
|
||||
import timeShow from "@/components/Portal/datetimeShow.vue";
|
||||
import author from "@/components/Portal/authorInfo.vue";
|
||||
import author from "@/components/Portal/artauthor.vue";
|
||||
import portalFloatTools from "@/components/PortalFloatTools.vue";
|
||||
import apiQa from "@/api/modules/qa.js";
|
||||
import apiUser from "@/api/system/user.js";
|
||||
@@ -468,6 +467,7 @@ export default {
|
||||
res.result.avatar = "";
|
||||
res.result.name = "";
|
||||
res.result.orgInfo = "";
|
||||
res.result.sign= "";
|
||||
res.result.sex = null;
|
||||
this.detailData = res.result;
|
||||
if (JSON.stringify(this.detailData) != "{}") {
|
||||
@@ -596,8 +596,8 @@ export default {
|
||||
if (author.aid == item.sysCreateAid) {
|
||||
item.avatar = author.avatar;
|
||||
item.orgInfo = author.orgInfo;
|
||||
item.sign = author.sign
|
||||
item.sex = author.sex;
|
||||
item.sign=author.sign;
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user