处理详情tag的背景色
This commit is contained in:
@@ -33,7 +33,7 @@ typedef NS_ENUM(NSInteger, KBSkinDetailSection) {
|
||||
@interface KBSkinDetailVC () <UICollectionViewDataSource, UICollectionViewDelegateFlowLayout>
|
||||
@property (nonatomic, strong) UICollectionView *collectionView; // 主列表
|
||||
@property (nonatomic, strong) KBSkinBottomActionView *bottomBar; // 底部操作条
|
||||
@property (nonatomic, copy) NSArray<NSString *> *tags; // 标签数据
|
||||
@property (nonatomic, copy) NSArray<KBShopThemeTagModel *> *tags; // 标签数据
|
||||
@property (nonatomic, copy) NSArray<KBShopThemeModel *> *recommendedThemes; // 底部网格数据
|
||||
@property (nonatomic, strong) KBShopVM *shopVM;
|
||||
@property (nonatomic, strong, nullable) KBShopThemeDetailModel *detailModel;
|
||||
@@ -344,13 +344,13 @@ typedef NS_ENUM(NSInteger, KBSkinDetailSection) {
|
||||
return;
|
||||
}
|
||||
weakSelf.detailModel = detail;
|
||||
NSMutableArray<NSString *> *tagNames = [NSMutableArray array];
|
||||
NSMutableArray<KBShopThemeTagModel *> *tags = [NSMutableArray array];
|
||||
for (KBShopThemeTagModel *tag in detail.themeTag) {
|
||||
if (tag.label.length) {
|
||||
[tagNames addObject:tag.label];
|
||||
if (tag.label.length > 0) {
|
||||
[tags addObject:tag];
|
||||
}
|
||||
}
|
||||
weakSelf.tags = tagNames.copy;
|
||||
weakSelf.tags = tags.copy;
|
||||
[weakSelf updateBottomBarAppearance];
|
||||
[weakSelf refreshHeaderAndTags];
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user