Merge branch 'stat' of codeup.aliyun.com:6265f483e4166464dc2f9c14/boeu/portal into stat

This commit is contained in:
weinan2087
2022-11-09 18:23:26 +08:00
9 changed files with 54 additions and 18 deletions

View File

@@ -40,10 +40,15 @@
<p>{{rep.content}}</p>
</div>
<div class="li-right">
<div class="replys-icon" @click="showReplyInput(rep, idx)"><svg-icon style="margin-right: 4px;font-size: 14px;" icon-class="comment"></svg-icon>回复</div>
<!-- <interactBar :type="7" :data="rep" :comments="false" :shares="false" :views="false" :favorites="false"></interactBar> -->
<div class="replys-icon" style="margin-right:0px;margin-left:10px" v-if="userInfo.aid == item.sysCreateAid" @click="delReplySon(item,index)"><svg-icon icon-class="notedel" style="margin-right: 4px;font-size: 14px;"></svg-icon>删除</div>
</div>
</div>
<div class="replys-input" style="padding-left: 60px;margin:10px 0" v-if="rep.isReplys">
<el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="replysContent" maxlength="200" show-word-limit></el-input>
<el-button class="lea-btn" type="primary" @click="addReplys(item,rep)">回复</el-button>
</div>
</div>
</li>
@@ -137,7 +142,25 @@
});
},
showReplyInput(item,idx) {
item.isReplys = true;
//关闭其它的
this.leavingList.forEach(top=>{
if(top.id!=item.id){
top.isReplys=false;
}
top.replyList.forEach(reply=>{
if(reply.id!=item.id){
reply.isReplys=false;
}
})
})
if(item.isReplys){
item.isReplys =false;
}else{
item.isReplys =true;
}
this.replysData.id = item.id;
//this.replysData.reply = item.replyList;
},
@@ -159,7 +182,7 @@
this.$message.success('回复留言成功');
p.isReplys = false;
res.result.authorInfo=$this.userInfo;
p.replyList.push(res.result);
top.replyList.push(res.result);
//直接追加到列表后面
// this.leavingList.forEach(item=>{
// item.isReplys = false;
@@ -271,6 +294,7 @@
position: relative;
.lea-btn {
float: right;
cursor: pointer;
margin-top: 26px;
width: 80px;
height: 30px;
@@ -326,6 +350,7 @@
margin-top: 40px;
.replys-icon{
width: 50px;
cursor: pointer;
color: #6E7B84;
font-size: 12px;
margin-right: 22px;

View File

@@ -55,7 +55,7 @@
<div style="display: flex;justify-content:space-between;">
<div style="width: 150px;">
<author :avatar="qa.authorInfo.avatar" :name="qa.authorInfo.name" :sex="qa.authorInfo.sex"></author>
<author :aid="qa.sysCreateAid" :avatar="qa.authorInfo.avatar" :name="qa.authorInfo.name" :sex="qa.authorInfo.sex"></author>
</div>
<div><interactBar nodeWidth="60px" :readonly="true" :type="4" :data="qa" @addAnswers="qaAnswer(qa)" :shares="false" :comments="false" :answers="true" :clickAnswer="true" :views="false"></interactBar></div>
</div>
@@ -82,7 +82,7 @@
提问题
</div>
<div style="padding:0" id="qa-fixd">
<div class="portal-ranking ranking-bg">
<p class="ranking-title">贡献榜</p>
<ul class="ranking-data">