|
@@ -11,6 +11,7 @@
|
|
|
@interface UserCenterBodyView ()
|
|
|
|
|
|
@property (nonatomic, copy) UserCenterAction callback;
|
|
|
+@property (weak, nonatomic) IBOutlet UIImageView *userAvatar;
|
|
|
|
|
|
@end
|
|
|
|
|
@@ -24,6 +25,12 @@
|
|
|
- (void)configMessage {
|
|
|
UserInfo *info = USER_MANAGER.userInfo;
|
|
|
self.userName.text = [NSString returnNoNullStringWithString:info.realName];
|
|
|
+ if ([NSString isEmptyString:info.avatar]) {
|
|
|
+ [self.userAvatar setImage:[UIImage imageNamed:USER_LOGO]];
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ [self.userAvatar sd_setImageWithURL:[NSURL URLWithString:info.avatar] placeholderImage:[UIImage imageNamed:USER_LOGO]];
|
|
|
+ }
|
|
|
if ([NSString isEmptyString:info.birthdate]) {
|
|
|
self.birthday.text = @"";
|
|
|
self.userNation.text = @"";
|