|
|
@@ -16,10 +16,12 @@
|
|
|
@property (nonatomic, strong) UIImageView *iconImageV;
|
|
|
@property (nonatomic, strong) UILabel *nameLabel;
|
|
|
@property (nonatomic, strong) UILabel *infoLabel;
|
|
|
+@property (nonatomic, strong) UILabel *timeLabel;
|
|
|
@property (nonatomic, strong) UIButton *checkBtn;
|
|
|
@property (nonatomic, strong) UIView *bottomView;
|
|
|
@property (nonatomic, strong) UIImageView *selectIcon;
|
|
|
|
|
|
+
|
|
|
@end
|
|
|
|
|
|
@implementation BCheckPeopleCell
|
|
|
@@ -47,6 +49,7 @@
|
|
|
[self.bgView addSubview:self.iconImageV];
|
|
|
[self.bgView addSubview:self.nameLabel];
|
|
|
[self.bgView addSubview:self.infoLabel];
|
|
|
+ [self.bgView addSubview:self.timeLabel];
|
|
|
[self.bgView addSubview:self.checkBtn];
|
|
|
[self.contentView addSubview:self.bottomView];
|
|
|
}
|
|
|
@@ -72,7 +75,7 @@
|
|
|
|
|
|
NSArray *schoolArray = @[@"不限",@"小学",@"中学",@"高中",@"大专",@"本科",@"研究生",@"博士",@"博士后",@"其他"];
|
|
|
NSString *schoolStr = [NSString stringWithFormat:@"%@",schoolArray[[model.highestQualification integerValue]]];
|
|
|
- self.infoLabel.text = [NSString stringWithFormat:@"%@,%@岁,%@",sex,model.birthYear,schoolStr];
|
|
|
+ self.infoLabel.text = [NSString stringWithFormat:@"(%@/%@岁/%@)",sex,model.birthYear,schoolStr];
|
|
|
|
|
|
if ([model.select boolValue] == 1)
|
|
|
{
|
|
|
@@ -82,6 +85,12 @@
|
|
|
{
|
|
|
self.selectIcon.image = [UIImage imageNamed:@"b_position_signupnoselect"];
|
|
|
}
|
|
|
+
|
|
|
+ if (model.createDate)
|
|
|
+ {
|
|
|
+ self.timeLabel.text = [NSString stringWithFormat:@"%@ 投递",[HJAppService compareCurrentTimeDayAndMonth:[NSString stringWithFormat:@"%ld",[HJAppService timeSwitchTimestamp:model.createDate]]]];
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
- (void)autoLayOutViews {
|
|
|
@@ -116,9 +125,14 @@
|
|
|
[_nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
make.leading.equalTo(weakSelf.headerImageV.mas_trailing).offset(25);
|
|
|
make.top.equalTo(weakSelf.headerImageV.mas_top).offset(0);
|
|
|
+ make.width.mas_lessThanOrEqualTo(HJHorizontalScale(150));
|
|
|
}];
|
|
|
-
|
|
|
[_infoLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
+
|
|
|
+ make.centerY.equalTo(weakSelf.nameLabel);
|
|
|
+ make.left.equalTo(weakSelf.nameLabel.mas_right).offset(0);
|
|
|
+ }];
|
|
|
+ [_timeLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
make.leading.equalTo(weakSelf.headerImageV.mas_trailing).offset(25);
|
|
|
make.bottom.equalTo(weakSelf.headerImageV.mas_bottom).offset(0);
|
|
|
}];
|
|
|
@@ -199,12 +213,21 @@
|
|
|
if (_infoLabel == nil)
|
|
|
{
|
|
|
_infoLabel = [[UILabel alloc]init];
|
|
|
- _infoLabel.textColor = COLOR_BACK6;
|
|
|
+ _infoLabel.textColor = COLOR_BACK3;
|
|
|
_infoLabel.font = [UIFont systemFontOfSize:14];
|
|
|
}
|
|
|
return _infoLabel;
|
|
|
}
|
|
|
-
|
|
|
+- (UILabel *)timeLabel {
|
|
|
+
|
|
|
+ if (_timeLabel == nil)
|
|
|
+ {
|
|
|
+ _timeLabel = [[UILabel alloc]init];
|
|
|
+ _timeLabel.textColor = COLOR_BACK6;
|
|
|
+ _timeLabel.font = [UIFont systemFontOfSize:14];
|
|
|
+ }
|
|
|
+ return _timeLabel;
|
|
|
+}
|
|
|
- (UIButton *)checkBtn {
|
|
|
|
|
|
if (_checkBtn == nil)
|