|
@@ -244,10 +244,17 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
scrollBottom(e) {
|
|
|
+
|
|
|
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.loadflag) {
|
|
|
+ // let scrollHeight=document.documentElement.scrollHeight || document.body.scrollHeight;
|
|
|
+ let scrollHeight=document.getElementById('scroll-div').offsetHeight;
|
|
|
+
|
|
|
+ // console.log(scrollHeight);
|
|
|
+ // console.log(scrollTop);
|
|
|
+ // console.log(clientHeight);
|
|
|
+
|
|
|
+ if (scrollTop + clientHeight == scrollHeight+84&&this.loadflag) {
|
|
|
this.PageTurning()
|
|
|
}
|
|
|
},
|