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(){