|
|
@@ -194,25 +194,7 @@ static NSString * const HJJoinTableViewCellIdentifier = @"HJJoinTableViewCell";
|
|
|
{
|
|
|
cell = [[HJFullTimeTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:HJFullTimeTableViewCellIdentifier];
|
|
|
}
|
|
|
- __weak typeof(cell) weakCell = cell;
|
|
|
-
|
|
|
- cell.openBlock = ^{
|
|
|
-
|
|
|
- [self dealwithPositionOpenAtIndexPath:indexPath];
|
|
|
- [weakCell.welfareView reloadData];
|
|
|
- [tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone];
|
|
|
-
|
|
|
- };
|
|
|
- if (model.isOpen)
|
|
|
- {
|
|
|
- cell.welfareView.numberOfLines = 0;
|
|
|
- [cell.openBtn setImage:[UIImage imageNamed:@"jobs_list_packup"] forState:UIControlStateNormal];
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- cell.welfareView.numberOfLines = 1;
|
|
|
- [cell.openBtn setImage:[UIImage imageNamed:@"jobs_list_open"] forState:UIControlStateNormal];
|
|
|
- }
|
|
|
+
|
|
|
cell.titleLabel.text = model.positionName;
|
|
|
//标记
|
|
|
if (type == HJPositionTypeFatSalary)
|
|
|
@@ -284,9 +266,44 @@ static NSString * const HJJoinTableViewCellIdentifier = @"HJJoinTableViewCell";
|
|
|
cell.maxMoneyLabel.text = nil;
|
|
|
cell.hiddenMaxMoneyLabel = YES;
|
|
|
}
|
|
|
+
|
|
|
+ __weak typeof(cell) weakCell = cell;
|
|
|
+
|
|
|
+ cell.openBlock = ^{
|
|
|
+
|
|
|
+ [self dealwithPositionOpenAtIndexPath:indexPath];
|
|
|
+ [weakCell.welfareView reloadData];
|
|
|
+ [tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone];
|
|
|
+// weakCell.openBtn.backgroundColor = [UIColor whiteColor];
|
|
|
+// NSLog(@"::::::::::%d",weakCell.welfareView.singleBool);
|
|
|
+
|
|
|
+ };
|
|
|
+ if (model.isOpen)
|
|
|
+ {
|
|
|
+ cell.welfareView.numberOfLines = 0;
|
|
|
+ [cell.openBtn setImage:[UIImage imageNamed:@"jobs_list_packup"] forState:UIControlStateNormal];
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ cell.welfareView.numberOfLines = 1;
|
|
|
+ [cell.openBtn setImage:[UIImage imageNamed:@"jobs_list_open"] forState:UIControlStateNormal];
|
|
|
+ }
|
|
|
// 福利控件
|
|
|
cell.welfareTagArray = [model getWelfareArray];
|
|
|
|
|
|
+ if (cell.welfareView.singleBool && cell.welfareView.numberOfLines == 1)
|
|
|
+ { //单行不现实尖头
|
|
|
+ cell.openBtn.hidden = YES;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ cell.openBtn.hidden = NO;
|
|
|
+ }
|
|
|
+ NSArray *welfareArray = [model getWelfareArray];
|
|
|
+ if (welfareArray.count <= 1)
|
|
|
+ {
|
|
|
+ cell.openBtn.hidden = YES;
|
|
|
+ }
|
|
|
return cell;
|
|
|
}
|
|
|
else if (type == HJPositionTypePartTime || type == HJPositionTypeBenefit || type == HJPositionTypeBPartTime)
|
|
|
@@ -461,6 +478,19 @@ static NSString * const HJJoinTableViewCellIdentifier = @"HJJoinTableViewCell";
|
|
|
cell.clockLabel.attributedText = clockString;
|
|
|
}
|
|
|
|
|
|
+ if (cell.welfareView.singleBool && cell.welfareView.numberOfLines == 1)
|
|
|
+ { //单行不现实尖头
|
|
|
+ cell.openBtn.hidden = YES;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ cell.openBtn.hidden = NO;
|
|
|
+ }
|
|
|
+ NSArray *welfareArray = [model getWelfareArray];
|
|
|
+ if (welfareArray.count <= 1)
|
|
|
+ {
|
|
|
+ cell.openBtn.hidden = YES;
|
|
|
+ }
|
|
|
return cell;
|
|
|
}
|
|
|
else
|