dengjie commit : 首页产品列表下拉刷新分页展示产品
This commit is contained in:
@@ -61,19 +61,18 @@
|
||||
swiperList: [],
|
||||
}
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
// this.$refs.getProducts.query.pageNum = 1
|
||||
// this.$refs.getProducts.productList = []
|
||||
|
||||
onReachBottom() {
|
||||
// console.log('pageNum===', this.$refs.getProducts);
|
||||
this.$refs.getProducts.pageNum += 1
|
||||
this.$refs.getProducts.getProducts()
|
||||
|
||||
//关闭下拉刷新
|
||||
uni.stopPullDownRefresh()
|
||||
// uni.stopPullDownRefresh()
|
||||
},
|
||||
onLoad() {
|
||||
this.getCategories()
|
||||
this.getBanner()
|
||||
this.getImgUrl()
|
||||
// this.$refs.getProducts.getProducts()
|
||||
this.imgUrl = uni.getStorageSync('img_url')
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user