feat: update residence learning flows
Commit non-media application and asset changes while leaving audio, video, and environment files out of version control. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
68ba22a33f
commit
6d40e19346
184 files changed
+7663
-2203
No files matched your search
@@ -10,6 +10,7 @@ import { QuizDialog } from './components'
|
||||
import { useHuangyanpeiStore } from '@/store/huangyanpeiStore'
|
||||
import { setCourseTimeProgress } from '@/lib/utils/api-common'
|
||||
import { useCursorController } from '@/hooks/useCursorController'
|
||||
import { saveHuangyanpeiStore } from '@/store/huangyanpeiStore'
|
||||
|
||||
const starName = 'huangyanpei'
|
||||
|
||||
@@ -66,7 +67,7 @@ const HuangyanpeiReflectionScene3 = () => {
|
||||
}}
|
||||
>
|
||||
<Title
|
||||
title="跨越时空"
|
||||
title="川沙小学堂"
|
||||
subtitle={subtitle}
|
||||
subtitleClassName={subtitleClassName}
|
||||
className="absolute top-10 left-1/2 -translate-x-1/2"
|
||||
@@ -84,15 +85,15 @@ const HuangyanpeiReflectionScene3 = () => {
|
||||
<Image
|
||||
className="absolute left-5 top-5"
|
||||
src={getStaticImage('huangyanpei/reflection/components/喇叭1')}
|
||||
button
|
||||
onClick={() => {
|
||||
if (isEnabled(3)) {
|
||||
setShowQuizDialog(true)
|
||||
} else {
|
||||
setShowErrorAlertForQuiz(true)
|
||||
}
|
||||
}}
|
||||
aria-disabled={!isEnabled(3)}
|
||||
// button
|
||||
// onClick={() => {
|
||||
// if (isEnabled(3)) {
|
||||
// setShowQuizDialog(true)
|
||||
// } else {
|
||||
// setShowErrorAlertForQuiz(true)
|
||||
// }
|
||||
// }}
|
||||
// aria-disabled={!isEnabled(3)}
|
||||
/>
|
||||
|
||||
{/* 第一段引导 */}
|
||||
@@ -129,6 +130,20 @@ const HuangyanpeiReflectionScene3 = () => {
|
||||
disabled={!isEnabled(2)}
|
||||
/>
|
||||
|
||||
{/* 喇叭光标 */}
|
||||
<Cursor
|
||||
className="absolute left-31 top-9"
|
||||
onClick={() => {
|
||||
if (isEnabled(3)) {
|
||||
setShowQuizDialog(true)
|
||||
} else {
|
||||
setShowErrorAlertForQuiz(true)
|
||||
}
|
||||
}}
|
||||
read={visited.has(3)}
|
||||
disabled={!isEnabled(3)}
|
||||
/>
|
||||
|
||||
{/* 组装台钳互动弹窗 */}
|
||||
<ViseAssemblyDialog
|
||||
visible={showDialog}
|
||||
@@ -143,7 +158,7 @@ const HuangyanpeiReflectionScene3 = () => {
|
||||
{/* 多选题答题框 */}
|
||||
<MultipleChoiceQuizPanel
|
||||
visible={showQuiz}
|
||||
title="【多选】 制作台钳需要哪些工具?"
|
||||
title="【多选】制作台钳需要哪些工具?"
|
||||
options={[
|
||||
{ value: 'A', label: 'A. 锯子' },
|
||||
{ value: 'B', label: 'B. 毛笔' },
|
||||
@@ -173,13 +188,10 @@ const HuangyanpeiReflectionScene3 = () => {
|
||||
<SuccessAlert
|
||||
visible={showSuccessAlert}
|
||||
title="满分!"
|
||||
content="黄先生说“手脑并用”,懂了理论,也要动手实践。"
|
||||
onContinue={() => {
|
||||
setShowSuccessAlert(false)
|
||||
markReflectionCursorVisited(scene, 2)
|
||||
}}
|
||||
content="黄先生说“手脑并用”,懂了理论,也要动手实践。"
|
||||
onClose={() => {
|
||||
setShowSuccessAlert(false)
|
||||
markReflectionCursorVisited(scene, 2)
|
||||
}}
|
||||
/>
|
||||
|
||||
@@ -227,6 +239,7 @@ const HuangyanpeiReflectionScene3 = () => {
|
||||
showSkipButton
|
||||
onEnded={() => {
|
||||
setShowVideo(false)
|
||||
saveHuangyanpeiStore()
|
||||
setCourseTimeProgress(11)
|
||||
navigate(`/${moduleName}/${starName}/home`)
|
||||
}}
|
||||
|
||||
Reference in new issue
Block a user