Files
midi_ios/QXLive/Mine(音域)/View/钱包/QXWithDrawRecordCell.m
2025-08-14 10:07:49 +08:00

40 lines
1.1 KiB
Objective-C

//
// QXWithDrawRecordCell.m
// QXLive
//
// Created by 启星 on 2025/7/12.
//
#import "QXWithDrawRecordCell.h"
@implementation QXWithDrawRecordCell
+(instancetype)cellWithTableView:(UITableView *)tableView{
static NSString *cellId = @"QXWithDrawRecordCell";
QXWithDrawRecordCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
if (!cell) {
cell = [[NSBundle mainBundle] loadNibNamed:cellId owner:nil options:nil].lastObject;
cell.backgroundColor = [UIColor clearColor];
}
return cell;
}
-(void)setModel:(QXWithDrawRecordModel *)model{
_model = model;
self.reasonLabel.text = model.name;
self.timeLabel.text = model.createtime;
self.priceLabel.text = [NSString stringWithFormat:@"%.2f",model.money.doubleValue];
self.statusLabel.text = model.status_str;
}
- (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