|
@@ -101,7 +101,11 @@ class CourseTableListAdapter(layoutResId: Int) :
|
|
|
//直播课隐藏
|
|
|
tvCourseStatusBt.setVisible(false)
|
|
|
}
|
|
|
- tvCourseStatusBt.text = "评价"
|
|
|
+ if (data?.studentReplied == 0) {
|
|
|
+ tvCourseStatusBt.text = "评价"
|
|
|
+ } else {
|
|
|
+ tvCourseStatusBt.text = "已评价"
|
|
|
+ }
|
|
|
baseViewHolder.setText(R.id.tv_course_status, "已结束")
|
|
|
tvCourseStatusBt.setBackgroundResource(R.drawable.shape_course_status_normal);
|
|
|
tvCourseStatusBt.setTextColor(context.resources.getColor(com.cooleshow.base.R.color.color_2dc7aa))
|