// // QXRoomSubsidyHistoryCell.m // IsLandVoice // // Created by 启星 on 2025/4/23. // #import "QXRoomSubsidyHistoryCell.h" @implementation QXRoomSubsidyHistoryCell +(instancetype)cellWithTableView:(UITableView *)tableView{ static NSString *cellId = @"QXRoomSubsidyHistoryCell"; QXRoomSubsidyHistoryCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId]; if (!cell) { cell = [[NSBundle mainBundle] loadNibNamed:cellId owner:nil options:nil].lastObject; } return cell; } -(void)setModel:(QXSubsidyHistoryModel *)model{ _model = model; self.allWaterLabel.text = [NSString stringWithFormat:@"%.1f",model.total_transaction.doubleValue]; self.subsidyLabel.text = [NSString stringWithFormat:@"%.1f",model.subsidy_amount.doubleValue]; self.timeLabel.text = [NSString stringWithFormat:@"%@-%@",model.start_time,model.end_time]; self.statusLabel.text = model.status==1?@"已发放":@"未发放"; self.statusLabel.textColor = model.status==1?[UIColor colorWithHexString:@"#999999"]:[UIColor colorWithHexString:@"#45D08C"]; } - (void)awakeFromNib { [super awakeFromNib]; // Initialization code } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; // Configure the view for the selected state } @end