mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
提交
This commit is contained in:
@@ -489,9 +489,9 @@ export default {
|
|||||||
//console.log(this.course.pageIndex,'this.course.pageIndex');
|
//console.log(this.course.pageIndex,'this.course.pageIndex');
|
||||||
//加此判断,是为了没有数据时的闪动问题
|
//加此判断,是为了没有数据时的闪动问题
|
||||||
//if(this.course.pageIndex >1){
|
//if(this.course.pageIndex >1){
|
||||||
if (scrollTop > 830) {
|
if (scrollTop > 1176) {
|
||||||
document.querySelector("#fixd-box").style.cssText =
|
document.querySelector("#fixd-box").style.cssText =
|
||||||
"position: fixed;top: -885px;width:"+outerWidth+"px";
|
"position: fixed;top: -882px;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