2025-11-21 16:17:05 +08:00
|
|
|
//
|
|
|
|
|
// QXMineSongListCell.m
|
|
|
|
|
// QXLive
|
|
|
|
|
//
|
|
|
|
|
// Created by 启星 on 2025/11/13.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#import "QXMineSongListCell.h"
|
|
|
|
|
|
|
|
|
|
@implementation QXMineSongListCell
|
|
|
|
|
+(instancetype)cellWithTableView:(UITableView *)tableView{
|
|
|
|
|
static NSString *cellId = @"QXMineSongListCell";
|
|
|
|
|
QXMineSongListCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
|
|
|
|
|
if (!cell) {
|
|
|
|
|
cell = [[NSBundle mainBundle] loadNibNamed:cellId owner:nil options:nil].lastObject;
|
|
|
|
|
cell.backgroundColor = [UIColor clearColor];
|
|
|
|
|
}
|
|
|
|
|
return cell;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
-(void)setModel:(QXUserSongListModel *)model{
|
|
|
|
|
_model = model;
|
|
|
|
|
[self.giftImageView sd_setImageWithURL:[NSURL URLWithString:model.base_image]];
|
2025-12-04 14:11:00 +08:00
|
|
|
self.giftInfoLabel.text = [NSString stringWithFormat:@"x%@ %@",model.gift_num,model.gift_name];
|
2025-11-21 16:17:05 +08:00
|
|
|
self.songNameLabel.text = model.song_name;
|
|
|
|
|
self.giftPriceLabel.text = model.gift_price;
|
|
|
|
|
}
|
|
|
|
|
- (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
|