提交 138cc9e7 编写于 作者: guangjun.yang's avatar guangjun.yang

Merge branch 'dev-coursedetail-0817' of...

Merge branch 'dev-coursedetail-0817' of http://192.168.110.53/com.pica.cloud.education.frontend/pica-professional-exam into dev-coursedetail-0817

* 'dev-coursedetail-0817' of http://192.168.110.53/com.pica.cloud.education.frontend/pica-professional-exam:
  刷新目录进度
...@@ -339,6 +339,30 @@ export default { ...@@ -339,6 +339,30 @@ export default {
history, history,
enable, // 付费课程-请去App查看;或可试看且时长为0 enable, // 付费课程-请去App查看;或可试看且时长为0
}); });
setTimeout(() => {
this.refreshCatalog();
}, 1000);
},
// 刷新目录进度
refreshCatalog() {
const { courseId = 6 } = this.$route.query;
const projectId = this.projectId || 797;
this.GET(`contents/courses/${courseId}/pcCourseInfo`, { projectId }).then(res => {
if (res.code == "000000") {
const {
showFlag = 0, // 0可看,10该课程为付费课程-请去App查看,20可试看,激活/购买后才可查看
trySeeFlag = 0, // 1为试看
trySeeTime = 0, // 试看时间
directory: {
chapters = [], // 目录
lectureResourceList = [], // 课件
lastLecture = {}, // 最后观看记录
},
} = res.data;
const [chaptersAll, curtLecture] = this.getAllChapters(chapters, lectureResourceList, lastLecture, showFlag, trySeeFlag, trySeeTime);
this.chapters = chaptersAll;
}
})
}, },
getCourseQas() { getCourseQas() {
const { courseId = 3 } = this.$route.query; const { courseId = 3 } = this.$route.query;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册