|
@@ -47,9 +47,18 @@ public class JumpUtils {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
+ if (TextUtils.equals(routeBean.pageTag, RouteConstants.PAGE_TAG_VIP_CLASS)) {
|
|
|
+ //我的课表 -> 陪练课
|
|
|
+ ARouter.getInstance().build(RouterPath.CourseCenter.TEACHER_MINE_COURSE)
|
|
|
+ .withInt(Constants.SELECT_POSITION, 0)
|
|
|
+ .navigation();
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
if (TextUtils.equals(routeBean.pageTag, RouteConstants.PAGE_TAG_PRACTICE_CLASS)) {
|
|
|
//我的课表 -> 陪练课
|
|
|
ARouter.getInstance().build(RouterPath.CourseCenter.TEACHER_MINE_COURSE)
|
|
|
+ .withInt(Constants.SELECT_POSITION, 1)
|
|
|
.navigation();
|
|
|
return true;
|
|
|
}
|
|
@@ -57,7 +66,7 @@ public class JumpUtils {
|
|
|
if (TextUtils.equals(routeBean.pageTag, RouteConstants.PAGE_TAG_LIVE_CLASS)) {
|
|
|
//我的课表 -> 直播课
|
|
|
ARouter.getInstance().build(RouterPath.CourseCenter.TEACHER_MINE_COURSE)
|
|
|
- .withInt("selectPosition", 1)
|
|
|
+ .withInt(Constants.SELECT_POSITION, 2)
|
|
|
.navigation();
|
|
|
return true;
|
|
|
}
|
|
@@ -65,7 +74,7 @@ public class JumpUtils {
|
|
|
if (TextUtils.equals(routeBean.pageTag, RouteConstants.PAGE_TAG_VIDEO_CLASS)) {
|
|
|
//我的课表 -> 视频课
|
|
|
ARouter.getInstance().build(RouterPath.CourseCenter.TEACHER_MINE_COURSE)
|
|
|
- .withInt("selectPosition", 2)
|
|
|
+ .withInt(Constants.SELECT_POSITION, 3)
|
|
|
.navigation();
|
|
|
return true;
|
|
|
}
|
|
@@ -148,6 +157,14 @@ public class JumpUtils {
|
|
|
.navigation();
|
|
|
return true;
|
|
|
}
|
|
|
+
|
|
|
+ if (TextUtils.equals(routeBean.pageTag, RouteConstants.PAGE_TAG_COURSE_PLAN)) {
|
|
|
+ //对应的课程详情
|
|
|
+ String courseType = getParams(routeBean.params, "courseType");
|
|
|
+ String courseGroupId = getParams(routeBean.params, "courseGroupId");
|
|
|
+ goCourseGroupDetailByCourseType(courseGroupId,courseType);
|
|
|
+ return true;
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
//跳转H5页面
|
|
@@ -167,6 +184,31 @@ public class JumpUtils {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+ private static void goCourseGroupDetailByCourseType(String courseGroupID,String courseType) {
|
|
|
+ //VIP课课程组详情
|
|
|
+ if (TextUtils.equals(courseType, Constants.VIP_COURSE_TAG)) {
|
|
|
+ ARouter.getInstance().build(RouterPath.CourseCenter.VIP_COURSE_GROUP_DETAIL)
|
|
|
+ .withString("course_group_id", courseGroupID)
|
|
|
+ .navigation();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ //趣纠课课程组详情
|
|
|
+ if (TextUtils.equals(courseType, Constants.INTEREST_COURSE_TAG)) {
|
|
|
+ ARouter.getInstance().build(RouterPath.CourseCenter.VIP_COURSE_GROUP_DETAIL)
|
|
|
+ .withString("course_group_id", courseGroupID)
|
|
|
+ .withString(Constants.COMMON_EXTRA_KEY, Constants.INTEREST_COURSE_TAG)
|
|
|
+ .navigation();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ //琴房课课程组详情
|
|
|
+ if (TextUtils.equals(courseType, Constants.PIANO_COURSE_TAG)) {
|
|
|
+ ARouter.getInstance().build(RouterPath.CourseCenter.PIANO_COURSE_GROUP_DETAIL)
|
|
|
+ .withString("course_group_id", courseGroupID)
|
|
|
+ .navigation();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
private static String getParams(String paramsJson, String key) {
|
|
|
try {
|
|
|
paramsJson.replace("\\", "");
|