|
@@ -29,6 +29,9 @@
|
|
|
@property (weak, nonatomic) IBOutlet UIImageView *cardFrameBgImg;
|
|
@property (weak, nonatomic) IBOutlet UIImageView *cardFrameBgImg;
|
|
|
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *cardBgHeight;
|
|
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *cardBgHeight;
|
|
|
|
|
|
|
|
|
|
+@property (weak, nonatomic) IBOutlet BigBtn *reportBtn;
|
|
|
|
|
+@property (weak, nonatomic) IBOutlet BigBtn *adminBtn;
|
|
|
|
|
+
|
|
|
@property (weak, nonatomic) IBOutlet MOShimmerLabel *nickNameLab;
|
|
@property (weak, nonatomic) IBOutlet MOShimmerLabel *nickNameLab;
|
|
|
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *nickNameWidth;
|
|
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *nickNameWidth;
|
|
|
|
|
|
|
@@ -329,6 +332,15 @@
|
|
|
|
|
|
|
|
self.genderImg.hidden = NO;
|
|
self.genderImg.hidden = NO;
|
|
|
|
|
|
|
|
|
|
+ if([self.userId isEqualToString:GetUserId]){
|
|
|
|
|
+ self.reportBtn.hidden = YES;
|
|
|
|
|
+ self.adminBtn.hidden = YES;
|
|
|
|
|
+ }
|
|
|
|
|
+ else{
|
|
|
|
|
+ self.reportBtn.hidden = NO;
|
|
|
|
|
+ self.adminBtn.hidden = NO;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
[self.headImg sd_setImageWithURL:[NSURL URLWithString:userModel.userProfile.avatar] placeholderImage:[UIImage imageNamed:@"icon_mine_placeHolder"]];
|
|
[self.headImg sd_setImageWithURL:[NSURL URLWithString:userModel.userProfile.avatar] placeholderImage:[UIImage imageNamed:@"icon_mine_placeHolder"]];
|
|
|
[self.cardFrameBgImg sd_setImageWithURL:[NSURL URLWithString:userModel.userProfile.adornment.cardFrameRes]];
|
|
[self.cardFrameBgImg sd_setImageWithURL:[NSURL URLWithString:userModel.userProfile.adornment.cardFrameRes]];
|
|
|
|
|
|