更新
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user