Bläddra i källkod

还原直播课显示

Steven 3 månader sedan
förälder
incheckning
1336800ef3

+ 1 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Mine/MinePage/View/MineVideoCourse/MinePageVideoCourseView.m

@@ -228,7 +228,7 @@
 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
     MinePageVideoGroupCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MinePageVideoGroupCell"];
     VideoCourseModel *model = [self.dataArray objectAtIndex:indexPath.row];
-    [cell configSourceModel:model groupStatus:VIDEOGRROUP_STATUS_ING hideBottomView:NO];
+    [cell configSourceModel:model groupStatus:VIDEOGRROUP_STATUS_ING];
     return cell;
 }
 

+ 1 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Mine/MinePage/View/MineVideoCourse/MinePageVideoGroupCell.h

@@ -19,7 +19,7 @@ NS_ASSUME_NONNULL_BEGIN
 
 @interface MinePageVideoGroupCell : UITableViewCell
 
-- (void)configSourceModel:(VideoCourseModel *)model groupStatus:(VIDEOGRROUP_STATUS)status hideBottomView:(BOOL)hideBottomView;
+- (void)configSourceModel:(VideoCourseModel *)model groupStatus:(VIDEOGRROUP_STATUS)status;
 
 
 @end

+ 3 - 8
KulexiuForTeacher/KulexiuForTeacher/Module/Mine/MinePage/View/MineVideoCourse/MinePageVideoGroupCell.m

@@ -51,7 +51,7 @@
     _statusView.layer.maskedCorners = kCALayerMaxXMaxYCorner | kCALayerMaxXMinYCorner;
 }
 
-- (void)configSourceModel:(VideoCourseModel *)model groupStatus:(VIDEOGRROUP_STATUS)status hideBottomView:(BOOL)hideBottomView {
+- (void)configSourceModel:(VideoCourseModel *)model groupStatus:(VIDEOGRROUP_STATUS)status {
     
     [self.coverImage sd_setImageWithURL:[NSURL URLWithString:[model.lessonCoverUrl getUrlEndcodeString]] placeholderImage:[UIImage imageNamed:@"video_placeholder"]];
     self.courseTitle.text = [NSString returnNoNullStringWithString:model.lessonName];
@@ -104,14 +104,9 @@
             self.statusView.backgroundColor = HexRGB(0xd5fff7);
             self.statusLabel.textColor = HexRGB(0x2dc7aa);
             self.statusLabel.text = @"已上架";
-            if (hideBottomView) {
-                self.statusView.hidden = NO;
-            }
-            else {
-                self.descView.hidden = NO;
-                self.statusView.hidden = NO;
-            }
             
+            self.descView.hidden = NO;
+            self.statusView.hidden = NO;
         }
             break;
         case VIDEOGRROUP_STATUS_CHECK:

+ 1 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Mine/VideoCourse/View/VideoListBodyView.m

@@ -201,7 +201,7 @@
     MinePageVideoGroupCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MinePageVideoGroupCell"];
     VideoCourseModel *model = [self.dataArray objectAtIndex:indexPath.row];
     VIDEOGRROUP_STATUS status = [self getCourseStatus:self.selectIndex];
-    [cell configSourceModel:model groupStatus:status hideBottomView:NO];
+    [cell configSourceModel:model groupStatus:status];
     return cell;
 }