44 lines
1.4 KiB
Mathematica
44 lines
1.4 KiB
Mathematica
|
|
//
|
||
|
|
// YYRoomCPRankCell.m
|
||
|
|
// SweetParty
|
||
|
|
//
|
||
|
|
// Created by bj_szd on 2023/12/25.
|
||
|
|
//
|
||
|
|
|
||
|
|
#import "YYRoomCPRankCell.h"
|
||
|
|
|
||
|
|
@implementation YYRoomCPRankCell
|
||
|
|
|
||
|
|
- (void)awakeFromNib {
|
||
|
|
[super awakeFromNib];
|
||
|
|
|
||
|
|
self.bgImgView.backgroundColor = [UIColor bm_colorGradientChangeWithSize:CGSizeMake(APPW-30, 120) direction:FXGradientChangeDirectionVertical startColor:HEXCOLOR(0xFFFFFF) endColor:HEXCOLOR(0xC9FFEF)];
|
||
|
|
|
||
|
|
WEAK_SELF
|
||
|
|
[self.avatarImgV_1 dg_Tapped:^{
|
||
|
|
[UIViewController goUserMainpageWith:weakSelf.model.uid withRid:@""];
|
||
|
|
}];
|
||
|
|
[self.avatarImgV_2 dg_Tapped:^{
|
||
|
|
[UIViewController goUserMainpageWith:weakSelf.model.receive_uid withRid:@""];
|
||
|
|
}];
|
||
|
|
}
|
||
|
|
|
||
|
|
- (void)setModel:(YYRoomCPRankModel *)model {
|
||
|
|
_model = model;
|
||
|
|
|
||
|
|
[self.avatarImgV_1 sd_setImageWithURL:[NSURL URLWithString:model.head_pic] placeholderImage:kDefaultUserIcon];
|
||
|
|
self.nicknameLab_1.text = model.nick_name;
|
||
|
|
[self.cpBorderImgV_1 sd_setImageWithURL:[NSURL URLWithString:model.win_base_image]];
|
||
|
|
|
||
|
|
[self.avatarImgV_2 sd_setImageWithURL:[NSURL URLWithString:model.receive_head_pic] placeholderImage:kDefaultUserIcon];
|
||
|
|
self.nicknameLab_2.text = model.receive_nick_name;
|
||
|
|
[self.cpBorderImgV_2 sd_setImageWithURL:[NSURL URLWithString:model.receive_win_base_image]];
|
||
|
|
|
||
|
|
self.valueLab.text = model.total_amount;
|
||
|
|
|
||
|
|
[self.valueBgView layoutIfNeeded];
|
||
|
|
// [self.valueBgView styleGradiBlueColor];
|
||
|
|
}
|
||
|
|
|
||
|
|
@end
|