This commit is contained in:
2025-05-22 15:06:47 +08:00
parent 913e82905b
commit 124e44bae2
9 changed files with 6991 additions and 387 deletions

Binary file not shown.

View File

@@ -7,10 +7,9 @@ import { useMainStore } from "@/store";
import { subAnswer } from "@/api";
// 页面配置初始化
const emit = defineEmits([ "QuestionPage"]);
const emit = defineEmits(["QuestionPage"]);
const userStore = useMainStore();
// 当前题目
// const currentId = ref(props.questionId); //当前id 0~4
const currentId = ref(0); //当前id 0~3
@@ -76,11 +75,11 @@ const viewResult = (event) => {
setTimeout(() => {
Toast.clear();
gsap.to(".QuestionPage", {
gsap.to(".QuestionPage,.qp-result", {
duration: 0.5,
autoAlpha: 0,
onComplete: () => {
emit("showResult", { action: "showResult" });
emit("QuestionPage", { action: "showResult" });
},
});
}, 1000);
@@ -92,7 +91,7 @@ const viewResult = (event) => {
duration: 0.5,
autoAlpha: 0,
onComplete: () => {
emit("QuestionPage", { action: 'showResult' });
emit("QuestionPage", { action: "showResult" });
},
});
}, 1000);
@@ -122,9 +121,13 @@ const getClass = (item) => {
<div class="question-serial">
<div>
<div class="serial-icon"></div>
<div class="serial-text">{{ ['题目一','题目二','题目三','题目四'][currentId] }}</div>
<div class="serial-text">
{{ ["题目一", "题目二", "题目三", "题目四"][currentId] }}
</div>
</div>
<div class="serial-num">
{{ currentId + 1 }}/{{ questionList.length }}
</div>
<div class="serial-num">{{ currentId+1 }}/{{ questionList.length }}</div>
</div>
<div class="qa-question-box">
<div class="question">

View File

@@ -269,7 +269,7 @@ const firstClick = () => {
#app {
overflow: hidden;
background: linear-gradient(135deg, #d6d1ca, #e5dccf);
font-family: "FZZY_Regular";
// font-family: "FZZY_Regular";
}
#__vconsole {
@@ -277,7 +277,7 @@ const firstClick = () => {
}
.music_icon {
@include pos(60px, 60px, 20px, 175px);
@include pos(60px, 60px, 20px, 305px);
@include bg_pos("music-on.png");
z-index: 99;
visibility: hidden;