南鑫林 5 vuotta sitten
vanhempi
commit
d83dd5349c

+ 2 - 1
RainbowPlanet/RainbowPlanet/Modules/PublishModule/AliyunVideo/AlivcShortVideo/ShortVideoFile/Common/ResourceManager/Views/AliyunBeautyLevelCollectionViewCell.h

@@ -12,9 +12,10 @@ NS_ASSUME_NONNULL_BEGIN
 
 @interface AliyunBeautyLevelCollectionViewCell : UICollectionViewCell
 @property (weak, nonatomic) IBOutlet UIImageView *imageView;
-@property (nonatomic,strong) NSIndexPath *indexPath;
 @property (weak, nonatomic) IBOutlet UILabel *titleLabel;
 @property (weak, nonatomic) IBOutlet UIView *selectView;
+@property (nonatomic,strong) NSIndexPath *indexPath;
+
 @end
 
 NS_ASSUME_NONNULL_END

+ 8 - 1
RainbowPlanet/RainbowPlanet/Modules/PublishModule/AliyunVideo/AlivcShortVideo/ShortVideoFile/Common/ResourceManager/Views/AliyunBeautyLevelCollectionViewCell.m

@@ -13,10 +13,17 @@
 - (void)awakeFromNib {
     [super awakeFromNib];
     // Initialization code
+//    self.titleLabel.layer.borderColor = UIColor(
 }
-
 - (void)setIndexPath:(NSIndexPath *)indexPath {
     _indexPath = indexPath;
+    if (indexPath.row == 0) {
+        self.imageView.hidden = NO;
+        self.titleLabel.hidden = YES;
+    }else {
+        self.imageView.hidden = YES;
+        self.titleLabel.hidden = NO;
+    }
 }
 
 @end