作者 杨谦

...

... ... @@ -77,7 +77,7 @@ class CourseListFragment(var courseData: TrainCourseData, var tranClassId: Strin
val param = (activity as CourseDetailActivity).getCourseBean()
when (item.type) {
TYPE_COURSE_DETAIL_ITEM_VIDEO -> {
param?.mClassId = item.lessonVideoChild?.id.toString()
// param?.mClassId = item.lessonVideoChild?.id.toString()
startActivity(
Intent(activity, VideoDetailActivity::class.java)
.putExtra(COMMON_URL, item.lessonVideoChild?.video_url)
... ...
... ... @@ -145,6 +145,7 @@ class ClassDutyCourseFragment(val type: Int) :
val course = CourseParam()
course.mLessonId = "${data.id}"
course.isTrainClass = true
course.mClassId = "${data.class_id}"
course.mTrainClassId = "${data.train_class_id}"
course.type = data.itemType
return course
... ... @@ -172,7 +173,6 @@ class ClassDutyCourseFragment(val type: Int) :
View.GONE
}
}
}
private fun refreshData() {
... ... @@ -261,11 +261,6 @@ class ClassDutyCourseFragment(val type: Int) :
if (bool) {
startNext(item)
} else {
// dialogMention.show()
// dialogMention.setListener {
// startNext(item)
// }
// ios 不做跳转,保持一致
showTip("不在考试时间")
}
} else {
... ...