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.
39 lines
1.0 KiB
39 lines
1.0 KiB
4 years ago
|
//
|
||
|
// TFBookStoreComicMaxItemCell.m
|
||
|
// TFReader
|
||
|
//
|
||
|
// Created by 谢腾飞 on 2020/12/16.
|
||
|
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import "TFBookStoreComicMaxItemCell.h"
|
||
|
|
||
|
@implementation TFBookStoreComicMaxItemCell
|
||
|
|
||
|
- (void)createSubViews
|
||
|
{
|
||
|
[super createSubViews];
|
||
|
|
||
|
self.comicCoverView.coverDirection = TFProductionCoverDirectionHorizontal;
|
||
|
|
||
|
[self.comicCoverView mas_updateConstraints:^(MASConstraintMaker *make) {
|
||
|
make.width.mas_equalTo(Comic_MaxCross_Width);
|
||
|
make.height.mas_equalTo(Comic_MaxCross_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
|