liuhj месяцев назад: 7
Родитель
Сommit
138e115903
1 измененных файлов с 9 добавлено и 2 удалено
  1. 9 2
      src/components/expenseMobile.vue

+ 9 - 2
src/components/expenseMobile.vue

@@ -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()
             }
         },