fix: 优化进度调试与答题交互
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
d445f81e60
commit
6491b0c918
6 files changed
+378
-151
No files matched your search
@@ -152,7 +152,7 @@ const QUIZ_ANCHORS: QuizAnchor[] = [
|
||||
},
|
||||
{
|
||||
id: 'quiz-4',
|
||||
time: 60 * 5 + 40.5,
|
||||
time: 60 * 5 + 42.5,
|
||||
title: '题目4',
|
||||
prompt: '【多选】新时代青年学习“与时俱进”的智慧能够具体落实为:',
|
||||
type: 'multiple',
|
||||
@@ -182,7 +182,7 @@ const QUIZ_ANCHORS: QuizAnchor[] = [
|
||||
},
|
||||
{
|
||||
id: 'quiz-5',
|
||||
time: 60 * 5 + 40.5,
|
||||
time: 60 * 5 + 42.5,
|
||||
title: '题目5',
|
||||
prompt: '【多选】新时代的青年要从孙中山先生身上学习哪些精神?',
|
||||
type: 'multiple',
|
||||
@@ -315,7 +315,6 @@ const SunzhongshanInternalization = () => {
|
||||
})
|
||||
const cb = resumeCallback
|
||||
setResumeCallback(null)
|
||||
triggerPuzzleAnimation(15)
|
||||
cb?.()
|
||||
}}
|
||||
/>
|
||||
@@ -404,7 +403,12 @@ const SunzhongshanInternalization = () => {
|
||||
setActiveSuccess(null)
|
||||
const cb = resumeCallback
|
||||
setResumeCallback(null)
|
||||
triggerPuzzleAnimation(16)
|
||||
// quiz-2 完成后掉落碎片 15,最后一个题目(quiz-5)完成后掉落碎片 16
|
||||
if (item.id === 'quiz-2') {
|
||||
triggerPuzzleAnimation(15)
|
||||
} else if (item.id === 'quiz-5') {
|
||||
triggerPuzzleAnimation(16)
|
||||
}
|
||||
cb?.()
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user