fix 首页

This commit is contained in:
lianxiang
2018-09-13 23:42:18 +08:00
parent 7d0027f58d
commit fada68d22d
62 changed files with 860 additions and 158 deletions
@@ -8,12 +8,34 @@
//我的 - 个人中心cell
#import "GiGaMineUserViewCell.h"
#import "UIImageView+WebCache.h"
@implementation GiGaMineUserViewCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
self.vipLabe.layer.masksToBounds = YES;
self.vipLabe.layer.cornerRadius = self.vipLabe.frame.size.height /2;
self.vipLabe.layer.borderWidth = 1;
self.vipLabe.layer.borderColor = [UIColor whiteColor].CGColor;
self.userAvator.layer.masksToBounds = YES;
self.userAvator.layer.cornerRadius = self.userAvator.frame.size.height /2 ;
}
-(void)loadUserinfoWith:(GiGaUser *)user{
if (user.headImgUrl && ![user.nickName isKindOfClass:[NSNull class]]) {
[self.userAvator sd_setImageWithURL:[NSURL URLWithString:user.headImgUrl]];
}
if (!user.nickName && ![user.nickName isKindOfClass:[NSNull class]]) {
self.userName.text = user.nickName;
}else{
self.userName.text = @"GIGAUser666";
}
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {