30 lines
764 B
Mathematica
30 lines
764 B
Mathematica
|
|
//
|
||
|
|
// LMWeekLastCollectionViewCell.m
|
||
|
|
// SweetParty
|
||
|
|
//
|
||
|
|
// Created by Xmac on 2024/8/7.
|
||
|
|
//
|
||
|
|
|
||
|
|
#import "LMWeekLastCollectionViewCell.h"
|
||
|
|
|
||
|
|
@implementation LMWeekLastCollectionViewCell
|
||
|
|
|
||
|
|
- (void)awakeFromNib {
|
||
|
|
[super awakeFromNib];
|
||
|
|
// Initialization code
|
||
|
|
}
|
||
|
|
|
||
|
|
- (void)setModel:(LMLastWeekRankListModel *)model
|
||
|
|
{
|
||
|
|
_model = model;
|
||
|
|
[self.giftBaseImage sd_setImageWithURL:[NSURL URLWithString:model.base_image] placeholderImage:kDefaultUserIcon];
|
||
|
|
self.giftName.text = model.gift_name;
|
||
|
|
[self.userHeader sd_setImageWithURL:[NSURL URLWithString:model.head_pic] placeholderImage:kDefaultUserIcon];
|
||
|
|
self.userNameLabel.text = model.nick_name;
|
||
|
|
self.receiveCount.text = [NSString stringWithFormat:@"收到%@个",model.total_gift_num];
|
||
|
|
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
@end
|