@@ -214,13 +259,13 @@ onMounted(() => {
\ No newline at end of file
diff --git a/src/data/imgList.js b/src/data/imgList.js
index faa154d..2603ef0 100644
--- a/src/data/imgList.js
+++ b/src/data/imgList.js
@@ -20,7 +20,6 @@ const page = [
'qa/showResult-btn.png',
'qa/question.png',
'qa/prev-btn.png',
- 'qa/bg.jpg',
'qa/answer-box-2.png',
'qa/answer-box-1.png',
]
diff --git a/src/page/Home/App.vue b/src/page/Home/App.vue
index a36e092..8a8017e 100644
--- a/src/page/Home/App.vue
+++ b/src/page/Home/App.vue
@@ -1,5 +1,5 @@
-
+
@@ -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();
});
diff --git a/src/plugins/index.js b/src/plugins/index.js
index be76609..a460eba 100644
--- a/src/plugins/index.js
+++ b/src/plugins/index.js
@@ -49,7 +49,7 @@ export function createBGM() {
},
)
- render(musicNode, document.body);
+ render(musicNode, document.querySelector('.home'));
render(audioNode, document.querySelector("#musicBtn"));
document.querySelector("#musicBtn").classList.add('music-on')
let audioAni = gsap.timeline({ paused: true })
diff --git a/src/store/index.js b/src/store/index.js
index 2b1bc71..4d514e1 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -4,7 +4,7 @@ import { defineStore } from "pinia"
export const useMainStore = defineStore("counter", {
state: () => {
return {
- token: '',
+ token: 'INFJ',
MBTI: '', //测试结果
prizeCode: 'DKS18', //兑换码
prizeMoney: '8.88', //金额