mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 20:06:44 +08:00
收藏中案例,文章等头像不能点击进入个人主页的问题
This commit is contained in:
@@ -2,24 +2,24 @@
|
|||||||
<div style="cursor: pointer;">
|
<div style="cursor: pointer;">
|
||||||
<div class="article-list" v-for="(item, idx) in items" :key="idx">
|
<div class="article-list" v-for="(item, idx) in items" :key="idx">
|
||||||
<div class="article-info-date"></div>
|
<div class="article-info-date"></div>
|
||||||
<div @click="jump(item)">
|
<div>
|
||||||
<div class="article-info">
|
<div class="article-info">
|
||||||
<div class="art-hear">
|
<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 }}
|
{{ item.title }}
|
||||||
</div>
|
</div>
|
||||||
<span class="art-tit">#文章#</span>
|
<span class="art-tit">#文章#</span>
|
||||||
<el-button @click.stop="delItem(item)" type="text" style="color: #8590A6" icon="el-icon-star-on">取消收藏</el-button>
|
<el-button @click.stop="delItem(item)" type="text" style="color: #8590A6" icon="el-icon-star-on">取消收藏</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="article-info-tools">
|
<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.sysCreateTime || item.publishTime || item.favoritesTime | timeFilter }}</span> -->
|
||||||
<!-- <span>收藏时间:{{ item.time || item.favoritesTime | timeFilter }}</span> -->
|
<!-- <span>收藏时间:{{ item.time || item.favoritesTime | timeFilter }}</span> -->
|
||||||
</div>
|
</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>
|
<interactBar :type="2" :readonly="true" :data="item" :views="false" :shares="false"></interactBar>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -5,14 +5,14 @@
|
|||||||
<div class="article-info-title " >
|
<div class="article-info-title " >
|
||||||
<div style="width:85%" class=" ">
|
<div style="width:85%" class=" ">
|
||||||
<router-link :to="'/case/detail?id='+item.cases.id" ><div class="case-tit title-line-ellipsis">{{item.cases.title}} <span class="bq-case">#案例#</span> </div> </router-link>
|
<router-link :to="'/case/detail?id='+item.cases.id" ><div class="case-tit title-line-ellipsis">{{item.cases.title}} <span class="bq-case">#案例#</span> </div> </router-link>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="article-info-date">
|
<div class="article-info-date">
|
||||||
<el-button @click="delItem(item)" type="text" style="color: #8590A6;font-size:14px" icon="el-icon-star-on">取消收藏</el-button>
|
<el-button @click="delItem(item)" type="text" style="color: #8590A6;font-size:14px" icon="el-icon-star-on">取消收藏</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="article-info-tools">
|
<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 class="userbq">{{ item.sign }}</span>
|
||||||
<!-- <span style="margin-top:2px">发布时间:{{ item.cases.sysCreateTime || item.publishTime | timeFilter }}</span> -->
|
<!-- <span style="margin-top:2px">发布时间:{{ item.cases.sysCreateTime || item.publishTime | timeFilter }}</span> -->
|
||||||
<!-- <span style="margin-top:2px">收藏时间:{{ item.time || item.favoritesTime | timeFilter }}</span> -->
|
<!-- <span style="margin-top:2px">收藏时间:{{ item.time || item.favoritesTime | timeFilter }}</span> -->
|
||||||
@@ -25,13 +25,13 @@
|
|||||||
{{item.isAll?'收起':'展开'}}
|
{{item.isAll?'收起':'展开'}}
|
||||||
</span>
|
</span>
|
||||||
<!-- </router-link> -->
|
<!-- </router-link> -->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<interactBar :type="3" :readonly="true" :data="item" :views="false" :shares="false"></interactBar>
|
<interactBar :type="3" :readonly="true" :data="item" :views="false" :shares="false"></interactBar>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -142,7 +142,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.article-info {
|
.article-info {
|
||||||
|
|
||||||
.article-info-title {
|
.article-info-title {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
|||||||
@@ -179,9 +179,14 @@ export default {
|
|||||||
this.loadExamInfo();
|
this.loadExamInfo();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
destroyed() {
|
||||||
|
if(this.timer){
|
||||||
|
window.clearInterval(this.timer);
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
changeTimer(){
|
changeTimer(){
|
||||||
if(this.timerValue==0){
|
if(this.timerValue<=0){
|
||||||
window.clearInterval(this.timer);
|
window.clearInterval(this.timer);
|
||||||
//系统自动提交
|
//系统自动提交
|
||||||
this.confirmStop();
|
this.confirmStop();
|
||||||
@@ -298,7 +303,7 @@ export default {
|
|||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
showClose:false,
|
showClose:false,
|
||||||
callback: action => {
|
callback: action => {
|
||||||
this.submitTest();
|
this.submitTest();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -332,7 +337,7 @@ export default {
|
|||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.submitTest()
|
this.submitTest()
|
||||||
}).catch(()=>{
|
}).catch(()=>{
|
||||||
|
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
this.submitTest()
|
this.submitTest()
|
||||||
@@ -397,6 +402,10 @@ export default {
|
|||||||
return this.lastScore;
|
return this.lastScore;
|
||||||
},
|
},
|
||||||
submitTest(){ //提交处理
|
submitTest(){ //提交处理
|
||||||
|
//清空提示
|
||||||
|
if(this.timer){
|
||||||
|
window.clearInterval(this.timer);
|
||||||
|
}
|
||||||
let now=new Date();
|
let now=new Date();
|
||||||
let testScore=this.countTest();
|
let testScore=this.countTest();
|
||||||
let postData={
|
let postData={
|
||||||
@@ -419,7 +428,7 @@ export default {
|
|||||||
var dateDiff = now.getTime() - this.startTime.getTime();//时间差的毫秒数
|
var dateDiff = now.getTime() - this.startTime.getTime();//时间差的毫秒数
|
||||||
var minutes=Math.floor(dateDiff/(1000))//计算相差秒数,分钟记录的太大,经常为0
|
var minutes=Math.floor(dateDiff/(1000))//计算相差秒数,分钟记录的太大,经常为0
|
||||||
postData.testDuration=minutes;
|
postData.testDuration=minutes;
|
||||||
|
|
||||||
apiStudy.saveExam(postData).then(res=>{
|
apiStudy.saveExam(postData).then(res=>{
|
||||||
if(res.status == 200) {
|
if(res.status == 200) {
|
||||||
this.records.push(res.result);
|
this.records.push(res.result);
|
||||||
|
|||||||
Reference in New Issue
Block a user