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