|
@@ -116,31 +116,41 @@ NSString *const HJJoinApplySuccessNotification = @"HJJoinApplySuccessNotificatio
|
|
|
make.left.right.equalTo(contentView);
|
|
make.left.right.equalTo(contentView);
|
|
|
}];
|
|
}];
|
|
|
[contentView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
[contentView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
|
|
+
|
|
|
make.bottom.equalTo(self.companyNameView.mas_bottom);
|
|
make.bottom.equalTo(self.companyNameView.mas_bottom);
|
|
|
}];
|
|
}];
|
|
|
}
|
|
}
|
|
|
- (void)subviewsMakeConstraintsInScrollLayoutView:(FBScrollLayoutView *)scrollLayoutView footerView:(UIView *)footerView {
|
|
- (void)subviewsMakeConstraintsInScrollLayoutView:(FBScrollLayoutView *)scrollLayoutView footerView:(UIView *)footerView {
|
|
|
|
|
|
|
|
- [footerView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
|
|
-
|
|
|
|
|
- make.height.mas_equalTo(60);
|
|
|
|
|
- }];
|
|
|
|
|
-
|
|
|
|
|
- if ([footerView.subviews indexOfObject:self.joinBtn] != NSNotFound)
|
|
|
|
|
|
|
+ if ([footerView.subviews indexOfObject:self.joinBtn] == NSNotFound && [footerView.subviews indexOfObject:self.shareBtn] == NSNotFound)
|
|
|
{
|
|
{
|
|
|
- [self.joinBtn mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
|
|
- make.edges.equalTo(footerView).with.insets(UIEdgeInsetsMake(9, 15, 9, 15));
|
|
|
|
|
|
|
+ [footerView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
|
|
+
|
|
|
|
|
+ make.height.mas_equalTo(CGFLOAT_MIN);
|
|
|
}];
|
|
}];
|
|
|
}
|
|
}
|
|
|
- if ([footerView.subviews indexOfObject:self.shareBtn] != NSNotFound)
|
|
|
|
|
|
|
+ else
|
|
|
{
|
|
{
|
|
|
- [self.invitationBtn mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
|
|
- make.edges.equalTo(footerView).with.insets(UIEdgeInsetsMake(9, 15, 9, HJHorizontalScale(250)));
|
|
|
|
|
- }];
|
|
|
|
|
- [self.shareBtn mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
|
|
- make.edges.equalTo(footerView).with.insets(UIEdgeInsetsMake(9, HJHorizontalScale(135), 9, 15));
|
|
|
|
|
|
|
+ [footerView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
|
|
+
|
|
|
|
|
+ make.height.mas_equalTo(60);
|
|
|
}];
|
|
}];
|
|
|
|
|
|
|
|
|
|
+ if ([footerView.subviews indexOfObject:self.joinBtn] != NSNotFound)
|
|
|
|
|
+ {
|
|
|
|
|
+ [self.joinBtn mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
|
|
+ make.edges.equalTo(footerView).with.insets(UIEdgeInsetsMake(9, 15, 9, 15));
|
|
|
|
|
+ }];
|
|
|
|
|
+ }
|
|
|
|
|
+ if ([footerView.subviews indexOfObject:self.shareBtn] != NSNotFound)
|
|
|
|
|
+ {
|
|
|
|
|
+ [self.invitationBtn mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
|
|
+ make.edges.equalTo(footerView).with.insets(UIEdgeInsetsMake(9, 15, 9, HJHorizontalScale(250)));
|
|
|
|
|
+ }];
|
|
|
|
|
+ [self.shareBtn mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
|
|
+ make.edges.equalTo(footerView).with.insets(UIEdgeInsetsMake(9, HJHorizontalScale(135), 9, 15));
|
|
|
|
|
+ }];
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -187,6 +197,9 @@ NSString *const HJJoinApplySuccessNotification = @"HJJoinApplySuccessNotificatio
|
|
|
}
|
|
}
|
|
|
[self.headerView removeFromSuperview];
|
|
[self.headerView removeFromSuperview];
|
|
|
[self.contentView removeFromSuperview];
|
|
[self.contentView removeFromSuperview];
|
|
|
|
|
+ [self.joinBtn removeFromSuperview];
|
|
|
|
|
+ [self.invitationBtn removeFromSuperview];
|
|
|
|
|
+ [self.shareBtn removeFromSuperview];
|
|
|
|
|
|
|
|
id fetchData = [manager fetchDataWithBox:nil];
|
|
id fetchData = [manager fetchDataWithBox:nil];
|
|
|
id isExist = [fetchData valueForKeyPath:@"data.isExist"];
|
|
id isExist = [fetchData valueForKeyPath:@"data.isExist"];
|
|
@@ -215,7 +228,7 @@ NSString *const HJJoinApplySuccessNotification = @"HJJoinApplySuccessNotificatio
|
|
|
|
|
|
|
|
__weak typeof(self) weakSelf = self;
|
|
__weak typeof(self) weakSelf = self;
|
|
|
self.companyNameView.IntroductionButtonBlock = ^{
|
|
self.companyNameView.IntroductionButtonBlock = ^{
|
|
|
-
|
|
|
|
|
|
|
+ //公司简介
|
|
|
HJPositionDetailCompanyInfoViewController *vc = [[HJPositionDetailCompanyInfoViewController alloc]init];
|
|
HJPositionDetailCompanyInfoViewController *vc = [[HJPositionDetailCompanyInfoViewController alloc]init];
|
|
|
vc.infoArray = companyInfoArray;
|
|
vc.infoArray = companyInfoArray;
|
|
|
[weakSelf.navigationController pushViewController:vc animated:YES];
|
|
[weakSelf.navigationController pushViewController:vc animated:YES];
|
|
@@ -238,8 +251,7 @@ NSString *const HJJoinApplySuccessNotification = @"HJJoinApplySuccessNotificatio
|
|
|
make.bottom.equalTo(self.applyingView.mas_bottom);
|
|
make.bottom.equalTo(self.applyingView.mas_bottom);
|
|
|
}];
|
|
}];
|
|
|
if ([self.dataDict[@"isShare"] boolValue])
|
|
if ([self.dataDict[@"isShare"] boolValue])
|
|
|
- {
|
|
|
|
|
- [self.joinBtn removeFromSuperview];
|
|
|
|
|
|
|
+ {//只有在拼工中才有邀请和分享
|
|
|
[self.scrollLayoutView.footerView addSubview:self.invitationBtn];
|
|
[self.scrollLayoutView.footerView addSubview:self.invitationBtn];
|
|
|
[self.scrollLayoutView.footerView addSubview:self.shareBtn];
|
|
[self.scrollLayoutView.footerView addSubview:self.shareBtn];
|
|
|
}
|
|
}
|
|
@@ -254,6 +266,7 @@ NSString *const HJJoinApplySuccessNotification = @"HJJoinApplySuccessNotificatio
|
|
|
[self.contentView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
[self.contentView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
make.bottom.equalTo(self.applySuccessView.mas_bottom);
|
|
make.bottom.equalTo(self.applySuccessView.mas_bottom);
|
|
|
}];
|
|
}];
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
else if ([isEnd integerValue] == 2)
|
|
else if ([isEnd integerValue] == 2)
|
|
|
{
|
|
{
|
|
@@ -277,9 +290,7 @@ NSString *const HJJoinApplySuccessNotification = @"HJJoinApplySuccessNotificatio
|
|
|
[self.contentView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
[self.contentView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
make.bottom.equalTo(self.applyView.mas_bottom);
|
|
make.bottom.equalTo(self.applyView.mas_bottom);
|
|
|
}];
|
|
}];
|
|
|
-
|
|
|
|
|
- [self.invitationBtn removeFromSuperview];
|
|
|
|
|
- [self.shareBtn removeFromSuperview];
|
|
|
|
|
|
|
+ //没有加入拼团出现拼团按钮
|
|
|
[self.scrollLayoutView.footerView addSubview:self.joinBtn];
|
|
[self.scrollLayoutView.footerView addSubview:self.joinBtn];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -288,9 +299,7 @@ NSString *const HJJoinApplySuccessNotification = @"HJJoinApplySuccessNotificatio
|
|
|
[self.scrollLayoutView.contentView addSubview:self.contentView];
|
|
[self.scrollLayoutView.contentView addSubview:self.contentView];
|
|
|
[self.scrollLayoutView.contentView addSubview:self.companyNameView];
|
|
[self.scrollLayoutView.contentView addSubview:self.companyNameView];
|
|
|
[self.scrollLayoutView makeConstraints];
|
|
[self.scrollLayoutView makeConstraints];
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (manager == self.resumeAPIManager)
|
|
if (manager == self.resumeAPIManager)
|
|
@@ -320,7 +329,6 @@ NSString *const HJJoinApplySuccessNotification = @"HJJoinApplySuccessNotificatio
|
|
|
self.detailAPIManager.groupID = self.groupID;
|
|
self.detailAPIManager.groupID = self.groupID;
|
|
|
[self.detailAPIManager start];
|
|
[self.detailAPIManager start];
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- (void)managerCallAPIDidFailed:(FBBaseAPIManager *)manager {
|
|
- (void)managerCallAPIDidFailed:(FBBaseAPIManager *)manager {
|
|
@@ -447,6 +455,14 @@ NSString *const HJJoinApplySuccessNotification = @"HJJoinApplySuccessNotificatio
|
|
|
{
|
|
{
|
|
|
_scrollLayoutView = [[FBScrollLayoutView alloc] init];
|
|
_scrollLayoutView = [[FBScrollLayoutView alloc] init];
|
|
|
_scrollLayoutView.delegate = self;
|
|
_scrollLayoutView.delegate = self;
|
|
|
|
|
+// if (@available(iOS 11.0, *))
|
|
|
|
|
+// {
|
|
|
|
|
+// _scrollLayoutView.scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
|
|
|
|
|
+// }
|
|
|
|
|
+// else
|
|
|
|
|
+// {
|
|
|
|
|
+// self.automaticallyAdjustsScrollViewInsets = NO;
|
|
|
|
|
+// }
|
|
|
}
|
|
}
|
|
|
return _scrollLayoutView;
|
|
return _scrollLayoutView;
|
|
|
}
|
|
}
|