From ae650ecc7e54287f1717f73614aad774e4ce2d1a Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Thu, 21 Dec 2023 18:28:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=BC=B9=E7=AA=97=E8=92=99?= =?UTF-8?q?=E5=B1=82=E9=98=BB=E6=AD=A2=E6=BB=91=E5=8A=A8=E5=92=8C=E7=AD=BE?= =?UTF-8?q?=E6=94=B6=E5=9B=BE=E7=89=87=E7=BC=93=E5=AD=98=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compoment/BasicContainer/BasicContainer.vue | 21 ++-- compoment/PopUp/PopUp.vue | 2 +- compoment/tiplist/tiplist.vue | 2 +- pagesHome/pages/CustomerSign/CustomerSign.vue | 1 + pagesHome/pages/signinScan/signinScan.vue | 3 +- unpackage/dist/dev/app-plus/app-service.js | 106 ++++++++++-------- utils/request.js | 3 + 7 files changed, 79 insertions(+), 59 deletions(-) diff --git a/compoment/BasicContainer/BasicContainer.vue b/compoment/BasicContainer/BasicContainer.vue index 0313bb2..ca9cf63 100644 --- a/compoment/BasicContainer/BasicContainer.vue +++ b/compoment/BasicContainer/BasicContainer.vue @@ -108,13 +108,20 @@ // 下拉刷新 onPullDownRefresh(async () => { - await pullDownRefreshInitPage() - const timer = setTimeout(() => { - // 触发下拉回调 - uni.stopPullDownRefresh() - // 清除定时器 - clearTimeout(timer) - }, 300) + try { + await pullDownRefreshInitPage() + + } catch (e) { + //TODO handle the exception + } finally { + console.log('111 :>> ', 111); + const timer = setTimeout(() => { + // 触发下拉回调 + uni.stopPullDownRefresh() + // 清除定时器 + clearTimeout(timer) + }, 300) + } }) // 触发下拉刷新 diff --git a/compoment/PopUp/PopUp.vue b/compoment/PopUp/PopUp.vue index 8f3f099..5b5aed8 100644 --- a/compoment/PopUp/PopUp.vue +++ b/compoment/PopUp/PopUp.vue @@ -1,6 +1,6 @@