Explorar o código

修改老师端直播课 视频课 我的曲谱列表点击事件

Pq %!s(int64=3) %!d(string=hai) anos
pai
achega
4558cb7599

+ 16 - 12
teacher/src/main/java/com/cooleshow/teacher/ui/course/MineLiveCourseFragment.java

@@ -107,18 +107,22 @@ public class MineLiveCourseFragment extends BaseMVPFragment<FragmentMineLiveCour
         mViewBinding.tvOpen.setOnClickListener(this);
         mineLiveCourseAdapter.setOnItemClickListener((adapter, view, position) -> {
             MineLiveCourseListBean.RowsBean item = (MineLiveCourseListBean.RowsBean) adapter.getItem(position);
-            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();
-            }
+            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();
+//            }
         });
 
     }

+ 2 - 1
teacher/src/main/java/com/cooleshow/teacher/ui/course/MineVideoCourseFragment.java

@@ -108,7 +108,8 @@ public class MineVideoCourseFragment extends BaseMVPFragment<FragmentMineVideoCo
         mViewBinding.tvOpen.setOnClickListener(this);
         mineVideoCourseAdapter.setOnItemClickListener((adapter, view, position) -> {
             VideoCourseListBean.RowsBean item = (VideoCourseListBean.RowsBean) adapter.getItem(position);
-            if (TextUtils.equals(auditStatus, "UNPASS") || TextUtils.equals(auditStatus,"OUT_SALE")) {
+//            if (TextUtils.equals(auditStatus, "UNPASS") || TextUtils.equals(auditStatus,"OUT_SALE")) {
+            if (TextUtils.equals(auditStatus, "UNPASS")) {
                 //审核失败 已下架的跳转编辑页面
                 ARouter.getInstance()
                         .build(RouterPath.WebCenter.ACTIVITY_HTML)

+ 10 - 1
teacher/src/main/java/com/cooleshow/teacher/ui/score/MineScoreFragment.java

@@ -143,7 +143,16 @@ public class MineScoreFragment extends BaseMVPFragment<FragmentMineScoreBinding,
         mineScoreAdapter.setOnItemClickListener((adapter, view, position) -> {
             List<MusicSheetListBean.RowsBean> data = mineScoreAdapter.getData();
             MusicSheetListBean.RowsBean rowsBean = data.get(position);
-            if (TextUtils.equals(rowsBean.auditStatus, MineScoreActivity.TYPE_UNPASS)||TextUtils.equals(rowsBean.auditStatus, MineScoreActivity.TYPE_OUT_SALE)) {
+//            if (TextUtils.equals(rowsBean.auditStatus, MineScoreActivity.TYPE_UNPASS)||TextUtils.equals(rowsBean.auditStatus, MineScoreActivity.TYPE_OUT_SALE)) {
+//                ARouter.getInstance().build(RouterPath.WebCenter.ACTIVITY_HTML)
+//                        .withString(WebConstants.WEB_URL, String.format(WebConstants.EDIT_SCORE_PAGE, rowsBean.id))
+//                        .navigation();
+//                return;
+//            }
+            if (TextUtils.equals(rowsBean.auditStatus, MineScoreActivity.TYPE_OUT_SALE)) {
+                return;
+            }
+            if (TextUtils.equals(rowsBean.auditStatus, MineScoreActivity.TYPE_UNPASS)) {
                 ARouter.getInstance().build(RouterPath.WebCenter.ACTIVITY_HTML)
                         .withString(WebConstants.WEB_URL, String.format(WebConstants.EDIT_SCORE_PAGE, rowsBean.id))
                         .navigation();