






#import "FlippedAlongFilmAttachDiscountCell.h"
#import "FixMaterial.h"
#import "Masonry.h"

@implementation FlippedAlongFilmAttachDiscountCell

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if(self){
        
        self.backgroundColor = UIColor.whiteColor;
        self.contentView.backgroundColor = UIColor.whiteColor;
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        
        
        self.packArcadeView = [UIImageView new];
        self.packArcadeView.tintColor = [FixMaterial beforeArtColor];
        self.packArcadeView.layer.cornerRadius = 15;
        [self.contentView addSubview:self.packArcadeView];
        [self.packArcadeView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(FixMaterial.capsLoopsAge.expiredBuilt);
            make.centerY.mas_equalTo(self);
            make.width.height.mas_equalTo(FixMaterial.capsLoopsAge.sayDomainCup);
        }];
        
        
        self.senseWaxName = [UILabel new];
        self.senseWaxName.font = [UIFont boldSystemFontOfSize:16];
        self.senseWaxName.textColor = UIColor.darkGrayColor;
        [self.contentView addSubview:self.senseWaxName];
        [self.senseWaxName mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self.packArcadeView.mas_right).offset(FixMaterial.capsLoopsAge.expiredBuilt);
            make.bottom.equalTo(self.contentView.mas_centerY);
        }];
        
        
        self.whoEightPinTime = [UILabel new];
        self.whoEightPinTime.font =  [UIFont systemFontOfSize:11];
        self.whoEightPinTime.textColor = UIColor.grayColor;
        [self.contentView addSubview:self.whoEightPinTime];
        [self.whoEightPinTime mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.contentView.mas_centerY).offset(FixMaterial.capsLoopsAge.eachFontJob);
            make.left.equalTo(self.senseWaxName);
        }];
    }
    return self;
}

@end
