From 8b67ac873154b7820221673ee14ae16ac07e5277 Mon Sep 17 00:00:00 2001 From: zhang zhuo Date: Thu, 6 Mar 2025 14:41:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=8D=95=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 2 +- pages/index/index.vue | 10 ++++++++-- pagesA/task_hall/list.vue | 6 +++--- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/pages.json b/pages.json index a81c77c..516f0ea 100644 --- a/pages.json +++ b/pages.json @@ -84,7 +84,7 @@ },{ "path": "task_hall/detail", "style": { - "enablePullDownRefresh": true, + "enablePullDownRefresh": false, "navigationBarTextStyle": "black", "navigationStyle": "custom", "navigationBarTitleText": "工单详情" diff --git a/pages/index/index.vue b/pages/index/index.vue index 3bd51b8..f917188 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -102,7 +102,7 @@ import { ref } from 'vue' - import { onLoad, onReachBottom, Uni } from "@dcloudio/uni-app" + import { onLoad, onReachBottom, Uni, onPullDownRefresh } from "@dcloudio/uni-app" // import SafeAreaTop from '@/components/SafeAreaTop/index.vue' // import SafeAreaBottom from '@/components/SafeAreaBottom/index.vue' declare const uni : Uni @@ -270,7 +270,6 @@ const getBannerList = () => { const res = bannerList({ position: 2 }) - } @@ -296,6 +295,13 @@ onLoad(() => { loadData() }) + + onPullDownRefresh(() => { + loadData() + setTimeout(() => { + uni.stopPullDownRefresh() + }, 300) + })