Pq 3 anni fa
parent
commit
3b1128a483

+ 1 - 1
student/src/main/java/com/cooleshow/student/ui/course/LiveCourseFragment.java

@@ -153,7 +153,7 @@ public class LiveCourseFragment extends BaseMVPFragment<FragmentLiveCourseLayout
             LiveCourseListBean.RowsBean item = (LiveCourseListBean.RowsBean) adapter.getItem(position);
             ARouter.getInstance()
                     .build(RouterPath.WebCenter.ACTIVITY_HTML)
-                    .withString(WebConstants.WEB_URL, WebConstants.TEACHER_LIVE_DETAIL + "?groupId=" + item.courseGoupId + "&classId=" + item.courseId)
+                    .withString(WebConstants.WEB_URL,String.format(WebConstants.TEACHER_LIVE_DETAIL_NORMAL_COURSE, item.courseGoupId, item.courseId))
                     .navigation();
         });
     }

+ 7 - 3
student/src/main/java/com/cooleshow/student/ui/main/CourseTableFragment.kt

@@ -18,6 +18,7 @@ import com.chad.library.adapter.base.listener.OnItemChildClickListener
 import com.chad.library.adapter.base.listener.OnItemClickListener
 import com.cooleshow.base.common.WebConstants
 import com.cooleshow.base.router.RouterPath
+import com.cooleshow.base.ui.fragment.BaseMVPFragment
 import com.cooleshow.base.utils.SizeUtils
 import com.cooleshow.base.utils.TimeUtils
 import com.cooleshow.base.widgets.EmptyViewLayout
@@ -27,11 +28,10 @@ import com.cooleshow.student.bean.CourseTableDataBean
 import com.cooleshow.student.constants.CourseTableContract
 import com.cooleshow.student.databinding.FragmentCourseTableLayoutBinding
 import com.cooleshow.student.presenter.main.CourseTablePresenter
+import com.cooleshow.student.ui.course.SparringCourseDetailActivity
 import com.cooleshow.student.widgets.CalendarExpandDecoration
 import com.cooleshow.student.widgets.CalendarShrinkDecoration
 import com.cooleshow.student.widgets.helper.CourseHelper
-import com.cooleshow.base.ui.fragment.BaseMVPFragment
-import com.cooleshow.student.ui.course.SparringCourseDetailActivity
 import com.haibin.calendarview.CalendarView
 import com.scwang.smart.refresh.layout.listener.OnRefreshListener
 import io.rong.imkit.utils.helper.OpenChatHelper
@@ -140,7 +140,11 @@ class CourseTableFragment :
                     .build(RouterPath.WebCenter.ACTIVITY_HTML)
                     .withString(
                         WebConstants.WEB_URL,
-                        WebConstants.TEACHER_LIVE_DETAIL + "?groupId=" + data.courseGoupId + "&classId=" + data.courseId
+                        String.format(
+                            WebConstants.TEACHER_LIVE_DETAIL_NORMAL_COURSE,
+                            data.courseGoupId,
+                            data.courseId
+                        )
                     )
                     .navigation()
             }