|
@@ -17,8 +17,8 @@
|
|
|
@property (nonatomic, strong) UILabel *infoLabel;
|
|
@property (nonatomic, strong) UILabel *infoLabel;
|
|
|
@property (nonatomic, strong) UIView *lineView;
|
|
@property (nonatomic, strong) UIView *lineView;
|
|
|
@property (nonatomic, strong) UILabel *phonelabel;
|
|
@property (nonatomic, strong) UILabel *phonelabel;
|
|
|
-@property (nonatomic, strong) UIView *phoneView;
|
|
|
|
|
-@property (nonatomic, strong) UILabel *WeChatLabel;
|
|
|
|
|
|
|
+//@property (nonatomic, strong) UIView *phoneView;
|
|
|
|
|
+//@property (nonatomic, strong) UILabel *WeChatLabel;
|
|
|
|
|
|
|
|
@end
|
|
@end
|
|
|
|
|
|
|
@@ -43,9 +43,9 @@
|
|
|
[self.bgView addSubview:self.lineView];
|
|
[self.bgView addSubview:self.lineView];
|
|
|
[self.bgView addSubview:self.phonelabel];
|
|
[self.bgView addSubview:self.phonelabel];
|
|
|
[self.bgView addSubview:self.phoneBtn];
|
|
[self.bgView addSubview:self.phoneBtn];
|
|
|
- [self.bgView addSubview:self.phoneView];
|
|
|
|
|
- [self.bgView addSubview:self.WeChatLabel];
|
|
|
|
|
- [self.bgView addSubview:self.WeChatBtn];
|
|
|
|
|
|
|
+// [self.bgView addSubview:self.phoneView];
|
|
|
|
|
+// [self.bgView addSubview:self.WeChatLabel];
|
|
|
|
|
+// [self.bgView addSubview:self.WeChatBtn];
|
|
|
|
|
|
|
|
[self.bgView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
[self.bgView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
|
|
|
|
@@ -80,28 +80,29 @@
|
|
|
[self.phonelabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
[self.phonelabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
make.left.equalTo(self.bgView).offset(15);
|
|
make.left.equalTo(self.bgView).offset(15);
|
|
|
make.top.equalTo(self.lineView.mas_bottom).offset(20);
|
|
make.top.equalTo(self.lineView.mas_bottom).offset(20);
|
|
|
|
|
+ make.bottom.equalTo(self.bgView.mas_bottom).offset(-20);
|
|
|
|
|
|
|
|
}];
|
|
}];
|
|
|
[self.phoneBtn mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
[self.phoneBtn mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
make.right.equalTo(self.bgView).offset(-15);
|
|
make.right.equalTo(self.bgView).offset(-15);
|
|
|
make.centerY.equalTo(self.phonelabel);
|
|
make.centerY.equalTo(self.phonelabel);
|
|
|
}];
|
|
}];
|
|
|
- [self.phoneView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
|
|
- make.left.equalTo(self.bgView).offset(15);
|
|
|
|
|
- make.right.equalTo(self.bgView).offset(-15);
|
|
|
|
|
- make.top.equalTo(self.phonelabel.mas_bottom).offset(20);
|
|
|
|
|
- make.height.mas_equalTo(1);
|
|
|
|
|
- }];
|
|
|
|
|
- [self.WeChatLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
|
|
- make.left.equalTo(self.bgView).offset(15);
|
|
|
|
|
- make.right.equalTo(self.WeChatBtn.mas_left).offset(-15);
|
|
|
|
|
- make.top.equalTo(self.phoneView.mas_bottom).offset(20);
|
|
|
|
|
- make.bottom.equalTo(self.bgView.mas_bottom).offset(-20);
|
|
|
|
|
- }];
|
|
|
|
|
- [self.WeChatBtn mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
|
|
- make.right.equalTo(self.bgView).offset(-15);
|
|
|
|
|
- make.centerY.equalTo(self.WeChatLabel);
|
|
|
|
|
- }];
|
|
|
|
|
|
|
+// [self.phoneView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
|
|
+// make.left.equalTo(self.bgView).offset(15);
|
|
|
|
|
+// make.right.equalTo(self.bgView).offset(-15);
|
|
|
|
|
+// make.top.equalTo(self.phonelabel.mas_bottom).offset(20);
|
|
|
|
|
+// make.height.mas_equalTo(1);
|
|
|
|
|
+// }];
|
|
|
|
|
+// [self.WeChatLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
|
|
+// make.left.equalTo(self.bgView).offset(15);
|
|
|
|
|
+// make.right.equalTo(self.WeChatBtn.mas_left).offset(-15);
|
|
|
|
|
+// make.top.equalTo(self.phoneView.mas_bottom).offset(20);
|
|
|
|
|
+// make.bottom.equalTo(self.bgView.mas_bottom).offset(-20);
|
|
|
|
|
+// }];
|
|
|
|
|
+// [self.WeChatBtn mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
|
|
+// make.right.equalTo(self.bgView).offset(-15);
|
|
|
|
|
+// make.centerY.equalTo(self.WeChatLabel);
|
|
|
|
|
+// }];
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
- (void)configurationBasicInformationData:(NSDictionary *)data {
|
|
- (void)configurationBasicInformationData:(NSDictionary *)data {
|
|
@@ -125,7 +126,7 @@
|
|
|
[self.headerImageV sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",model.headImg]] placeholderImage:[UIImage imageNamed:@"portrait_default"]];
|
|
[self.headerImageV sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",model.headImg]] placeholderImage:[UIImage imageNamed:@"portrait_default"]];
|
|
|
self.infoLabel.text = [NSString stringWithFormat:@"%@/%@岁/%@",sex,model.birthYear,schoolStr];
|
|
self.infoLabel.text = [NSString stringWithFormat:@"%@/%@岁/%@",sex,model.birthYear,schoolStr];
|
|
|
self.phonelabel.text = [NSString stringWithFormat:@"手机号码:%@",model.phone];
|
|
self.phonelabel.text = [NSString stringWithFormat:@"手机号码:%@",model.phone];
|
|
|
- self.WeChatLabel.text = [NSString stringWithFormat:@"微信账号:%@",model.wechatNumber ? model.wechatNumber :@""];
|
|
|
|
|
|
|
+// self.WeChatLabel.text = [NSString stringWithFormat:@"微信账号:%@",model.wechatNumber ? model.wechatNumber :@""];
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
#pragma mark - setter and getter
|
|
#pragma mark - setter and getter
|
|
@@ -203,38 +204,38 @@
|
|
|
}
|
|
}
|
|
|
return _phoneBtn;
|
|
return _phoneBtn;
|
|
|
}
|
|
}
|
|
|
-- (UIView *)phoneView {
|
|
|
|
|
-
|
|
|
|
|
- if (_phoneView == nil)
|
|
|
|
|
- {
|
|
|
|
|
- _phoneView = [[UIView alloc]init];
|
|
|
|
|
- _phoneView.backgroundColor = COLOR_EEEEEE;
|
|
|
|
|
- }
|
|
|
|
|
- return _phoneView;
|
|
|
|
|
-}
|
|
|
|
|
-- (UILabel *)WeChatLabel {
|
|
|
|
|
-
|
|
|
|
|
- if (_WeChatLabel == nil)
|
|
|
|
|
- {
|
|
|
|
|
- _WeChatLabel = [[UILabel alloc]init];
|
|
|
|
|
- _WeChatLabel.text = @"微信账号:";
|
|
|
|
|
- _WeChatLabel.textColor = COLOR_666666;
|
|
|
|
|
- _WeChatLabel.font = [UIFont systemFontOfSize:15];
|
|
|
|
|
- _WeChatLabel.textAlignment = NSTextAlignmentLeft;
|
|
|
|
|
- }
|
|
|
|
|
- return _WeChatLabel;
|
|
|
|
|
-}
|
|
|
|
|
-- (UIButton *)WeChatBtn {
|
|
|
|
|
-
|
|
|
|
|
- if (_WeChatBtn == nil)
|
|
|
|
|
- {
|
|
|
|
|
- _WeChatBtn = [UIButton buttonWithType:UIButtonTypeCustom];
|
|
|
|
|
- [_WeChatBtn setTitle:@"点击复制" forState:UIControlStateNormal];
|
|
|
|
|
- _WeChatBtn.titleLabel.font = [UIFont systemFontOfSize:14];
|
|
|
|
|
- [_WeChatBtn setTitleColor:COLOR_0177FF forState:UIControlStateNormal];
|
|
|
|
|
- [_WeChatBtn setContentCompressionResistancePriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
|
|
|
|
|
- }
|
|
|
|
|
- return _WeChatBtn;
|
|
|
|
|
-}
|
|
|
|
|
|
|
+//- (UIView *)phoneView {
|
|
|
|
|
+//
|
|
|
|
|
+// if (_phoneView == nil)
|
|
|
|
|
+// {
|
|
|
|
|
+// _phoneView = [[UIView alloc]init];
|
|
|
|
|
+// _phoneView.backgroundColor = COLOR_EEEEEE;
|
|
|
|
|
+// }
|
|
|
|
|
+// return _phoneView;
|
|
|
|
|
+//}
|
|
|
|
|
+//- (UILabel *)WeChatLabel {
|
|
|
|
|
+//
|
|
|
|
|
+// if (_WeChatLabel == nil)
|
|
|
|
|
+// {
|
|
|
|
|
+// _WeChatLabel = [[UILabel alloc]init];
|
|
|
|
|
+// _WeChatLabel.text = @"微信账号:";
|
|
|
|
|
+// _WeChatLabel.textColor = COLOR_666666;
|
|
|
|
|
+// _WeChatLabel.font = [UIFont systemFontOfSize:15];
|
|
|
|
|
+// _WeChatLabel.textAlignment = NSTextAlignmentLeft;
|
|
|
|
|
+// }
|
|
|
|
|
+// return _WeChatLabel;
|
|
|
|
|
+//}
|
|
|
|
|
+//- (UIButton *)WeChatBtn {
|
|
|
|
|
+//
|
|
|
|
|
+// if (_WeChatBtn == nil)
|
|
|
|
|
+// {
|
|
|
|
|
+// _WeChatBtn = [UIButton buttonWithType:UIButtonTypeCustom];
|
|
|
|
|
+// [_WeChatBtn setTitle:@"点击复制" forState:UIControlStateNormal];
|
|
|
|
|
+// _WeChatBtn.titleLabel.font = [UIFont systemFontOfSize:14];
|
|
|
|
|
+// [_WeChatBtn setTitleColor:COLOR_0177FF forState:UIControlStateNormal];
|
|
|
|
|
+// [_WeChatBtn setContentCompressionResistancePriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
|
|
|
|
|
+// }
|
|
|
|
|
+// return _WeChatBtn;
|
|
|
|
|
+//}
|
|
|
|
|
|
|
|
@end
|
|
@end
|