From 6e93dcdde3daff80065ecdaab76aa56f3c1d8651 Mon Sep 17 00:00:00 2001 From: woody Date: Fri, 26 Sep 2025 09:44:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(ranking):=20=E5=85=B3=E9=97=AD=E4=BA=BA?= =?UTF-8?q?=E6=95=B0=E6=8E=92=E8=A1=8C=E5=90=8E=E5=88=A4=E6=96=AD=E9=87=91?= =?UTF-8?q?=E9=A2=9D=E6=8E=92=E8=A1=8C=E6=98=AF=E5=90=A6=E6=9C=89=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/RankingPopup.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/components/RankingPopup.vue b/components/RankingPopup.vue index 86d061a..d174f86 100644 --- a/components/RankingPopup.vue +++ b/components/RankingPopup.vue @@ -384,10 +384,13 @@ export default { // 关闭人数排行榜,显示金额排行榜 closePeopleRanking() { this.showPeopleRanking = false - // 延迟显示金额排行榜,让关闭动画完成 - setTimeout(() => { - this.showAmountRanking = true - }, 300) + if (this.amountTopThree.length > 0) { + setTimeout(() => { + this.showAmountRanking = true + }, 300) + } else { + this.$emit('onRankingComplete') + } }, // 关闭金额排行榜