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) + })