|
@@ -14,6 +14,7 @@
|
|
|
#import "ArrangeLiveCourseModel.h"
|
|
|
#import <KSChoosePicker.h>
|
|
|
#import "UserInfoManager.h"
|
|
|
+#import "KSBaseWKWebViewController.h"
|
|
|
|
|
|
@interface HomeArrangeLiveCourseView ()<UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout>
|
|
|
|
|
@@ -181,7 +182,6 @@
|
|
|
|
|
|
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
|
|
|
return self.dataArray.count;
|
|
|
-// return 10;
|
|
|
}
|
|
|
|
|
|
- (__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
|
|
@@ -193,11 +193,11 @@
|
|
|
}
|
|
|
|
|
|
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
|
|
|
-// LiveCourseModel *model = self.dataArray[indexPath.row];
|
|
|
-// KSBaseWKWebViewController *ctrl = [[KSBaseWKWebViewController alloc] init];
|
|
|
-// NSString *url = [NSString stringWithFormat:@"%@%@%.0f", WEBHOST, @"/#/liveDetail?groupId=",model.courseGroupId];
|
|
|
-// ctrl.url = url;
|
|
|
-// [self.naviController pushViewController:ctrl animated:YES];
|
|
|
+ ArrangeLiveCourseModel *model = self.dataArray[indexPath.row];
|
|
|
+ KSBaseWKWebViewController *ctrl = [[KSBaseWKWebViewController alloc] init];
|
|
|
+ NSString *url = [NSString stringWithFormat:@"%@%@%@", WEBHOST, @"/#/liveDetail?groupId=",model.courseGroupId];
|
|
|
+ ctrl.url = url;
|
|
|
+ [self.naviController pushViewController:ctrl animated:YES];
|
|
|
}
|
|
|
|
|
|
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath {
|