feat:完善孙中山
This commit is contained in:
1 parent
b3d30100da
commit
ec7e8e2bd2
14 files changed
+846
-135
No files matched your search
@@ -22,6 +22,7 @@ const LuxunReflectionScene3 = () => {
|
||||
const [completedQuiz2, setCompletedQuiz2] = useState(false); // 题目2是否完成
|
||||
const [showSummary, setShowSummary] = useState(false); // 是否显示总结
|
||||
const [completionGuideVisible, setCompletionGuideVisible] = useState(false); // 通关提示对话是否显示
|
||||
const [completionGuideFinished, setCompletionGuideFinished] = useState(false); // 通关提示对话是否已完成
|
||||
|
||||
const allCompleted = completedQuiz1 && completedQuiz2;
|
||||
const progress = (completedQuiz1 ? 1 : 0) + (completedQuiz2 ? 1 : 0);
|
||||
@@ -263,6 +264,18 @@ const LuxunReflectionScene3 = () => {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* 继续前进按钮 - 只在通关提示对话结束后显示 */}
|
||||
{completionGuideFinished && (
|
||||
<Image
|
||||
className="absolute bottom-45 right-0"
|
||||
src={getStaticImage("components/place/继续前进")}
|
||||
button
|
||||
onClick={() => {
|
||||
navigate(`/${moduleName}/${starName}/home`);
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
|
||||
{/* 题目1:家国情怀 */}
|
||||
<SingleChoiceQuizPanel
|
||||
visible={showQuiz1}
|
||||
@@ -295,6 +308,7 @@ const LuxunReflectionScene3 = () => {
|
||||
onVisibleChange={(visible) => {
|
||||
if (!visible) {
|
||||
setCompletionGuideVisible(false);
|
||||
setCompletionGuideFinished(true); // 对话关闭后标记为已完成
|
||||
}
|
||||
}}
|
||||
showMask={false}
|
||||
|
||||
Reference in new issue
Block a user