From f1e063aab97471dd4aebcaccfccab3b081fecc4d Mon Sep 17 00:00:00 2001 From: linxi <957440651@qq.com> Date: Sat, 22 Aug 2026 11:05:27 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A5527=20=E3=80=90=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=90=8E=E5=8F=B0=E3=80=91=E5=AA=92=E4=BD=93=E7=AE=A1=E7=90=86?= =?UTF-8?q?-=E5=BC=B9=E7=AA=97=E6=B5=B7=E6=8A=A5=EF=BC=8C=E5=9C=A8?= =?UTF-8?q?=E5=A1=AB=E5=86=99=E4=BD=BF=E7=94=A8=E6=8C=87=E5=8D=97=E6=9D=BF?= =?UTF-8?q?=E5=9D=97=E9=93=BE=E6=8E=A5=E6=97=B6=E6=AF=8F=E6=AC=A1=E4=BB=8E?= =?UTF-8?q?=E5=85=B6=E4=BB=96=E6=9D=BF=E5=9D=97=E5=88=87=E6=8D=A2=E8=87=B3?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=9D=87=E9=87=8D=E5=A4=8D=E5=BC=B9=E5=87=BA?= =?UTF-8?q?=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/index.vue | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/pages/home/index.vue b/pages/home/index.vue index 858c2ea..47a992e 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -916,6 +916,18 @@ export default { } app.globalData.homeDrawPosterShownInSession = true }, + hasShownOldUserPopupInSession() { + const app = getApp && getApp() + return Boolean(app && app.globalData && app.globalData.homeOldUserPopupShownInSession) + }, + markOldUserPopupShownInSession() { + const app = getApp && getApp() + if (!app) return + if (!app.globalData) { + app.globalData = {} + } + app.globalData.homeOldUserPopupShownInSession = true + }, initPosterPopupState(data = {}) { const drawEntranceConfig = data.drawEntranceConfig || {} this.$set(this, 'drawEntranceConfig', drawEntranceConfig) @@ -932,10 +944,19 @@ export default { (data.lotteryCanDraw || false) ) this.isDrawPosterVisible = shouldShowDrawPoster - this.isOldUser = !shouldShowDrawPoster && !hasShownDrawPosterInSession && this.canShowOldPoster + const shouldShowOldUserPopup = + !shouldShowDrawPoster && + !hasShownDrawPosterInSession && + this.canShowOldPoster && + !this.hasShownOldUserPopupInSession() + if (shouldShowOldUserPopup) { + this.markOldUserPopupShownInSession() + } + this.isOldUser = shouldShowOldUserPopup }, showNextPoster() { - if (!this.isDrawPosterVisible && this.canShowOldPoster) { + if (!this.isDrawPosterVisible && this.canShowOldPoster && !this.hasShownOldUserPopupInSession()) { + this.markOldUserPopupShownInSession() this.isOldUser = true } },