|
@@ -1,6 +1,7 @@
|
|
|
package com.cooleshow.base.utils;
|
|
|
|
|
|
import android.text.TextUtils;
|
|
|
+import android.util.Log;
|
|
|
|
|
|
import com.alibaba.android.arouter.launcher.ARouter;
|
|
|
import com.cooleshow.base.bean.RouteBean;
|
|
@@ -29,6 +30,7 @@ public class JumpUtils {
|
|
|
|
|
|
if (TextUtils.equals(action, ACTION_APP)) {
|
|
|
//跳转原生页面
|
|
|
+ Log.i("pq", "routeBean tag:" + routeBean.pageTag);
|
|
|
if (!TextUtils.isEmpty(routeBean.pageTag)) {
|
|
|
if (TextUtils.equals(routeBean.pageTag, RouteConstants.PAGE_TAG_BUY_PRACTICE) || TextUtils.equals(routeBean.pageTag, RouteConstants.PAGE_TAG_COURSE_REMIND)) {
|
|
|
//购买陪练课,跳转首页课表
|
|
@@ -38,6 +40,30 @@ public class JumpUtils {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
+ if (TextUtils.equals(routeBean.pageTag, RouteConstants.PAGE_TAG_PRACTICE_CLASS)) {
|
|
|
+ //我的课表 -> 陪练课
|
|
|
+ ARouter.getInstance().build(RouterPath.CourseCenter.TEACHER_MINE_COURSE)
|
|
|
+ .navigation();
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (TextUtils.equals(routeBean.pageTag, RouteConstants.PAGE_TAG_LIVE_CLASS)) {
|
|
|
+ //我的课表 -> 直播课
|
|
|
+ ARouter.getInstance().build(RouterPath.CourseCenter.TEACHER_MINE_COURSE)
|
|
|
+ .withInt("selectPosition",1)
|
|
|
+ .navigation();
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (TextUtils.equals(routeBean.pageTag, RouteConstants.PAGE_TAG_VIDEO_CLASS)) {
|
|
|
+ //我的课表 -> 视频课
|
|
|
+ ARouter.getInstance().build(RouterPath.CourseCenter.TEACHER_MINE_COURSE)
|
|
|
+ .withInt("selectPosition",2)
|
|
|
+ .navigation();
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
if (TextUtils.equals(routeBean.pageTag, RouteConstants.PAGE_TAG_EVALUATE)) {
|
|
|
//跳转评价页面
|
|
|
if (BaseApplication.Companion.isTeacherClient()) {
|
|
@@ -98,6 +124,7 @@ public class JumpUtils {
|
|
|
//跳转直播间
|
|
|
if (!BaseApplication.Companion.isTeacherClient()) {
|
|
|
String liveRoomId = getParams(routeBean.params, "liveRoomId");
|
|
|
+ Log.i("pq", "routeBean liveRoomId:" + liveRoomId);
|
|
|
if (TextUtils.isEmpty(liveRoomId)) {
|
|
|
return false;
|
|
|
}
|