32 lines
759 B
Objective-C
Executable File
32 lines
759 B
Objective-C
Executable File
//
|
|
// SPInviteFriendListCell.m
|
|
// SweetParty
|
|
//
|
|
// Created by bj_szd on 2022/6/8.
|
|
//
|
|
|
|
#import "SPInviteFriendListCell.h"
|
|
|
|
@interface SPInviteFriendListCell ()
|
|
|
|
@end
|
|
|
|
@implementation SPInviteFriendListCell
|
|
|
|
- (void)awakeFromNib {
|
|
[super awakeFromNib];
|
|
|
|
}
|
|
|
|
- (void)setModel:(SPFocusFansModel *)model {
|
|
_model = model;
|
|
|
|
[self.avatarImgV sd_setImageWithURL:[NSURL URLWithString:model.head_pic] placeholderImage:kDefaultUserIcon];
|
|
self.nicknameLab.text = model.nick_name;
|
|
self.IDLab.text = [NSString stringWithFormat:@"ID:%@", model.uid];
|
|
self.sexImgV.image = model.sex == 1 ? ImageNamed(@"sex_nan") : ImageNamed(@"sex_nv");
|
|
self.valueLab.text = [NSString stringWithFormat:@"收益:%@钻石", model.give_earnings];
|
|
}
|
|
|
|
@end
|