42 lines
941 B
Objective-C
Executable File
42 lines
941 B
Objective-C
Executable File
//
|
|
// YYMineRoomListCell.m
|
|
// SweetParty
|
|
//
|
|
// Created by bj_szd on 2022/6/8.
|
|
//
|
|
|
|
#import "YYMineRoomListCell.h"
|
|
|
|
@interface YYMineRoomListCell ()
|
|
|
|
@end
|
|
|
|
@implementation YYMineRoomListCell
|
|
|
|
- (void)awakeFromNib {
|
|
[super awakeFromNib];
|
|
|
|
[_cituiBtn styleGradiBlueColor];
|
|
[_jinruBtn styleGradiBlueColor];
|
|
}
|
|
|
|
- (void)setModel:(SPFocusFansModel *)model {
|
|
_model = model;
|
|
|
|
[self.avatarImgV sd_setImageWithURL:[NSURL URLWithString:model.room_cover] placeholderImage:kDefaultUserIcon];
|
|
self.nicknameLab.text = model.room_name;
|
|
self.IDLab.text = [NSString stringWithFormat:@"ID:%@", model.room_number];
|
|
|
|
if (model.user_type == 1) {
|
|
self.userTypeLab.text = @"房主";
|
|
}else if (model.user_type == 2) {
|
|
self.userTypeLab.text = @"管理";
|
|
}else if (model.user_type == 3) {
|
|
self.userTypeLab.text = @"主持人";
|
|
}else {
|
|
self.userTypeLab.text = @"";
|
|
}
|
|
}
|
|
|
|
@end
|