个人信息增加所属公会,更换跟随和私信图标
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
@property (nonatomic,strong) UILabel * nameLabel;
|
||||
@property (nonatomic,strong) UILabel * idLabel;
|
||||
@property (nonatomic,strong) UILabel * ageLabel;
|
||||
@property (nonatomic,strong) UILabel * guildLabel;
|
||||
@property (nonatomic,strong) UICollectionView * collectionView;
|
||||
@property (nonatomic,strong) NSMutableArray * tagArray;
|
||||
@property (nonatomic,strong) UILabel *introduceLabel;
|
||||
@@ -119,6 +120,18 @@
|
||||
}];
|
||||
|
||||
|
||||
self.guildLabel = [[UILabel alloc] init];
|
||||
self.guildLabel.textColor = RGB16(0x999999);
|
||||
self.guildLabel.text = @"所属公会";
|
||||
self.guildLabel.font = [UIFont boldSystemFontOfSize:12];
|
||||
[self addSubview:self.guildLabel];
|
||||
[self.guildLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.equalTo(self.headerView);
|
||||
make.height.mas_equalTo(18);
|
||||
make.top.equalTo(self.ageLabel.mas_bottom).offset(8);
|
||||
make.width.mas_greaterThanOrEqualTo(35);
|
||||
}];
|
||||
|
||||
self.introduceLabel = [[UILabel alloc] init];
|
||||
self.introduceLabel.textColor = QXConfig.textColor;
|
||||
self.introduceLabel.font = [UIFont systemFontOfSize:14];
|
||||
@@ -126,7 +139,7 @@
|
||||
[self addSubview:self.introduceLabel];
|
||||
[self.introduceLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.equalTo(self.headerView);
|
||||
make.top.equalTo(self.ageLabel.mas_bottom).offset(4);
|
||||
make.top.equalTo(self.guildLabel.mas_bottom).offset(4);
|
||||
make.width.mas_equalTo(SCREEN_WIDTH-64);
|
||||
make.height.mas_greaterThanOrEqualTo(22);
|
||||
}];
|
||||
@@ -266,12 +279,18 @@
|
||||
self.playBtn.hidden = NO;
|
||||
self.followBtn.selected = model.is_follow==0?NO:YES;
|
||||
if (model.room_id.intValue > 0) {
|
||||
[self.playBtn setTitle:QXText(@"跟随") forState:(UIControlStateNormal)];
|
||||
// [self.playBtn setTitle:QXText(@"跟随") forState:(UIControlStateNormal)];
|
||||
[self.playBtn setBackgroundImage:[UIImage imageNamed:@"room_user_follow"] forState:(UIControlStateNormal)];
|
||||
}else{
|
||||
[self.playBtn setTitle:QXText(@"私信") forState:(UIControlStateNormal)];
|
||||
// [self.playBtn setTitle:QXText(@"私信") forState:(UIControlStateNormal)];
|
||||
[self.playBtn setBackgroundImage:[UIImage imageNamed:@"expansion_call"] forState:(UIControlStateNormal)];
|
||||
}
|
||||
}
|
||||
|
||||
if ([model.guild isExist]) {
|
||||
self.guildLabel.text = [NSString stringWithFormat:@"所属公会:%@",model.guild];
|
||||
}else{
|
||||
self.guildLabel.text = [NSString stringWithFormat:@"所属公会:%@",@"无"];
|
||||
}
|
||||
if (model.is_use_code.intValue == 1) {
|
||||
self.useCodeImageView.hidden = NO;
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user