Browse Source

处理端报修列表bug修复

maotao 5 months ago
parent
commit
4ad3323bcb
1 changed files with 14 additions and 0 deletions
  1. 14 0
      pages/myRepair/myRepair.vue

+ 14 - 0
pages/myRepair/myRepair.vue

@@ -381,6 +381,11 @@
381
 	// 点击tab
381
 	// 点击tab
382
 	function clickTab(tabId){
382
 	function clickTab(tabId){
383
 	  dataInfo.tabActiveId = tabId;
383
 	  dataInfo.tabActiveId = tabId;
384
+		uni.pageScrollTo({
385
+			scrollTop: 0,
386
+			duration: 300 // 动画时长,默认300ms
387
+		});
388
+		dataInfo.idx=0
384
 	  getList(0);
389
 	  getList(0);
385
 	}
390
 	}
386
 	
391
 	
@@ -928,6 +933,15 @@
928
 		
933
 		
929
 	})
934
 	})
930
 	
935
 	
936
+	onReachBottom(() => {
937
+		if(tabsIndex0.value==1){
938
+			dataInfo.idx += 1;
939
+			if (dataInfo.hasMore) {
940
+			  getList(); // 当触底时加载更多数据
941
+			}
942
+		}
943
+	})
944
+	
931
 	onPullDownRefresh(_=>{
945
 	onPullDownRefresh(_=>{
932
 		// uni.stopPullDownRefresh();
946
 		// uni.stopPullDownRefresh();
933
 	})
947
 	})