|
@@ -241,7 +241,7 @@ export default {
|
|
|
let scrollTop=document.documentElement.scrollTop || document.body.scrollTop;
|
|
|
let clientHeight=document.documentElement.clientHeight || document.body.clientHeight;
|
|
|
let scrollHeight=document.documentElement.scrollHeight || document.body.scrollHeight;
|
|
|
- if (scrollTop + clientHeight == scrollHeight&&this.loadflagExamine) {
|
|
|
+ if (Math.abs(scrollHeight-clientHeight-scrollTop) < 1&&this.loadflagExamine) {
|
|
|
this.PageTurningExamine()
|
|
|
}
|
|
|
},
|
|
@@ -250,13 +250,6 @@ export default {
|
|
|
let scrollTop=document.documentElement.scrollTop || document.body.scrollTop;
|
|
|
let clientHeight=document.documentElement.clientHeight || document.body.clientHeight;
|
|
|
let scrollHeight=document.documentElement.scrollHeight || document.body.scrollHeight;
|
|
|
- // let scrollHeight=document.getElementById('scroll-div').offsetHeight;
|
|
|
-
|
|
|
- // console.log(document.getElementById("tshezi").getBoundingClientRect().top);
|
|
|
- // console.log(scrollTop);
|
|
|
- // console.log(clientHeight);
|
|
|
- this.a=scrollHeight-scrollTop;
|
|
|
- this.b=clientHeight;
|
|
|
if(Math.abs(scrollHeight-clientHeight-scrollTop) < 1&&this.loadflag){
|
|
|
this.PageTurning()
|
|
|
}
|