增加换肤功能
This commit is contained in:
38
QXLive/Mine(音域)/View/我的房间/QXRoomSubsidyHistoryCell.m
Normal file
38
QXLive/Mine(音域)/View/我的房间/QXRoomSubsidyHistoryCell.m
Normal file
@@ -0,0 +1,38 @@
|
||||
//
|
||||
// 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
|
||||
Reference in New Issue
Block a user