45 lines
1.3 KiB
Objective-C
45 lines
1.3 KiB
Objective-C
//
|
|
// LMWeekListTableViewCell.m
|
|
// SweetParty
|
|
//
|
|
// Created by Xmac on 2024/8/7.
|
|
//
|
|
|
|
#import "LMWeekListTableViewCell.h"
|
|
|
|
@implementation LMWeekListTableViewCell
|
|
|
|
- (void)awakeFromNib {
|
|
[super awakeFromNib];
|
|
// Initialization code
|
|
|
|
WEAK_SELF;
|
|
[self.receiveHeaderPic dg_Tapped:^{
|
|
[UIViewController goUserMainpageWith:weakSelf.model.uid withRid:@""];
|
|
}];
|
|
|
|
[self.sendHeaderPic dg_Tapped:^{
|
|
[UIViewController goUserMainpageWith:weakSelf.model.give_uid withRid:@""];
|
|
}];
|
|
}
|
|
|
|
- (void)setModel:(LMCurrentWeekGiftRankListModel *)model
|
|
{
|
|
_model = model;
|
|
[self.receiveHeaderPic sd_setImageWithURL:[NSURL URLWithString:model.head_pic] placeholderImage:kDefaultUserIcon];
|
|
self.nickNameLabel.text = model.nick_name;
|
|
self.receiveCountLabel.text = [NSString stringWithFormat:@"收到%@个%@",model.total_gift_num,model.gift_name];
|
|
|
|
[self.sendHeaderPic sd_setImageWithURL:[NSURL URLWithString:model.give_head_pic] placeholderImage:kDefaultUserIcon];
|
|
self.sendCountLabel.text = [NSString stringWithFormat:@"打赏%@个",model.give_total_gift_num];
|
|
}
|
|
|
|
|
|
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
|
|
[super setSelected:selected animated:animated];
|
|
|
|
// Configure the view for the selected state
|
|
}
|
|
|
|
@end
|