40 lines
1011 B
Objective-C
Executable File
40 lines
1011 B
Objective-C
Executable File
//
|
|
// YYMicAlertMiyouCell.m
|
|
// SweetParty
|
|
//
|
|
// Created by bj_szd on 2023/12/26.
|
|
//
|
|
|
|
#import "YYMicAlertMiyouCell.h"
|
|
|
|
@implementation YYMicAlertMiyouCell
|
|
|
|
- (void)awakeFromNib {
|
|
[super awakeFromNib];
|
|
|
|
[self.tagView styleGradiBlueColor];
|
|
}
|
|
|
|
- (void)onUpdateUIWith:(SPFocusFansModel *)model type:(NSInteger)type {
|
|
[self.avatarImgV sd_setImageWithURL:[NSURL URLWithString:model.head_pic] placeholderImage:kDefaultUserIcon];
|
|
self.nicknameLab.text = model.nick_name;
|
|
|
|
self.tagLabel.text = model.name;
|
|
self.timeLab.text = [NSString stringWithFormat:@"ID:%@", model.uid];
|
|
self.sexImgV.image = model.sex == 1 ? ImageNamed(@"sex_nan") : ImageNamed(@"sex_nv");
|
|
if (type == 1) {
|
|
self.timeLab.text = [NSString stringWithFormat:@"剩余时间:%@天", model.surplus_time];
|
|
self.tagView.backgroundColor = MHColorFromHexString(model.color);
|
|
}
|
|
}
|
|
|
|
- (IBAction)moreButtonClick:(UIButton *)sender {
|
|
if (self.moreBlock){
|
|
self.moreBlock();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@end
|