This commit is contained in:
yixu
2025-12-25 15:55:57 +08:00
parent f9c7f9c939
commit 47b1c1db04
2 changed files with 6 additions and 25 deletions

View File

@@ -317,20 +317,11 @@ const initUserGameInfos = async (refresh_official, refresh_cap_scan) => {
globalToastEvent.emit(ToastType.MOUNTED)
}
}
// const getNotice = async () => {
// const result = await Request('notice/latest', {}, "GET")
// if (result?.json?.notification) {
// lotteryType.value = 'notice'
// lotteryNoticeData.value = result.json.notification
// lotteryShow.value = true
// }
// }
const handleLoginSuccess = async () => {
console.log("已登录")
loginShow.value = false
await fromShare()
// await initUserGameInfos(true, true)
// await getNotice()
await initUserGameInfos(true, true)
}
if (isLogin()) {
@@ -362,6 +353,7 @@ const navigateGamePage = async () => {
const result = await Request('game/info', { refresh_official: false, refresh_cap_scan: false }, "GET")
if (result?.res?.status === 200) {
globalStore.draw_chances = result.json.draw_chances
globalStore.completed_games_today = result.json.completed_games_today || [];
if (globalStore.draw_chances <= 0) {
return weui.alert("还没有探索机会,快去参加活动吧")
} else {