feat: 更新音频和引导对话,优化用户体验

- 在多个场景中添加音频资源,增强学习互动性。
- 更新引导对话文本,确保信息准确性和一致性。
- 调整组件结构,清理不必要的代码,提升可维护性。
- 引入结束窗口,鼓励用户深入了解历史背景。
This commit is contained in:
zhongyidian committed 2026-01-15 19:30:17 +08:00
1 parent d7ff7d3a45
commit 6e106032fd
141 files changed
+1375 -479

No files matched your search

+7 -8
View File
@@ -31,16 +31,15 @@ const HuangyanpeiPlace4 = () => {
moduleName: string;
}>();
const [activeExhibitId, setActiveExhibitId] = useState<
1 | 2 | 3 | 4 | 5 | null
>(null);
const [activeExhibitId, setActiveExhibitId] = useState<1 | 3 | 4 | 5 | null>(
null
);
const [visited, setVisited] = useState<Set<number>>(new Set());
const { isEnabled } = useCursorController({
initialEnabled: [1],
initialEnabled: [3, 5],
dependencies: {
3: [1],
4: [3],
5: [4],
1: [3, 5],
4: [1],
// 2 已注释,不计入顺序
},
visited,
@@ -66,7 +65,7 @@ const HuangyanpeiPlace4 = () => {
const [showSuccessAlert, setShowSuccessAlert] = useState(false);
const videoRef = useRef<VideoRef>(null);
const handleOpenExhibit = (index: 1 | 2 | 3 | 4 | 5) => {
const handleOpenExhibit = (index: 1 | 3 | 4 | 5) => {
setActiveExhibitId(index);
if (index === 1) {
setGuide1Step(0);