作者 杨谦

...

@@ -77,7 +77,7 @@ class CourseListFragment(var courseData: TrainCourseData, var tranClassId: Strin @@ -77,7 +77,7 @@ class CourseListFragment(var courseData: TrainCourseData, var tranClassId: Strin
77 val param = (activity as CourseDetailActivity).getCourseBean() 77 val param = (activity as CourseDetailActivity).getCourseBean()
78 when (item.type) { 78 when (item.type) {
79 TYPE_COURSE_DETAIL_ITEM_VIDEO -> { 79 TYPE_COURSE_DETAIL_ITEM_VIDEO -> {
80 - param?.mClassId = item.lessonVideoChild?.id.toString() 80 +// param?.mClassId = item.lessonVideoChild?.id.toString()
81 startActivity( 81 startActivity(
82 Intent(activity, VideoDetailActivity::class.java) 82 Intent(activity, VideoDetailActivity::class.java)
83 .putExtra(COMMON_URL, item.lessonVideoChild?.video_url) 83 .putExtra(COMMON_URL, item.lessonVideoChild?.video_url)
@@ -145,6 +145,7 @@ class ClassDutyCourseFragment(val type: Int) : @@ -145,6 +145,7 @@ class ClassDutyCourseFragment(val type: Int) :
145 val course = CourseParam() 145 val course = CourseParam()
146 course.mLessonId = "${data.id}" 146 course.mLessonId = "${data.id}"
147 course.isTrainClass = true 147 course.isTrainClass = true
  148 + course.mClassId = "${data.class_id}"
148 course.mTrainClassId = "${data.train_class_id}" 149 course.mTrainClassId = "${data.train_class_id}"
149 course.type = data.itemType 150 course.type = data.itemType
150 return course 151 return course
@@ -172,7 +173,6 @@ class ClassDutyCourseFragment(val type: Int) : @@ -172,7 +173,6 @@ class ClassDutyCourseFragment(val type: Int) :
172 View.GONE 173 View.GONE
173 } 174 }
174 } 175 }
175 -  
176 } 176 }
177 177
178 private fun refreshData() { 178 private fun refreshData() {
@@ -261,11 +261,6 @@ class ClassDutyCourseFragment(val type: Int) : @@ -261,11 +261,6 @@ class ClassDutyCourseFragment(val type: Int) :
261 if (bool) { 261 if (bool) {
262 startNext(item) 262 startNext(item)
263 } else { 263 } else {
264 -// dialogMention.show()  
265 -// dialogMention.setListener {  
266 -// startNext(item)  
267 -// }  
268 - // ios 不做跳转,保持一致  
269 showTip("不在考试时间") 264 showTip("不在考试时间")
270 } 265 }
271 } else { 266 } else {