|
@@ -277,33 +277,23 @@
|
|
|
}
|
|
|
else if ([pageType isEqualToString:@"vipClass"]) { // 我的课程 ->vip定制课
|
|
|
DISPLAY_INDEX index = DISPLAY_INDEX_VIP;
|
|
|
- MyCourseViewController *ctrl = [[MyCourseViewController alloc] init];
|
|
|
- [ctrl displayWithIndex:index];
|
|
|
- [self.navigationController pushViewController:ctrl animated:YES];
|
|
|
+ [self toMyCoursePageWithIndex:index];
|
|
|
}
|
|
|
else if ([pageType isEqualToString:@"practiceClass"]) { // 我的课程 ->趣纠课
|
|
|
DISPLAY_INDEX index = DISPLAY_INDEX_FIRST;
|
|
|
- MyCourseViewController *ctrl = [[MyCourseViewController alloc] init];
|
|
|
- [ctrl displayWithIndex:index];
|
|
|
- [self.navigationController pushViewController:ctrl animated:YES];
|
|
|
+ [self toMyCoursePageWithIndex:index];
|
|
|
}
|
|
|
else if ([pageType isEqualToString:@"groupClass"]) { // 我的课程 ->小组课
|
|
|
DISPLAY_INDEX index = DISPLAY_INDEX_GROUP;
|
|
|
- MyCourseViewController *ctrl = [[MyCourseViewController alloc] init];
|
|
|
- [ctrl displayWithIndex:index];
|
|
|
- [self.navigationController pushViewController:ctrl animated:YES];
|
|
|
+ [self toMyCoursePageWithIndex:index];
|
|
|
}
|
|
|
else if ([pageType isEqualToString:@"liveClass"]) { // 我的课程 ->直播课
|
|
|
DISPLAY_INDEX index = DISPLAY_INDEX_LIVE;
|
|
|
- MyCourseViewController *ctrl = [[MyCourseViewController alloc] init];
|
|
|
- [ctrl displayWithIndex:index];
|
|
|
- [self.navigationController pushViewController:ctrl animated:YES];
|
|
|
+ [self toMyCoursePageWithIndex:index];
|
|
|
}
|
|
|
else if ([pageType isEqualToString:@"videoClass"]) { // 我的课程 ->视频课
|
|
|
DISPLAY_INDEX index = DISPLAY_INDEX_VIDEO;
|
|
|
- MyCourseViewController *ctrl = [[MyCourseViewController alloc] init];
|
|
|
- [ctrl displayWithIndex:index];
|
|
|
- [self.navigationController pushViewController:ctrl animated:YES];
|
|
|
+ [self toMyCoursePageWithIndex:index];
|
|
|
}
|
|
|
else if ([pageType isEqualToString:@"groupCourseCancel"]) { // 小组课取消
|
|
|
MyGroupCourseViewController *ctrl = [[MyGroupCourseViewController alloc] init];
|
|
@@ -328,6 +318,12 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+- (void)toMyCoursePageWithIndex:(DISPLAY_INDEX)displayIndex {
|
|
|
+ MyCourseViewController *ctrl = [[MyCourseViewController alloc] init];
|
|
|
+ [ctrl displayWithIndex:displayIndex];
|
|
|
+ [self.navigationController pushViewController:ctrl animated:YES];
|
|
|
+}
|
|
|
+
|
|
|
- (void)toFeedback {
|
|
|
FeedbackListViewController *ctrl = [[FeedbackListViewController alloc] init];
|
|
|
[self.navigationController pushViewController:ctrl animated:YES];
|