|
@@ -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到底部加载更多
|