From 933c6a36289cbe3c3816f0aafbf28e710340316b Mon Sep 17 00:00:00 2001 From: LinCyJang Date: Wed, 13 May 2026 01:02:31 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A5249=20=E3=80=90=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E6=8A=BD=E5=A5=96=E6=B5=B7?= =?UTF-8?q?=E6=8A=A5=E5=BC=B9=E7=AA=97=E8=AE=BE=E7=BD=AE=EF=BC=9A=E6=AF=8F?= =?UTF-8?q?=E6=AC=A1=E8=BF=9B=E5=85=A5=E5=B0=8F=E7=A8=8B=E5=BA=8F=E6=97=B6?= =?UTF-8?q?=E5=BC=B9=E7=AA=97=E3=80=82=E5=BD=93=E5=89=8D=E6=95=88=E6=9E=9C?= =?UTF-8?q?=EF=BC=9A=E5=88=87=E6=8D=A2=E9=A1=B5=E9=9D=A2=E5=9B=9E=E5=88=B0?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=B0=B1=E4=BC=9A=E5=BC=B9=E7=AA=97=EF=BC=88?= =?UTF-8?q?=E8=BF=87=E4=BA=8E=E9=A2=91=E7=B9=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/index.vue | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/pages/home/index.vue b/pages/home/index.vue index d366408..4500212 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -872,18 +872,35 @@ export default { changeOldPopup(state) { this.isOldUser = state }, + hasShownDrawPosterInSession() { + const app = getApp && getApp() + return Boolean(app && app.globalData && app.globalData.homeDrawPosterShownInSession) + }, + markDrawPosterShownInSession() { + const app = getApp && getApp() + if (!app) return + if (!app.globalData) { + app.globalData = {} + } + app.globalData.homeDrawPosterShownInSession = true + }, initPosterPopupState(data = {}) { const drawEntranceConfig = data.drawEntranceConfig || {} this.$set(this, 'drawEntranceConfig', drawEntranceConfig) const hasDrawPoster = Number(drawEntranceConfig.homePosterEnable) === 1 + const hasShownDrawPosterInSession = this.hasShownDrawPosterInSession() + const shouldShowDrawPoster = hasDrawPoster && !hasShownDrawPosterInSession + if (shouldShowDrawPoster) { + this.markDrawPosterShownInSession() + } this.canShowOldPoster = Boolean( (data.isOldUserPopupShow || 0) && data.oldUserPopup && data.oldUserPopup.image && (data.lotteryCanDraw || false) ) - this.isDrawPosterVisible = hasDrawPoster - this.isOldUser = !hasDrawPoster && this.canShowOldPoster + this.isDrawPosterVisible = shouldShowDrawPoster + this.isOldUser = !shouldShowDrawPoster && !hasShownDrawPosterInSession && this.canShowOldPoster }, showNextPoster() { if (!this.isDrawPosterVisible && this.canShowOldPoster) {