diff --git a/src/components/Ad.vue b/src/components/Ad.vue index 6477475..68a0784 100644 --- a/src/components/Ad.vue +++ b/src/components/Ad.vue @@ -54,7 +54,7 @@ const adGoto = () => { display: block !important; } -.close { +.ad .close { position: absolute; width: 8.148148vw; height: 8.148148vw; diff --git a/src/components/HomePage.vue b/src/components/HomePage.vue index 75b75da..aea79d6 100644 --- a/src/components/HomePage.vue +++ b/src/components/HomePage.vue @@ -334,13 +334,14 @@ watch(() => mergeId, async (newVal) => { } }, { immediate: true }) -globalToastEvent.on(ToastType.SHOW_LOTTERY, () => { +globalToastEvent.on(ToastType.SHOW_LOTTERY, async() => { + await initUserGameInfos(false, false); lotteryShow.value = true }) -watch(() => lotteryShow.value, async (newVal) => { - initUserGameInfos(true, true); -}, { immediate: true }) +// watch(() => lotteryShow.value, async (newVal) => { +// initUserGameInfos(true, true); +// }, { immediate: true }) diff --git a/src/components/Lottery.vue b/src/components/Lottery.vue index ac1a090..2847470 100644 --- a/src/components/Lottery.vue +++ b/src/components/Lottery.vue @@ -108,7 +108,6 @@ watch(() => props.show, async (newVal) => { const loading = weui.loading() let lottteryResult = null - if (props.type === 'draw') { lottteryResult = await Request("lottery/draw", { pool: 'game', consume_type: 'points' }) }