提交 d1f62833 authored 作者: 王鹏飞's avatar 王鹏飞

fix: 修复课程详情页点击'学习按钮'可能出错的问题

上级 3c3de225
......@@ -103,6 +103,7 @@ const getCourseDetail = (id, sid, callback) => {
_homework.semester_id = res.data.semester_id
}
return {
type: __.type,
id: __.id,
cid: cur.course_id,
sid: cur.semester_id,
......
......@@ -130,7 +130,7 @@ Page({
}
for (let k = 0; k < children.length; k++) {
const item = children[k]
if (!json.tabs1ChapterList.currentChapterId || item.vid === json.tabs1ChapterList.currentChapterId) {
if (item.type === 2 && (!json.tabs1ChapterList.currentChapterId || item.vid === json.tabs1ChapterList.currentChapterId)) {
this.setData({ latestVideo: item })
break
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论