// // ThroughHistoryCollectionViewCell.m // Lighting // // Created by 曹云霄 on 2017/3/3. // Copyright © 2017年 上海勾芒科技有限公司. All rights reserved. // #import "ThroughHistoryCollectionViewCell.h" @implementation ThroughHistoryCollectionViewCell - (void)setEntity:(TOPassLevelEntity *)entity { _entity = entity; self.titleLabel.text = entity.title; self.remainingOpportunityLabel.text = [NSString stringWithFormat:@"剩余机会(%ld)",entity.residue]; self.remainingOpportunityLabel.hidden = ![entity.passResult isEqualToString:@"0"]; self.endDateLabel.text = [[entity.endDate componentsSeparatedByString:@" "] firstObject]; self.stateImageView.image = [[BaseViewController class] emigratedState:entity.passResult]; } @end