43 lines
1.2 KiB
Mathematica
43 lines
1.2 KiB
Mathematica
|
|
//
|
||
|
|
// YYJYApplyUpCell.m
|
||
|
|
// YaYin
|
||
|
|
//
|
||
|
|
// Created by bj_szd on 2023/4/26.
|
||
|
|
// Copyright © 2023 YaYin. All rights reserved.
|
||
|
|
//
|
||
|
|
|
||
|
|
#import "YYJYApplyUpCell.h"
|
||
|
|
|
||
|
|
@implementation YYJYApplyUpCell
|
||
|
|
|
||
|
|
- (void)awakeFromNib {
|
||
|
|
[super awakeFromNib];
|
||
|
|
|
||
|
|
// self.chaduiBtn.backgroundColor = [UIColor bm_colorGradientChangeWithSize:self.chaduiBtn.size direction:FXGradientChangeDirectionHorizontal startColor:mainDeepColor endColor:mainLightColor];
|
||
|
|
}
|
||
|
|
|
||
|
|
- (void)onUpdateYYJYApplyUpCell:(YYApplyUpUser *)model isVip:(BOOL)isVip isRoomOwner:(BOOL)isRoomOwner {
|
||
|
|
[self.avatarImgV sd_setImageWithURL:[NSURL URLWithString:model.head_pic] placeholderImage:kDefaultUserIcon];
|
||
|
|
self.nicknameLab.text = model.nick_name;
|
||
|
|
self.topPriceLab.text = self.bottomPriceLab.text = [NSString stringWithFormat:@"%@", model.rank_value];
|
||
|
|
|
||
|
|
self.selBtn.selected = model.is_sel;
|
||
|
|
if (isRoomOwner) {
|
||
|
|
self.selBtn.hidden = NO;
|
||
|
|
}else {
|
||
|
|
self.selBtn.hidden = YES;
|
||
|
|
}
|
||
|
|
if (isVip) {
|
||
|
|
self.topPriceView.hidden = NO;
|
||
|
|
self.bottomPriceLab.hidden = NO;
|
||
|
|
self.chaduiBtn.hidden = NO;
|
||
|
|
}else {
|
||
|
|
self.topPriceView.hidden = YES;
|
||
|
|
self.bottomPriceLab.hidden = YES;
|
||
|
|
self.chaduiBtn.hidden = NO;
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
@end
|