增加换肤功能
This commit is contained in:
35
QXLive/Mine(音域)/View/个性装扮/QXDressCell.m
Normal file
35
QXLive/Mine(音域)/View/个性装扮/QXDressCell.m
Normal file
@@ -0,0 +1,35 @@
|
||||
//
|
||||
// QXDressCell.m
|
||||
// QXLive
|
||||
//
|
||||
// Created by 启星 on 2025/5/16.
|
||||
//
|
||||
|
||||
#import "QXDressCell.h"
|
||||
|
||||
@implementation QXDressCell
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
// Initialization code
|
||||
[self.selecteBtn setBackgroundImage:[UIImage imageWithColor:RGB16(0xEFF2F8)] forState:(UIControlStateNormal)];
|
||||
[self.selecteBtn setBackgroundImage:[UIImage imageNamed:@"mine_dress_bg"] forState:(UIControlStateSelected)];
|
||||
}
|
||||
-(void)setModel:(QXUserDressModel *)model{
|
||||
_model = model;
|
||||
self.nameLabel.text = model.title;
|
||||
[self.dressImageView sd_setImageWithURL:[NSURL URLWithString:model.base_image]];
|
||||
self.timeLabel.text = [NSString stringWithFormat:@"%@%@",model.remaining_day,QXText(@"天")];
|
||||
// if (model.is_using.intValue == 1) {
|
||||
// self.selecteBtn.selected = NO;
|
||||
// }else{
|
||||
// self.selecteBtn.selected = YES;
|
||||
// }
|
||||
if ([model.udid isEqualToString:@"-1"]) {
|
||||
self.dayBgView.hidden = YES;
|
||||
}else{
|
||||
self.dayBgView.hidden = NO;
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user