This commit is contained in:
Andy Leong
2024-01-16 00:04:21 +08:00
parent a7c2a17cf0
commit 3fd13205c9
8 changed files with 146 additions and 80 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div class="home">
<div class="home" @touchmove.prevent>
<Index v-if="showIndex" @IndexPage="indexFn"></Index>
<Question v-if="showQuestion" @QuestionPage="questionFn"></Question>
<Result v-if="showResult" @ResultPage="resultFn"></Result>
@@ -45,6 +45,11 @@ const questionFn = (item) => {
if (item.action == "hide") {
showQuestion.value = false;
}
if (item.action == "showResult") {
showResult.value = true;
showQuestion.value = false;
}
};
const showMyPrize = ref(false);
@@ -69,7 +74,7 @@ const resultFn = (item) => {
};
onMounted(() => {
// createBGM();
createBGM();
});
</script>