40 lines
1.2 KiB
Objective-C
40 lines
1.2 KiB
Objective-C
//
|
|
// QXRoomWaterListCell.m
|
|
// IsLandVoice
|
|
//
|
|
// Created by 启星 on 2025/3/5.
|
|
//
|
|
|
|
#import "QXRoomWaterListCell.h"
|
|
|
|
@implementation QXRoomWaterListCell
|
|
+(instancetype)cellWithTableView:(UITableView *)tableView{
|
|
static NSString *cellId = @"QXRoomWaterListCell";
|
|
QXRoomWaterListCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
|
|
if (!cell) {
|
|
cell = [[NSBundle mainBundle] loadNibNamed:cellId owner:nil options:nil].lastObject;
|
|
}
|
|
return cell;
|
|
}
|
|
-(void)setModel:(QXRoomWaterDetailModel *)model{
|
|
_model = model;
|
|
self.nameLabel.text = model.sender_nickname;
|
|
[self.headerImageView sd_setImageWithURL:[NSURL URLWithString:model.sender_avatar] placeholderImage:[UIImage imageNamed:@"user_header_placehoulder"]];
|
|
self.priceLabel.text = [NSString stringWithFormat:@"+%@",model.total_price];
|
|
self.detailLabel.text = [NSString stringWithFormat:@"赠送 %@ %@x%@",model.receive_nickname,model.gift_name,model.number];
|
|
|
|
}
|
|
- (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
|
|
|