提交
This commit is contained in:
32
QXLive/Mine(音域)/View/亲密关系/QXIntimateUserCell.m
Normal file
32
QXLive/Mine(音域)/View/亲密关系/QXIntimateUserCell.m
Normal file
@@ -0,0 +1,32 @@
|
||||
//
|
||||
// QXIntimateUserCell.m
|
||||
// QXLive
|
||||
//
|
||||
// Created by 启星 on 2025/11/20.
|
||||
//
|
||||
|
||||
#import "QXIntimateUserCell.h"
|
||||
|
||||
@implementation QXIntimateUserCell
|
||||
-(void)setModel:(QXRelationshipListModel *)model{
|
||||
_model = model;
|
||||
if ([model.user_id1 isEqualToString:QXGlobal.shareGlobal.loginModel.user_id]) {
|
||||
[self.headerView setHeadIcon:model.avatar2 dress:@""];
|
||||
self.nameLabel.text = model.nickname2;
|
||||
self.sexImageView.image = [UIImage imageNamed:model.sex2.intValue == 1?@"user_sex_boy":@"user_sex_girl"];
|
||||
}else{
|
||||
[self.headerView setHeadIcon:model.avatar1 dress:@""];
|
||||
self.nameLabel.text = model.nickname1;
|
||||
self.sexImageView.image = [UIImage imageNamed:model.sex1.intValue == 1?@"user_sex_boy":@"user_sex_girl"];
|
||||
}
|
||||
self.timeLabel.text = [NSString getTimeWithSecond:model.end_time.longLongValue];
|
||||
|
||||
}
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
// Initialization code
|
||||
self.backgroundColor = [UIColor clearColor];
|
||||
self.contentView.backgroundColor = [UIColor clearColor];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user