From 0a5e3c9b665648201d3e375d7420ebac5764bcdf Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Wed, 9 Nov 2022 11:51:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/tianfuxing/AppHome/AppHome.vue | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/project/tianfuxing/AppHome/AppHome.vue b/src/project/tianfuxing/AppHome/AppHome.vue index 473b9cf..2379382 100644 --- a/src/project/tianfuxing/AppHome/AppHome.vue +++ b/src/project/tianfuxing/AppHome/AppHome.vue @@ -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() } }