Commit 4f03bd0571f50b6ad5d44fc7e54bee2ac394ec4f
1 parent
33b994c2
优化展示逻辑
Showing
1 changed file
with
3 additions
and
3 deletions
CNLiveCServiceModule/Classes/View/CNLiveCycleCell.m
| @@ -142,11 +142,11 @@ static NSString *CNServiceOrLookID = @"CNLiveServiceOrLookCell"; | @@ -142,11 +142,11 @@ static NSString *CNServiceOrLookID = @"CNLiveServiceOrLookCell"; | ||
| 142 | { | 142 | { |
| 143 | _model = model; | 143 | _model = model; |
| 144 | self.dataSource = model.lists; | 144 | self.dataSource = model.lists; |
| 145 | - if ([model.categoryId isEqualToString:@"27"]||[model.categoryId isEqualToString:@"35"]||[model.categoryId isEqualToString:@"36"]|| (model.subTitle && ![model.subTitle isEqualToString:@""])) { | ||
| 146 | - self.bgView.backgroundColor = CNLiveColorWithHexString(@"#F9FAFB"); | 145 | + if ([model.categoryId isEqualToString:@"6"]||[model.categoryId isEqualToString:@"serving"]||([model.categoryId isEqualToString:@""]&& ( !model.subTitle || [model.subTitle isEqualToString:@""]))) { |
| 146 | + self.bgView.backgroundColor = kClearColor; | ||
| 147 | }else | 147 | }else |
| 148 | { | 148 | { |
| 149 | - self.bgView.backgroundColor = kClearColor; | 149 | + self.bgView.backgroundColor = CNLiveColorWithHexString(@"#F9FAFB"); |
| 150 | } | 150 | } |
| 151 | } | 151 | } |
| 152 | - (void)setDataSource:(NSArray *)dataSource | 152 | - (void)setDataSource:(NSArray *)dataSource |