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