소스 검색

bug 修复

lilei 4 년 전
부모
커밋
f658815452
1개의 변경된 파일8개의 추가작업 그리고 4개의 파일을 삭제
  1. 8 4
      pages/spotCheckCenter/spotChecking.vue

+ 8 - 4
pages/spotCheckCenter/spotChecking.vue

@@ -109,11 +109,15 @@ export default {
 		// swiper滑动结束,分别设置tabs和swiper的状态
 		animationfinish(e) {
 			let current = e.detail.current;
-			this.$refs.uTabs.setFinishCurrent(current);
-			this.swiperCurrent = current;
-			this.current = current;
+			let isCurtab = this.current == current
 			if(this.status!="nomore"){
-				this.resetPage();
+				let loadData = this.action == 'swiperChange' ? !isCurtab : isCurtab;
+				if(loadData){
+					this.$refs.uTabs.setFinishCurrent(current);
+					this.swiperCurrent = current;
+					this.current = current;
+					this.resetPage();
+				}
 			}
 		},
 		// scroll-view到底部加载更多