feat:鲁迅添加引导

This commit is contained in:
zhongyidian committed 2026-01-08 18:41:24 +08:00
1 parent e8dc5d4b95
commit 3129e01257
26 files changed
+951 -86

No files matched your search

+15
View File
@@ -10,6 +10,7 @@ import {
SingleChoiceQuizPanel,
Video,
} from "@/components";
import { SuccessAlert } from "@/components/layout";
import { getBackgroundImage, getStaticImage, getPublicPath } from "@/lib/utils";
import { useNavigate, useParams } from "react-router-dom";
import type { VideoRef } from "@/components/video";
@@ -44,6 +45,8 @@ const HuangyanpeiPlace4 = () => {
const [showVideo, setShowVideo] = useState(false);
// 题目显示状态
const [showQuiz, setShowQuiz] = useState(false);
// 成功提示状态
const [showSuccessAlert, setShowSuccessAlert] = useState(false);
const videoRef = useRef<VideoRef>(null);
const handleOpenExhibit = (index: 1 | 2 | 3 | 4 | 5) => {
@@ -62,6 +65,7 @@ const HuangyanpeiPlace4 = () => {
const handleQuizSubmit = (value: string, isCorrect: boolean) => {
if (isCorrect) {
setShowQuiz(false);
setShowSuccessAlert(true);
}
};
@@ -225,6 +229,17 @@ const HuangyanpeiPlace4 = () => {
zIndex={10001}
/>
{/* 成功提示 */}
<SuccessAlert
visible={showSuccessAlert}
onContinue={() => {
setShowSuccessAlert(false);
}}
onClose={() => {
setShowSuccessAlert(false);
}}
/>
{/* 学习引导(进入场景即显示,与 place1 保持一致) */}
<StudyGuideModal
visible={showGuideModal}