|
@@ -80,7 +80,7 @@ class HomeFragment : BaseMVPFragment<FragmentHomeLayoutBinding, HomePresenter>()
|
|
|
mViewBinding.tvNickname.text =
|
|
|
UserHelper.getTeacherName(teacherUserInfo.username, teacherUserInfo.userId);
|
|
|
//星级
|
|
|
- if (teacherUserInfo.starGrade.toFloat() > 0 ) {
|
|
|
+ if (teacherUserInfo.starGrade.toFloat() > 0) {
|
|
|
mViewBinding.ratingBar.visibility = View.VISIBLE
|
|
|
mViewBinding.tvNoScore.visibility = View.GONE
|
|
|
mViewBinding.ratingBar.rating = teacherUserInfo.starGrade.toFloat()
|
|
@@ -372,7 +372,11 @@ class HomeFragment : BaseMVPFragment<FragmentHomeLayoutBinding, HomePresenter>()
|
|
|
.build(RouterPath.WebCenter.ACTIVITY_HTML)
|
|
|
.withString(
|
|
|
WebConstants.WEB_URL,
|
|
|
- WebConstants.TEACHER_LIVE_DETAIL + "?groupId=" + bean.courseGroupId + "&classId=" + bean.courseId
|
|
|
+ String.format(
|
|
|
+ WebConstants.TEACHER_LIVE_DETAIL_NORMAL_COURSE,
|
|
|
+ bean.courseGroupId,
|
|
|
+ bean.courseId
|
|
|
+ )
|
|
|
)
|
|
|
.navigation()
|
|
|
CourseConstants.OTHER_COURSE -> //陪练课
|