Browse Source

停车场管理手机端:收费列表首次加载数据较少不足一屏时自动加载下屏数据(有数据的情况下)

chenwen 3 years ago
parent
commit
6823156a0f
1 changed files with 3 additions and 2 deletions
  1. 3 2
      pages/charge/charge.vue

+ 3 - 2
pages/charge/charge.vue

@@ -170,7 +170,6 @@
 			this.loadMoreStat = 'loading';
 			this.loadMoreData(this.getLoadParams(true));
 			
-			console.log('bottom even')
 		},
 		methods: {
 			getLoadParams(loadMore){
@@ -267,7 +266,9 @@
 					
 					console.log(this.pagedPayLog)
 					
-					this.checkHadMore();
+					if(!this.reachbtm&&this.checkHadMore()){  //未到底且还有数据,自动再加载一次
+						this.loadMoreData(this.getLoadParams(true));
+					}
 					
 				}).catch(error => {
 					uni.hideLoading();