Files
yuyin_ios/SweetParty/主类/Mine/View/SPMineQianyueListCell.m
2025-08-08 11:05:33 +08:00

45 lines
1.3 KiB
Objective-C
Executable File

//
// SPMineQianyueListCell.m
// SweetParty
//
// Created by bj_szd on 2022/6/8.
//
#import "SPMineQianyueListCell.h"
@interface SPMineQianyueListCell ()
@end
@implementation SPMineQianyueListCell
- (void)awakeFromNib {
[super awakeFromNib];
// [self.focusBtn styleGradiBlueColor];
}
- (void)setModel:(SPFocusFansModel *)model {
_model = model;
[self.avatarImgV sd_setImageWithURL:[NSURL URLWithString:model.head_pic] placeholderImage:kDefaultUserIcon];
self.nicknameLab.text = model.nick_name;
self.timeLabel.text = [NSString stringWithFormat:@"到期时间:%@", [NSString timestampToDateString:model.end_time]];
self.IDLab.text = [NSString stringWithFormat:@"ID:%@", model.uid];
self.sexImgV.image = model.sex == 1 ? ImageNamed(@"sex_nan") : ImageNamed(@"sex_nv");
}
- (void)setSubsidyModel:(SPFocusFansModel *)subsidyModel {
_subsidyModel = subsidyModel;
[self.avatarImgV sd_setImageWithURL:[NSURL URLWithString:subsidyModel.head_pic] placeholderImage:kDefaultUserIcon];
self.nicknameLab.text = subsidyModel.nick_name;
self.IDLab.text = [NSString stringWithFormat:@"ID:%@", subsidyModel.uid];
self.timeLabel.hidden = YES;
self.focusBtn.hidden = YES;
self.jieyueBtn.hidden = YES;
self.addButton.hidden = NO;
}
@end