Files
fanyin-ios/QXLive/Mine(音域)/View/我的房间/QXRoomSubsidyHistoryCell.m
2025-08-12 14:27:12 +08:00

39 lines
1.3 KiB
Objective-C

//
// 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