liuhj 7 月之前
父節點
當前提交
7bcf140784
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/components/expenseMobile.vue

+ 4 - 4
src/components/expenseMobile.vue

@@ -257,12 +257,12 @@ export default {
             // console.log(clientHeight);
             this.a=Math.floor(scrollTop + clientHeight);
             this.b=scrollHeight;
-            // if(document.getElementById("tshezi").getBoundingClientRect().top==clientHeight-84&&this.loadflag){
-            //     this.PageTurning()
-            // }
-            if (Math.floor(scrollTop + clientHeight) == scrollHeight&&this.loadflag) {
+            if(scrollHeight-scrollTop<=clientHeight&&this.loadflag){
                 this.PageTurning()
             }
+            // if (Math.floor(scrollTop + clientHeight) == scrollHeight&&this.loadflag) {
+            //     this.PageTurning()
+            // }
         },
         //日常切换
         rcbtn(){