提交 935e00cf authored 作者: yujiejie's avatar yujiejie

学生端阶段二模型部署知识点预习小测完成

上级 d2e83417
...@@ -448,6 +448,11 @@ var studentState = { ...@@ -448,6 +448,11 @@ var studentState = {
bridgeAnswers: {}, bridgeAnswers: {},
bridgeLastWrong: [], bridgeLastWrong: [],
// PRD 模块一:阶段二模型部署 // PRD 模块一:阶段二模型部署
deployReadIds: [],
deployQuizIndex: 0,
deployAnswers: {},
deployLastWrong: [],
deployQuizScore: 0,
deployQuizPassed: false, deployQuizPassed: false,
deploySubmitted: false, deploySubmitted: false,
deployReviewed: false, deployReviewed: false,
...@@ -762,6 +767,13 @@ function switchPage(pageId){ ...@@ -762,6 +767,13 @@ function switchPage(pageId){
if (typeof showBridgeLockModal === 'function') showBridgeLockModal(); if (typeof showBridgeLockModal === 'function') showBridgeLockModal();
return; return;
} }
var deployQuizGate = ['student-autodl','student-deploy-submit'];
if (typeof isBridgePassed === 'function' && isBridgePassed() && !studentState.deployQuizPassed && deployQuizGate.indexOf(pageId) !== -1) {
currentPage = 'student-dashboard';
renderContent();
if (typeof showStudentFlowModal === 'function') showStudentFlowModal('请先通过部署小测','及格线 80 分。通过后才能进入 AutoDL 和提交部署产物。');
return;
}
currentPage=pageId; currentPage=pageId;
renderContent(); renderContent();
} }
......
差异被折叠。
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论