mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-17 23:06:45 +08:00
我的收藏
This commit is contained in:
@@ -237,9 +237,10 @@ export default {
|
|||||||
this.loadMore();
|
this.loadMore();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// console.log(pdfPreview.getBoundingClientRect().top,'pdfPreview.getBoundingClientRect().top');
|
|
||||||
if(pdfPreview.getBoundingClientRect().top < 0) {
|
if(pdfPreview.getBoundingClientRect().top < 0) {
|
||||||
document.querySelector('#pdfTopBox').style.cssText = `position: fixed;bottom:0;width:${contentDiv-9}px`;
|
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) {
|
if(pdfTopBox.getBoundingClientRect().top < 1000) {
|
||||||
document.querySelector('#pdfTopBox').style.cssText = "position:static";
|
document.querySelector('#pdfTopBox').style.cssText = "position:static";
|
||||||
@@ -351,7 +352,6 @@ export default {
|
|||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
color: #454545;
|
color: #454545;
|
||||||
line-height: 24px;
|
|
||||||
word-break:break-all;
|
word-break:break-all;
|
||||||
}
|
}
|
||||||
::v-deep .el-card__body{
|
::v-deep .el-card__body{
|
||||||
|
|||||||
@@ -204,6 +204,7 @@ import apiFavorite from '@/api/modules/favorites.js';
|
|||||||
import apiUser from '@/api/system/user.js';
|
import apiUser from '@/api/system/user.js';
|
||||||
import apiCourse from "@/api/modules/coursePortal.js";
|
import apiCourse from "@/api/modules/coursePortal.js";
|
||||||
import courseImage from '@/components/Course/courseImage.vue';
|
import courseImage from '@/components/Course/courseImage.vue';
|
||||||
|
import {cutFullName} from "@/utils/tools.js";
|
||||||
export default {
|
export default {
|
||||||
name: 'myShareIndex',
|
name: 'myShareIndex',
|
||||||
components: { articleItems, courseItems, qaItems, courseImage,caseItems },
|
components: { articleItems, courseItems, qaItems, courseImage,caseItems },
|
||||||
@@ -441,16 +442,19 @@ export default {
|
|||||||
let obj={}
|
let obj={}
|
||||||
if(item.objType==2){
|
if(item.objType==2){
|
||||||
obj=res.result.find(author=>{
|
obj=res.result.find(author=>{
|
||||||
|
author.orgInfo=cutFullName(author.orgInfo,1);
|
||||||
return author.aid == item.sysCreateAid;
|
return author.aid == item.sysCreateAid;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if(item.objType==4){
|
if(item.objType==4){
|
||||||
obj=res.result.find(author=>{
|
obj=res.result.find(author=>{
|
||||||
|
author.orgInfo=cutFullName(author.orgInfo,1);
|
||||||
return author.aid == item.question.sysCreateAid;
|
return author.aid == item.question.sysCreateAid;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if(item.type != 1){
|
if(item.type != 1){
|
||||||
obj=res.result.find(author=>{
|
obj=res.result.find(author=>{
|
||||||
|
author.orgInfo=cutFullName(author.orgInfo,1);
|
||||||
return author.aid == item.authorId;
|
return author.aid == item.authorId;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user