|
@@ -223,10 +223,23 @@
|
|
|
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
|
|
|
// 直播课程组详情
|
|
|
LiveCourseModel *model = self.dataArray[indexPath.row];
|
|
|
- [self displayLiveCourseDetailWithGroupId:[NSString stringWithFormat:@"%.0f",model.courseGroupId]];
|
|
|
+ if (self.selectIndex == 4) {
|
|
|
+ [self editLiveCourseWithGroupId:[NSString stringWithFormat:@"%.0f",model.courseGroupId]];
|
|
|
+
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ [self displayLiveCourseDetailWithGroupId:[NSString stringWithFormat:@"%.0f",model.courseGroupId]];
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|
|
|
+- (void)editLiveCourseWithGroupId:(NSString *)groupId {
|
|
|
+ KSBaseWKWebViewController *ctrl = [[KSBaseWKWebViewController alloc] init];
|
|
|
+ NSString *url = [NSString stringWithFormat:@"%@%@%@", WEBHOST, @"/#/liveCreate?groupId=",groupId];
|
|
|
+ ctrl.url = url;
|
|
|
+ [self.naviController pushViewController:ctrl animated:YES];
|
|
|
+}
|
|
|
+
|
|
|
- (void)displayLiveCourseDetailWithGroupId:(NSString *)groupId {
|
|
|
KSBaseWKWebViewController *ctrl = [[KSBaseWKWebViewController alloc] init];
|
|
|
NSString *url = [NSString stringWithFormat:@"%@%@%@", WEBHOST, @"/#/liveDetail?groupId=",groupId];
|