This commit is contained in:
zhaofang
2022-11-02 21:07:21 +08:00
parent 5be11ae113
commit 003c06bc9c

View File

@@ -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";
} }