al
liurenjie
2021-07-03 1b73d5d0b495f2d643c2523e1b8399f925b4f702
BuWanVideo2.0/Recommend/Recommend/Cell/RecommendTwoColumnCell.m
@@ -7,6 +7,7 @@
//
#import "RecommendTwoColumnCell.h"
#define BSKPlaceHolderImage [UIImage imageNamed:@"默认加载图片"]
@interface RecommendTwoColumnCell ()
@@ -48,7 +49,18 @@
- (void)setData:(NSDictionary *)data {
    _data = data;
    if (data) {
        [_imaegView setYthImageWithURL:data[@"Hpicture"] placeholderImage:nil];
        [self laodata:data];
    }
}
- (void)setDataNormol:(NSDictionary *)dataNormol {
    if (_dataNormol) {
        [self laodata:dataNormol];
    }
}
- (void)laodata:(NSDictionary *)data {
    [_imaegView setYthImageWithURL:data[@"Hpicture"] placeholderImage:BSKPlaceHolderImage];
        self.labelTag.text = data[@"Tag"];
        
        if (data[@"Score"]) {
@@ -70,7 +82,6 @@
            height = 34;
        }
        self.labelTitle.sd_resetLayout.leftSpaceToView(self.contentView, 0).topSpaceToView(self.imaegView, 6).rightSpaceToView(self.contentView, 0).heightIs(height);
    }
}
- (CGFloat)fetchLabelHeight:(NSString *)string fontSize:(NSInteger)fontSize width:(float)width {