mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 11:56:44 +08:00
左边最小修改为260px
This commit is contained in:
@@ -278,7 +278,7 @@ body {margin: 0px;padding: 0px;}
|
||||
width: 1100px;
|
||||
}
|
||||
.xcontent2-minor{
|
||||
width: 234px;
|
||||
width: 260px;
|
||||
}
|
||||
.portal-ranking{
|
||||
padding: 20px 15px;
|
||||
|
||||
@@ -452,6 +452,7 @@ export default {
|
||||
.clientHeight;
|
||||
let outerHeight = document.documentElement.clientHeight;
|
||||
let scrollTop = document.documentElement.scrollTop;
|
||||
let outerWidth = document.querySelector(".xcontent2-minor").clientWidth;
|
||||
if (outerHeight + scrollTop + 350 >= innerHeight) {
|
||||
if (this.moreState == 1 && this.course.pageIndex < 4) {
|
||||
this.loadMore();
|
||||
@@ -459,7 +460,7 @@ export default {
|
||||
}
|
||||
if (scrollTop > 830) {
|
||||
document.querySelector("#fixd-box").style.cssText =
|
||||
"position: fixed;top: -914px;";
|
||||
"position: fixed;top: -914px;width:"+outerWidth+"px";
|
||||
} else {
|
||||
document.querySelector("#fixd-box").style.cssText = "position: static";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user