diff --git a/src/components/HomePage.vue b/src/components/HomePage.vue index 6e4e402..15816ff 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); @@ -451,6 +451,10 @@ const handleAddress = (id) => { addressShow.value = true } +globalToastEvent.on(ToastType.SHOW_ADDRESS,(id)=>{ + handleAddress(id) +}) +