处理详情tag的背景色

This commit is contained in:
2025-12-23 20:56:00 +08:00
parent 6a539dc3c5
commit 0a725e845e
7 changed files with 52 additions and 20 deletions

View File

@@ -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];
});