This commit is contained in:
yanran200730
2022-11-09 11:51:51 +08:00
parent e8948dc28d
commit 0a5e3c9b66

View File

@@ -83,6 +83,7 @@
appName: '首页',
navigationBarTitleText: '天府星小程序',
name: 'AppHome',
enablePullDownRefresh: true,
data () {
return {
@@ -140,12 +141,22 @@
if (res.code === 0) {
this.list = res.data.records
this.isMore = true
uni.stopPullDownRefresh()
} else {
this.isMore = true
uni.stopPullDownRefresh()
}
}).catch(() => {
uni.stopPullDownRefresh()
})
}
},
onPullDownRefresh() {
this.isMore = false
this.current = 1
this.getList()
this.getBannerList()
}
}
</script>