我的收藏

This commit is contained in:
zhaofang
2022-06-09 19:34:48 +08:00
parent d9e1d306d7
commit e860ceb1b6
2 changed files with 6 additions and 2 deletions

View File

@@ -237,9 +237,10 @@ export default {
this.loadMore();
}
}
// console.log(pdfPreview.getBoundingClientRect().top,'pdfPreview.getBoundingClientRect().top');
if(pdfPreview.getBoundingClientRect().top < 0) {
document.querySelector('#pdfTopBox').style.cssText = `position: fixed;bottom:0;width:${contentDiv-9}px`;
} else {
document.querySelector('#pdfTopBox').style.cssText = "position:static";
}
if(pdfTopBox.getBoundingClientRect().top < 1000) {
document.querySelector('#pdfTopBox').style.cssText = "position:static";
@@ -351,7 +352,6 @@ export default {
margin-top: 10px;
font-size: 15px;
color: #454545;
line-height: 24px;
word-break:break-all;
}
::v-deep .el-card__body{

View File

@@ -204,6 +204,7 @@ import apiFavorite from '@/api/modules/favorites.js';
import apiUser from '@/api/system/user.js';
import apiCourse from "@/api/modules/coursePortal.js";
import courseImage from '@/components/Course/courseImage.vue';
import {cutFullName} from "@/utils/tools.js";
export default {
name: 'myShareIndex',
components: { articleItems, courseItems, qaItems, courseImage,caseItems },
@@ -441,16 +442,19 @@ export default {
let obj={}
if(item.objType==2){
obj=res.result.find(author=>{
author.orgInfo=cutFullName(author.orgInfo,1);
return author.aid == item.sysCreateAid;
})
}
if(item.objType==4){
obj=res.result.find(author=>{
author.orgInfo=cutFullName(author.orgInfo,1);
return author.aid == item.question.sysCreateAid;
})
}
if(item.type != 1){
obj=res.result.find(author=>{
author.orgInfo=cutFullName(author.orgInfo,1);
return author.aid == item.authorId;
})
}