Commit 2ac6179d464ec66e0a8746c2647b04a463eb640b
1 parent
ca9f3d3f
设置播放列表播放状态角标
Showing
2 changed files
with
20 additions
and
1 deletions
LiveVideoCloud/LiveVideoCloud/Classes/Sections/LiveSections/Controller/LVCLiveViewController.m
LiveVideoCloud/LiveVideoCloud/Classes/Sections/homeSections/View/LVCUGCLivePlayerCell.m
| ... | ... | @@ -59,6 +59,26 @@ |
| 59 | 59 | NSString *path = [[NSBundle mainBundle] pathForResource:@"timg" ofType:@"jpeg"]; |
| 60 | 60 | UIImage *image = [UIImage imageWithContentsOfFile:path]; |
| 61 | 61 | [_imageView sd_setImageWithURL:[NSURL URLWithString:model.coverImgUrl] placeholderImage:image]; |
| 62 | + switch ([model.activityStatus intValue]) { | |
| 63 | + case -2: // 异常 | |
| 64 | + _stateLabel.text = @"异常"; | |
| 65 | + break; | |
| 66 | + case 0: // 未开始 | |
| 67 | + _stateLabel.text = @"未开始"; | |
| 68 | + break; | |
| 69 | + case 1: // 已开始 | |
| 70 | + _stateLabel.text = @"正直播"; | |
| 71 | + break; | |
| 72 | + case 2: // 已结束 | |
| 73 | + _stateLabel.text = @"已结束"; | |
| 74 | + break; | |
| 75 | + case 4: // 已离线 | |
| 76 | + _stateLabel.text = @"已离线"; | |
| 77 | + break; | |
| 78 | + | |
| 79 | + default: | |
| 80 | + break; | |
| 81 | + } | |
| 62 | 82 | } |
| 63 | 83 | |
| 64 | 84 | #pragma mark - SetMethod !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ... | ... |