dengjie commit : 首页产品列表下拉刷新分页展示产品

This commit is contained in:
clay
2022-12-29 00:13:33 +08:00
parent b3b0b620bf
commit 0c3e8de069
5 changed files with 144 additions and 132 deletions

View File

@@ -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')
},