From ba791d6353b81cad1987e7a3100a83e2e2ec419a Mon Sep 17 00:00:00 2001 From: hzj <1304805162@qq.com> Date: Fri, 29 May 2026 16:46:58 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E9=81=AE=E7=BD=A9=E5=B1=82=E5=BC=B9?= =?UTF-8?q?=E7=AA=97):=20=E9=92=88=E5=AF=B9=E9=81=AE=E7=BD=A9=E5=B1=82?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E5=92=8C=E9=A1=B5=E9=9D=A2=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E9=94=AE=E5=B1=82=E7=BA=A7=E5=86=B2=E7=AA=81=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E8=BF=9B=E8=A1=8C=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Ranking/GamesKing/index.vue | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/views/Ranking/GamesKing/index.vue b/src/views/Ranking/GamesKing/index.vue index 945f98b..632bd65 100644 --- a/src/views/Ranking/GamesKing/index.vue +++ b/src/views/Ranking/GamesKing/index.vue @@ -906,7 +906,7 @@ - +
@@ -957,8 +957,8 @@ user-select: none; touch-action: manipulation; " - @click="closedPopup" - @touchend="closedPopup" + @click.stop.prevent="closedPopup" + @touchend.stop.prevent="closedPopup" > { const pageBackHidden = computed(() => { return maskLayerShow.value || !checkStatus.value }) +const POPUP_CLOSE_CLICK_GUARD_MS = 400 +const lastPopupClosedAt = ref(0) const handlePageBack = () => { + console.log('点击退出页面') + + if (Date.now() - lastPopupClosedAt.value < POPUP_CLOSE_CLICK_GUARD_MS) return if (pageBackHidden.value) return console.log('home back') closePage() @@ -1075,6 +1080,9 @@ const openPopup = (type) => { // 关闭弹窗 const closedPopup = () => { + if (!maskLayerShow.value) return + + lastPopupClosedAt.value = Date.now() console.log('点击关闭弹窗') // 此时打开的是每日弹窗,设置为已看过