|
@@ -107,10 +107,18 @@ public class MineLiveCourseFragment extends BaseMVPFragment<FragmentMineLiveCour
|
|
|
mViewBinding.tvOpen.setOnClickListener(this);
|
|
|
mineLiveCourseAdapter.setOnItemClickListener((adapter, view, position) -> {
|
|
|
MineLiveCourseListBean.RowsBean item = (MineLiveCourseListBean.RowsBean) adapter.getItem(position);
|
|
|
- ARouter.getInstance()
|
|
|
- .build(RouterPath.WebCenter.ACTIVITY_HTML)
|
|
|
- .withString(WebConstants.WEB_URL, WebConstants.TEACHER_LIVE_DETAIL + "?groupId=" + item.courseGroupId)
|
|
|
- .navigation();
|
|
|
+ if (TextUtils.equals(type, "CANCEL") || TextUtils.equals(type, "OUT_SALE")) {
|
|
|
+ //已取消或者已下架 点击跳转编辑页面
|
|
|
+ ARouter.getInstance()
|
|
|
+ .build(RouterPath.WebCenter.ACTIVITY_HTML)
|
|
|
+ .withString(WebConstants.WEB_URL, String.format(WebConstants.TEACHER_LIVE_EDIT, item.courseGroupId))
|
|
|
+ .navigation();
|
|
|
+ } else {
|
|
|
+ ARouter.getInstance()
|
|
|
+ .build(RouterPath.WebCenter.ACTIVITY_HTML)
|
|
|
+ .withString(WebConstants.WEB_URL, WebConstants.TEACHER_LIVE_DETAIL + "?groupId=" + item.courseGroupId)
|
|
|
+ .navigation();
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
}
|