55 lines
1.6 KiB
Objective-C
55 lines
1.6 KiB
Objective-C
//
|
|
// LMCPSpaceCollectionViewCell.m
|
|
// SweetParty
|
|
//
|
|
// Created by Xmac on 2024/8/13.
|
|
//
|
|
|
|
#import "LMCPSpaceCollectionViewCell.h"
|
|
|
|
@implementation LMCPSpaceCollectionViewCell
|
|
|
|
- (void)awakeFromNib {
|
|
[super awakeFromNib];
|
|
// Initialization code
|
|
self.levelLabel.backgroundColor = [UIColor bm_colorGradientChangeWithSize:CGSizeMake(32, 16) direction:(FXGradientChangeDirectionHorizontal) startColor:mainLightColor endColor:mainDeepColor];
|
|
}
|
|
|
|
- (void)setHeaderDecInfoWithModel:(LMCPSpaceDressListModel *)model
|
|
{
|
|
[self.basePic sd_setImageWithURL:[NSURL URLWithString:model.head_decorate_img] placeholderImage:kDefaultUserIcon];
|
|
self.dressName.text = model.head_decorate_title;
|
|
if ([model.is_using isEqualToString:@"1"]){
|
|
self.dressIcon.hidden = NO;
|
|
}else{
|
|
self.dressIcon.hidden = YES;
|
|
}
|
|
self.levelLabel.text = [NSString stringWithFormat:@"Lv%@",model.level];
|
|
if ([model.js_suo isEqualToString:@"2"]){
|
|
self.contentView.alpha = 0.6;
|
|
}else{
|
|
self.contentView.alpha = 1;
|
|
}
|
|
}
|
|
|
|
- (void)setCPTexiaoInfoWithModel:(LMCPSpaceDressListModel *)model
|
|
{
|
|
[self.basePic sd_setImageWithURL:[NSURL URLWithString:model.cp_tx_img] placeholderImage:kDefaultUserIcon];
|
|
self.dressName.text = model.cp_tx_title;
|
|
if ([model.is_using isEqualToString:@"1"]){
|
|
self.dressIcon.hidden = NO;
|
|
}else{
|
|
self.dressIcon.hidden = YES;
|
|
}
|
|
self.levelLabel.text = [NSString stringWithFormat:@"Lv%@",model.level];
|
|
if ([model.js_suo isEqualToString:@"2"]){
|
|
self.contentView.alpha = 0.6;
|
|
}else{
|
|
self.contentView.alpha = 1;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@end
|