You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

40 lines
1.1 KiB

//
// TFBookStoreComicMiddleItemCell.m
// TFReader
//
// Created by 谢腾飞 on 2020/12/16.
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
//
#import "TFBookStoreComicMiddleItemCell.h"
@implementation TFBookStoreComicMiddleItemCell
- (void)createSubViews
{
[super createSubViews];
self.comicCoverView.coverDirection = TFProductionCoverDirectionHorizontal;
[self.comicCoverView mas_updateConstraints:^(MASConstraintMaker *make) {
make.width.mas_equalTo(Comic_MiddleCross_Width);
make.height.mas_equalTo(Comic_MiddleCross_Height);
}];
}
- (void)setProductionModel:(TFProductionModel *)productionModel
{
[super setProductionModel:productionModel];
if (productionModel.horizontal_cover.length > 0) {
self.comicCoverView.coverImageUrl = productionModel.horizontal_cover;
} else if (productionModel.vertical_cover.length > 0) {
self.comicCoverView.coverImageUrl = productionModel.vertical_cover;
}
self.describeLabel.text = productionModel.production_descirption ? : @"";
}
@end