From 85fbbd099022a4c1d3f2183b067dbc6f801a5d2f Mon Sep 17 00:00:00 2001 From: BAKEYi <16298417+bakeyi@user.noreply.gitee.com> Date: Tue, 2 Jun 2026 15:08:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E6=8B=89=E5=88=B7=E6=96=B0bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/home.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pages/home/home.vue b/pages/home/home.vue index 453d470..219e33b 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -341,6 +341,20 @@ export default { this.fetchBrandList(); this.fetchSkillList(); }, + onPullDownRefresh() { + // 1. 重新请求首页需要的所有数据 + if (this.isLogin) { + this.getUserInfo(); + } + this.fetchNoticeList(); + this.fetchBrandList(); + this.fetchSkillList(); + + // 2. 停止下拉刷新的动画 + setTimeout(() => { + uni.stopPullDownRefresh(); + }, 500); + }, onLoad() { uni.hideTabBar(); },