Commit c192646b840237bd29dd0704feadad7253b865e7
1 parent
3b009739
no message
Showing
1 changed file
with
9 additions
and
13 deletions
CNLiveBMineModule/Classes/View/CNLiveMineHeaderView.m
| ... | ... | @@ -105,31 +105,27 @@ static const NSInteger margin = 20; |
| 105 | 105 | [_header mas_remakeConstraints:^(MASConstraintMaker *make) { |
| 106 | 106 | make.left.equalTo(self.mas_left).with.offset(1.6*margin); |
| 107 | 107 | make.top.equalTo(self.mas_top).with.offset(75); |
| 108 | - make.width.height.offset(60); | |
| 109 | - | |
| 108 | + make.width.height.offset(66); | |
| 110 | 109 | }]; |
| 111 | 110 | |
| 112 | 111 | [_certification mas_remakeConstraints:^(MASConstraintMaker *make) { |
| 113 | - make.centerY.equalTo(self.header.mas_centerY); | |
| 112 | + make.centerY.equalTo(self.header.mas_centerY).with.offset(8); | |
| 114 | 113 | make.left.equalTo(self.header.mas_right).with.offset(margin/2.0); |
| 115 | - make.height.offset(28); | |
| 116 | - | |
| 114 | + make.height.offset(24); | |
| 117 | 115 | }]; |
| 118 | 116 | |
| 119 | 117 | [_name mas_remakeConstraints:^(MASConstraintMaker *make) { |
| 120 | - make.bottom.equalTo(self.certification.mas_top); | |
| 118 | + make.top.equalTo(self.header.mas_top); | |
| 121 | 119 | make.left.equalTo(self.certification.mas_left); |
| 122 | 120 | make.right.mas_lessThanOrEqualTo(self.bgView.mas_right).with.offset(-margin); |
| 123 | - make.height.equalTo(self.certification.mas_height); | |
| 124 | - | |
| 121 | + make.height.offset(24); | |
| 125 | 122 | }]; |
| 126 | 123 | |
| 127 | 124 | [_address mas_remakeConstraints:^(MASConstraintMaker *make) { |
| 128 | 125 | make.top.equalTo(self.certification.mas_bottom); |
| 129 | 126 | make.left.equalTo(self.name.mas_left); |
| 130 | 127 | make.right.equalTo(self.name.mas_right); |
| 131 | - make.height.equalTo(self.name.mas_height); | |
| 132 | - | |
| 128 | + make.height.offset(16); | |
| 133 | 129 | }]; |
| 134 | 130 | |
| 135 | 131 | } |
| ... | ... | @@ -279,7 +275,7 @@ static const NSInteger margin = 20; |
| 279 | 275 | _header = [[UIImageView alloc] init]; |
| 280 | 276 | _header.userInteractionEnabled = YES; |
| 281 | 277 | _header.layer.masksToBounds = YES; |
| 282 | - _header.layer.cornerRadius = 28; | |
| 278 | + _header.layer.cornerRadius = 33; | |
| 283 | 279 | UIImage *xw_image = [self getImageWithImageName:@"CNLiveBMineModule.bundle/default_avatar_y" bundleName:@"CNLiveBMineModule" targetClass:[CNLiveMineHeaderView class]]; |
| 284 | 280 | [_header sd_setImageWithURL:[NSURL URLWithString:CNUserShareModel.faceUrl] placeholderImage:xw_image]; |
| 285 | 281 | UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(headerTapDidClicked:)]; |
| ... | ... | @@ -294,7 +290,7 @@ static const NSInteger margin = 20; |
| 294 | 290 | _name.userInteractionEnabled = YES; |
| 295 | 291 | _name.numberOfLines = 1; |
| 296 | 292 | _name.textColor = [UIColor colorWithRed:51/255.0 green:51/255.0 blue:51/255.0 alpha:1.0]; |
| 297 | - _name.font = [UIFont systemFontOfSize:16]; | |
| 293 | + _name.font = [UIFont systemFontOfSize:18]; | |
| 298 | 294 | _name.text = CNUserShareModel.nickname; |
| 299 | 295 | UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(nameTapDidClicked:)]; |
| 300 | 296 | [_name addGestureRecognizer:tap]; |
| ... | ... | @@ -323,7 +319,7 @@ static const NSInteger margin = 20; |
| 323 | 319 | _address.userInteractionEnabled = YES; |
| 324 | 320 | _address.numberOfLines = 1; |
| 325 | 321 | _address.textColor = [UIColor colorWithRed:51/255.0 green:51/255.0 blue:51/255.0 alpha:1.0]; |
| 326 | - _address.font = [UIFont systemFontOfSize:13]; | |
| 322 | + _address.font = [UIFont systemFontOfSize:12]; | |
| 327 | 323 | _address.attributedText = [self createAttributedImageName:@"CNLiveBMineModule.bundle/mine_location" string:CNUserShareModel.location?CNUserShareModel.location:@"未知" fontSize:13.0 isFront:YES]; |
| 328 | 324 | UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(addressTapDidClicked:)]; |
| 329 | 325 | [_address addGestureRecognizer:tap]; | ... | ... |