liuhj hai 7 meses
pai
achega
51b7278fa7
Modificáronse 1 ficheiros con 5 adicións e 5 borrados
  1. 5 5
      src/components/expenseMobile.vue

+ 5 - 5
src/components/expenseMobile.vue

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