Ver Fonte

bug 修复

lilei há 4 anos atrás
pai
commit
f658815452
1 ficheiros alterados com 8 adições e 4 exclusões
  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到底部加载更多