|
@@ -44,7 +44,7 @@
|
|
|
current: 0, // tabs组件的current值,表示当前活动的tab选项
|
|
|
swiperCurrent: 0, // swiper组件的current值,表示当前那个swiper-item是活动的
|
|
|
pageNo:1,
|
|
|
- pageSize:15,
|
|
|
+ pageSize:10,
|
|
|
count:0
|
|
|
};
|
|
|
},
|
|
@@ -57,6 +57,7 @@
|
|
|
this.swiperCurrent = 0
|
|
|
this.count = 0
|
|
|
this.couponList = []
|
|
|
+ this.pageNo = 1
|
|
|
this.status = 'loading'
|
|
|
this.getList()
|
|
|
},
|
|
@@ -65,6 +66,7 @@
|
|
|
this.swiperCurrent = index;
|
|
|
this.couponList = []
|
|
|
this.count = 0
|
|
|
+ this.pageNo = 1
|
|
|
this.status = 'loading'
|
|
|
},
|
|
|
// swiper-item左右移动,通知tabs的滑块跟随移动
|
|
@@ -76,6 +78,7 @@
|
|
|
console.log(event.detail)
|
|
|
this.couponList = []
|
|
|
this.count = 0
|
|
|
+ this.pageNo = 1
|
|
|
this.status = 'loading'
|
|
|
},
|
|
|
// 由于swiper的内部机制问题,快速切换swiper不会触发dx的连续变化,需要在结束时重置状态
|