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

@@ -116,21 +116,10 @@ const isConfirmBtnDisplay = computed(() => {
})
const getGameInfo = async () => {
const result = await Request('game/info', { refresh_official: true, refresh_cap_scan: true }, "GET")
if (result?.res?.status === 200) {
console.log(result)
globalStore.completed_games_today = result.json.completed_games_today || [];
//TODO: 测试数据
// globalStore.completed_games_today = ['game1', 'game3'];
slides.value = slides.value.map(slide => ({
...slide,
show: globalStore.completed_games_today.includes(`game${slide.id}`)
}));
} else {
weui.alert("获取游戏数据失败,请刷新页面重试");
emit('close');
return
}
slides.value = slides.value.map(slide => ({
...slide,
show: globalStore.completed_games_today.includes(`game${slide.id}`)
}));
}
watch(() => props.show, async (newVal) => {