diff --git a/src/components/HomePage.vue b/src/components/HomePage.vue index cda5cc4..6f30f08 100644 --- a/src/components/HomePage.vue +++ b/src/components/HomePage.vue @@ -264,9 +264,9 @@ const handleRule = () => { globalToastEvent.emit(ToastType.SHOW_RULE) } const handleLottery = () => { - // if (globalStore.draw_chances <= 0) { - // return weui.alert("还没有抽奖机会,快去参加活动吧") - // }; + if (globalStore.draw_chances <= 0) { + return weui.alert("还没有抽奖机会,快去参加活动吧") + }; lotteryType.value = 'draw' lotteryNoticeData.value = null globalToastEvent.emit(ToastType.SHOW_LOTTERY);