收藏中案例,文章等头像不能点击进入个人主页的问题

This commit is contained in:
daihh
2022-10-27 12:23:11 +08:00
parent b18660dc0f
commit e0d4b02b71
3 changed files with 24 additions and 15 deletions

View File

@@ -2,21 +2,21 @@
<div style="cursor: pointer;">
<div class="article-list" v-for="(item, idx) in items" :key="idx">
<div class="article-info-date"></div>
<div @click="jump(item)">
<div>
<div class="article-info">
<div class="art-hear">
<div style="max-width:84%" class="article-info-title one-line-ellipsis">
<div @click="jump(item)" style="max-width:84%" class="article-info-title one-line-ellipsis">
{{ item.title }}
</div>
<span class="art-tit">#文章#</span>
<el-button @click.stop="delItem(item)" type="text" style="color: #8590A6" icon="el-icon-star-on">取消收藏</el-button>
</div>
<div class="article-info-tools">
<authorInfo :avatar="item.avatar" :name="item.name" :info="item.orgInfo" :sex="item.sex"> </authorInfo>
<authorInfo :avatar="item.avatar" :aid="item.sysCreateAid" :name="item.name" :info="item.orgInfo" :sex="item.sex"> </authorInfo>
<!-- <span>发布时间{{ item.sysCreateTime || item.publishTime || item.favoritesTime | timeFilter }}</span> -->
<!-- <span>收藏时间{{ item.time || item.favoritesTime | timeFilter }}</span> -->
</div>
<div class="article-info-summary two-line-ellipsis">{{ item.summary || item.content}}</div>
<div @click="jump(item)" class="article-info-summary two-line-ellipsis">{{ item.summary || item.content}}</div>
<interactBar :type="2" :readonly="true" :data="item" :views="false" :shares="false"></interactBar>

View File

@@ -12,7 +12,7 @@
</div>
</div>
<div class="article-info-tools">
<authorInfo :avatar="item.avatar" :name="item.name" :info="item.orgInfo" :sex="item.sex" :sign="item.sign"></authorInfo>
<authorInfo :avatar="item.avatar" :aid="item.cases.authorId" :name="item.name" :info="item.orgInfo" :sex="item.sex" :sign="item.sign"></authorInfo>
<span class="userbq">{{ item.sign }}</span>
<!-- <span style="margin-top:2px">发布时间{{ item.cases.sysCreateTime || item.publishTime | timeFilter }}</span> -->
<!-- <span style="margin-top:2px">收藏时间{{ item.time || item.favoritesTime | timeFilter }}</span> -->

View File

@@ -179,9 +179,14 @@ export default {
this.loadExamInfo();
}
},
destroyed() {
if(this.timer){
window.clearInterval(this.timer);
}
},
methods: {
changeTimer(){
if(this.timerValue==0){
if(this.timerValue<=0){
window.clearInterval(this.timer);
//系统自动提交
this.confirmStop();
@@ -397,6 +402,10 @@ export default {
return this.lastScore;
},
submitTest(){ //提交处理
//清空提示
if(this.timer){
window.clearInterval(this.timer);
}
let now=new Date();
let testScore=this.countTest();
let postData={