Browse Source

自发布企业认证页面修改

15555599100 6 years ago
parent
commit
848b955724
19 changed files with 1039 additions and 217 deletions
  1. 24 0
      HappyJob/HappyJob.xcodeproj/project.pbxproj
  2. 23 0
      HappyJob/HappyJob/Assets.xcassets/BImage/BReleaseImage/certification_delete.imageset/Contents.json
  3. BIN
      HappyJob/HappyJob/Assets.xcassets/BImage/BReleaseImage/certification_delete.imageset/certification_delete.png
  4. BIN
      HappyJob/HappyJob/Assets.xcassets/BImage/BReleaseImage/certification_delete.imageset/certification_delete@2x.png
  5. BIN
      HappyJob/HappyJob/Assets.xcassets/BImage/BReleaseImage/certification_delete.imageset/certification_delete@3x.png
  6. 23 0
      HappyJob/HappyJob/Assets.xcassets/BImage/BReleaseImage/enterprise_Certification_background.imageset/Contents.json
  7. BIN
      HappyJob/HappyJob/Assets.xcassets/BImage/BReleaseImage/enterprise_Certification_background.imageset/enterprise_Certification_background.png
  8. BIN
      HappyJob/HappyJob/Assets.xcassets/BImage/BReleaseImage/enterprise_Certification_background.imageset/enterprise_Certification_background@2x.png
  9. BIN
      HappyJob/HappyJob/Assets.xcassets/BImage/BReleaseImage/enterprise_Certification_background.imageset/enterprise_Certification_background@3x.png
  10. 26 0
      HappyJob/HappyJob/BClass/BHome_首页/企业认证/View/BHomeCertificationEnterprisePictureView.h
  11. 153 0
      HappyJob/HappyJob/BClass/BHome_首页/企业认证/View/BHomeCertificationEnterprisePictureView.m
  12. 25 0
      HappyJob/HappyJob/BClass/BHome_首页/企业认证/View/HJLIneSelectView.h
  13. 130 0
      HappyJob/HappyJob/BClass/BHome_首页/企业认证/View/HJLIneSelectView.m
  14. 23 0
      HappyJob/HappyJob/BClass/BHome_首页/企业认证/View/HJLineInputView.h
  15. 131 0
      HappyJob/HappyJob/BClass/BHome_首页/企业认证/View/HJLineInputView.m
  16. 19 0
      HappyJob/HappyJob/BClass/BHome_首页/企业认证/ViewController/BHomeCertificationEnterprisePictureVC.h
  17. 285 0
      HappyJob/HappyJob/BClass/BHome_首页/企业认证/ViewController/BHomeCertificationEnterprisePictureVC.m
  18. 177 215
      HappyJob/HappyJob/BClass/BHome_首页/企业认证/ViewController/BHomeCertificationEnterpriseVC.m
  19. 0 2
      HappyJob/HappyJob/BClass/BHome_首页/企业认证/ViewController/BHomeCertificationingEnterpriseVC.m

+ 24 - 0
HappyJob/HappyJob.xcodeproj/project.pbxproj

@@ -46,6 +46,10 @@
 		71326A5922CED5D100DEB10B /* AddressPickView.m in Sources */ = {isa = PBXBuildFile; fileRef = 71326A5822CED5D100DEB10B /* AddressPickView.m */; };
 		71326A6622CF4F4400DEB10B /* BHomeEnterpriseAuthAPI.m in Sources */ = {isa = PBXBuildFile; fileRef = 71326A6522CF4F4400DEB10B /* BHomeEnterpriseAuthAPI.m */; };
 		71327B2D231E47430047CD3D /* HeaderSelectView.m in Sources */ = {isa = PBXBuildFile; fileRef = 71327B2B231E47420047CD3D /* HeaderSelectView.m */; };
+		71327B302320D6360047CD3D /* BHomeCertificationEnterprisePictureVC.m in Sources */ = {isa = PBXBuildFile; fileRef = 71327B2F2320D6360047CD3D /* BHomeCertificationEnterprisePictureVC.m */; };
+		71327B332320D6640047CD3D /* BHomeCertificationEnterprisePictureView.m in Sources */ = {isa = PBXBuildFile; fileRef = 71327B322320D6640047CD3D /* BHomeCertificationEnterprisePictureView.m */; };
+		71327B362320E7420047CD3D /* HJLineInputView.m in Sources */ = {isa = PBXBuildFile; fileRef = 71327B352320E7420047CD3D /* HJLineInputView.m */; };
+		71327B392320E7530047CD3D /* HJLIneSelectView.m in Sources */ = {isa = PBXBuildFile; fileRef = 71327B382320E7530047CD3D /* HJLIneSelectView.m */; };
 		71331B8D22DC3F96000F9782 /* HJAppUserType.m in Sources */ = {isa = PBXBuildFile; fileRef = 71331B8C22DC3F96000F9782 /* HJAppUserType.m */; };
 		71331B9022DC6390000F9782 /* ZHDatePickerView.m in Sources */ = {isa = PBXBuildFile; fileRef = 71331B8F22DC6390000F9782 /* ZHDatePickerView.m */; };
 		71332930230F74B6002CF6DB /* BMyDataBox.m in Sources */ = {isa = PBXBuildFile; fileRef = 7133292F230F74B6002CF6DB /* BMyDataBox.m */; };
@@ -446,6 +450,14 @@
 		71326A6522CF4F4400DEB10B /* BHomeEnterpriseAuthAPI.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BHomeEnterpriseAuthAPI.m; sourceTree = "<group>"; };
 		71327B2B231E47420047CD3D /* HeaderSelectView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HeaderSelectView.m; sourceTree = "<group>"; };
 		71327B2C231E47430047CD3D /* HeaderSelectView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HeaderSelectView.h; sourceTree = "<group>"; };
+		71327B2E2320D6360047CD3D /* BHomeCertificationEnterprisePictureVC.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BHomeCertificationEnterprisePictureVC.h; sourceTree = "<group>"; };
+		71327B2F2320D6360047CD3D /* BHomeCertificationEnterprisePictureVC.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BHomeCertificationEnterprisePictureVC.m; sourceTree = "<group>"; };
+		71327B312320D6640047CD3D /* BHomeCertificationEnterprisePictureView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BHomeCertificationEnterprisePictureView.h; sourceTree = "<group>"; };
+		71327B322320D6640047CD3D /* BHomeCertificationEnterprisePictureView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BHomeCertificationEnterprisePictureView.m; sourceTree = "<group>"; };
+		71327B342320E7420047CD3D /* HJLineInputView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HJLineInputView.h; sourceTree = "<group>"; };
+		71327B352320E7420047CD3D /* HJLineInputView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HJLineInputView.m; sourceTree = "<group>"; };
+		71327B372320E7530047CD3D /* HJLIneSelectView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HJLIneSelectView.h; sourceTree = "<group>"; };
+		71327B382320E7530047CD3D /* HJLIneSelectView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HJLIneSelectView.m; sourceTree = "<group>"; };
 		71331B8B22DC3F96000F9782 /* HJAppUserType.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HJAppUserType.h; sourceTree = "<group>"; };
 		71331B8C22DC3F96000F9782 /* HJAppUserType.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HJAppUserType.m; sourceTree = "<group>"; };
 		71331B8E22DC638F000F9782 /* ZHDatePickerView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ZHDatePickerView.h; sourceTree = "<group>"; };
@@ -1516,6 +1528,8 @@
 			children = (
 				713269E222CD03BC00DEB10B /* BHomeCertificationEnterpriseVC.h */,
 				713269E322CD03BC00DEB10B /* BHomeCertificationEnterpriseVC.m */,
+				71327B2E2320D6360047CD3D /* BHomeCertificationEnterprisePictureVC.h */,
+				71327B2F2320D6360047CD3D /* BHomeCertificationEnterprisePictureVC.m */,
 				715E5CDA22D2D32800AAFA24 /* BHomeCertificationingEnterpriseVC.h */,
 				715E5CDB22D2D32800AAFA24 /* BHomeCertificationingEnterpriseVC.m */,
 				715E5CE022D2DF5800AAFA24 /* BHomeCertificationFailVC.h */,
@@ -1538,6 +1552,12 @@
 				713269DA22CD031300DEB10B /* BHomeCertificationTopCell.m */,
 				713269E522CD03D400DEB10B /* BHomeCertificationEnterpriseCell.h */,
 				713269E622CD03D400DEB10B /* BHomeCertificationEnterpriseCell.m */,
+				71327B312320D6640047CD3D /* BHomeCertificationEnterprisePictureView.h */,
+				71327B322320D6640047CD3D /* BHomeCertificationEnterprisePictureView.m */,
+				71327B342320E7420047CD3D /* HJLineInputView.h */,
+				71327B352320E7420047CD3D /* HJLineInputView.m */,
+				71327B372320E7530047CD3D /* HJLIneSelectView.h */,
+				71327B382320E7530047CD3D /* HJLIneSelectView.m */,
 			);
 			path = View;
 			sourceTree = "<group>";
@@ -3505,6 +3525,7 @@
 				C42F89A82286B17F007E1228 /* HJSaveApplyAPIManager.m in Sources */,
 				C40FF243223F86F4008868BF /* HJMeViewController.m in Sources */,
 				713D343823027E76007DCBB6 /* HJLoginInfoMergeAPI.m in Sources */,
+				71327B392320E7530047CD3D /* HJLIneSelectView.m in Sources */,
 				71FE0089231E0CD500D61498 /* BHomeResumeObjectiveView.m in Sources */,
 				C40F58A122B08C0D0047D6E6 /* HJJoinCycleScrollView.m in Sources */,
 				C4B3D340227AD31800FEAA58 /* HJSearchAPIManager.m in Sources */,
@@ -3550,6 +3571,7 @@
 				C40FF248223F86F4008868BF /* HJPartTimeTableViewCell.m in Sources */,
 				C410512622A1253900560009 /* HJResumeExperienceModel.m in Sources */,
 				713329812314B517002CF6DB /* ValueTwoColumnPickView.m in Sources */,
+				71327B302320D6360047CD3D /* BHomeCertificationEnterprisePictureVC.m in Sources */,
 				C40CA4472244B2DB00F303A6 /* HJJobDetailInfoView.m in Sources */,
 				C41393E4225324CE009F61FE /* HJLoginAgreementView.m in Sources */,
 				7133297823141C44002CF6DB /* CalendarDateCell.m in Sources */,
@@ -3571,6 +3593,7 @@
 				C419B3A32255EB4600572A58 /* HJJoinDetailJoinView.m in Sources */,
 				C49DE8472285194600A1B67A /* HJSaveFavoriteAPIManager.m in Sources */,
 				C40FF242223F86F4008868BF /* HJMessageViewController.m in Sources */,
+				71327B362320E7420047CD3D /* HJLineInputView.m in Sources */,
 				C40FA7102275A8E200EB2371 /* HJRefreshHeaderView.m in Sources */,
 				7132690F22C9B52200DEB10B /* BReleaseJobsCategoryCCell.m in Sources */,
 				C4158F48225B332000A7B1E5 /* HJJoinAllJoinTableViewCell.m in Sources */,
@@ -3657,6 +3680,7 @@
 				C411AE13228E8B34008B77A5 /* HJResumeModel.m in Sources */,
 				C49DB94B22681826000D8AFE /* HJMeHeaderView.m in Sources */,
 				C42F89A52286AED6007E1228 /* HJMyApplyAPIManager.m in Sources */,
+				71327B332320D6640047CD3D /* BHomeCertificationEnterprisePictureView.m in Sources */,
 				C4F657B3224DFC0200E1E625 /* HJLoginDataBox.m in Sources */,
 				C4109C472251E935007A2FC1 /* HJWeiXinAPIManager.m in Sources */,
 				C412B2302269BB3A002B0C44 /* HJAuthSectionView.m in Sources */,

+ 23 - 0
HappyJob/HappyJob/Assets.xcassets/BImage/BReleaseImage/certification_delete.imageset/Contents.json

@@ -0,0 +1,23 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "filename" : "certification_delete.png",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "certification_delete@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "certification_delete@3x.png",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

BIN
HappyJob/HappyJob/Assets.xcassets/BImage/BReleaseImage/certification_delete.imageset/certification_delete.png


BIN
HappyJob/HappyJob/Assets.xcassets/BImage/BReleaseImage/certification_delete.imageset/certification_delete@2x.png


BIN
HappyJob/HappyJob/Assets.xcassets/BImage/BReleaseImage/certification_delete.imageset/certification_delete@3x.png


+ 23 - 0
HappyJob/HappyJob/Assets.xcassets/BImage/BReleaseImage/enterprise_Certification_background.imageset/Contents.json

@@ -0,0 +1,23 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "filename" : "enterprise_Certification_background.png",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "enterprise_Certification_background@2x.png",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "universal",
+      "filename" : "enterprise_Certification_background@3x.png",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

BIN
HappyJob/HappyJob/Assets.xcassets/BImage/BReleaseImage/enterprise_Certification_background.imageset/enterprise_Certification_background.png


BIN
HappyJob/HappyJob/Assets.xcassets/BImage/BReleaseImage/enterprise_Certification_background.imageset/enterprise_Certification_background@2x.png


BIN
HappyJob/HappyJob/Assets.xcassets/BImage/BReleaseImage/enterprise_Certification_background.imageset/enterprise_Certification_background@3x.png


+ 26 - 0
HappyJob/HappyJob/BClass/BHome_首页/企业认证/View/BHomeCertificationEnterprisePictureView.h

@@ -0,0 +1,26 @@
+//
+//  BHomeCertificationEnterprisePictureView.h
+//  HappyJob
+//
+//  Created by 张晓光 on 2019/9/5.
+//  Copyright © 2019 Bob. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface BHomeCertificationEnterprisePictureView : UIView
+
+@property (nonatomic, strong) UIView      *bgView;
+@property (nonatomic, strong) UILabel     *titleLabel;
+@property (nonatomic, strong) UIImageView *rightImageV;
+@property (nonatomic, strong) UIView      *lineView;
+@property (nonatomic, strong) UIButton    *picBtn;
+@property (nonatomic, strong) UIButton    *deleteBtn;
+@property (nonatomic, strong) UIButton    *addBtn;
+
+
+@end
+
+NS_ASSUME_NONNULL_END

+ 153 - 0
HappyJob/HappyJob/BClass/BHome_首页/企业认证/View/BHomeCertificationEnterprisePictureView.m

@@ -0,0 +1,153 @@
+//
+//  BHomeCertificationEnterprisePictureView.m
+//  HappyJob
+//
+//  Created by 张晓光 on 2019/9/5.
+//  Copyright © 2019 Bob. All rights reserved.
+//
+
+#import "BHomeCertificationEnterprisePictureView.h"
+
+@implementation BHomeCertificationEnterprisePictureView
+
+- (instancetype)initWithFrame:(CGRect)frame {
+    
+    if (self = [super initWithFrame:frame])
+    {
+        self.backgroundColor = COLOR_GRAYFA5;
+        [self initSubViews];
+    }
+    return self;
+}
+
+- (void)initSubViews {
+    
+    [self addSubview:self.bgView];
+    [self.bgView addSubview:self.titleLabel];
+    [self.bgView addSubview:self.rightImageV];
+    [self.bgView addSubview:self.lineView];
+    [self.bgView addSubview:self.picBtn];
+    [self.picBtn addSubview:self.deleteBtn];
+    [self.bgView addSubview:self.addBtn];
+    
+    
+    [self.bgView mas_makeConstraints:^(MASConstraintMaker *make) {
+        
+        make.top.equalTo(self.mas_top).offset(0);
+        make.left.right.offset(0);
+        make.bottom.equalTo(self.mas_bottom).offset(-10);
+    }];
+    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+        
+        make.left.equalTo(self.bgView).offset(15);
+        make.top.equalTo(self.bgView).offset(20);
+    }];
+    [self.rightImageV mas_makeConstraints:^(MASConstraintMaker *make) {
+        
+        make.centerY.equalTo(self.titleLabel);
+        make.right.equalTo(self.bgView).offset(-15);
+        make.size.mas_offset(CGSizeMake(8, 13));
+    }];
+    [self.lineView mas_makeConstraints:^(MASConstraintMaker *make) {
+        
+        make.left.right.equalTo(self.bgView).offset(0);
+        make.top.equalTo(self.titleLabel.mas_bottom).offset(20);
+        make.height.mas_equalTo(1);
+    }];
+    [self.picBtn mas_makeConstraints:^(MASConstraintMaker *make) {
+        
+        make.centerX.equalTo(self.bgView);
+        make.top.equalTo(self.lineView.mas_bottom).offset(20);
+        make.size.mas_offset(CGSizeMake(200, 130));
+        make.bottom.equalTo(self.bgView.mas_bottom).offset(-20);
+    }];
+    [self.deleteBtn mas_makeConstraints:^(MASConstraintMaker *make) {
+       
+        make.left.top.right.bottom.equalTo(self.picBtn).offset(0);
+    }];
+    [self.addBtn mas_makeConstraints:^(MASConstraintMaker *make) {
+       
+        make.left.top.right.offset(0);
+        make.bottom.equalTo(self.lineView.mas_top).offset(0);
+    }];
+    
+    self.deleteBtn.hidden = YES;
+}
+- (UIView *)bgView {
+    
+    if (_bgView == nil)
+    {
+        _bgView = [[UIView alloc]init];
+        _bgView.backgroundColor = [UIColor whiteColor];
+    }
+    return _bgView;
+    
+}
+
+- (UILabel *)titleLabel {
+    
+    if (_titleLabel == nil)
+    {
+        _titleLabel = [[UILabel alloc]init];
+        _titleLabel.textColor = COLOR_BACK3;
+        _titleLabel.font = [UIFont systemFontOfSize:15];
+    }
+    return _titleLabel;
+}
+- (UIImageView *)rightImageV {
+    
+    if (_rightImageV == nil)
+    {
+        _rightImageV = [[UIImageView alloc]init];
+        _rightImageV.image = [UIImage imageNamed:@"b_my_right"];
+    }
+    return _rightImageV;
+}
+- (UIView *)lineView {
+    
+    if (_lineView == nil)
+    {
+        _lineView = [[UIView alloc]init];
+        _lineView.backgroundColor = COLOR_BACKE;
+    }
+    return _lineView;
+}
+- (UIButton *)addBtn {
+    
+    if (_addBtn == nil)
+    {
+        _addBtn = [UIButton buttonWithType:UIButtonTypeCustom];
+    }
+    return _addBtn;
+}
+- (UIButton *)picBtn {
+    
+    if (_picBtn == nil)
+    {
+        _picBtn = [UIButton buttonWithType:UIButtonTypeCustom];
+        [_picBtn setImage:[UIImage imageNamed:@"enterprise_Certification_background"] forState:UIControlStateNormal];
+        _picBtn.layer.cornerRadius = 13;
+        _picBtn.layer.masksToBounds = YES;
+    }
+    return _picBtn;
+}
+- (UIButton *)deleteBtn {
+    
+    if (_deleteBtn == nil)
+    {
+        _deleteBtn = [UIButton buttonWithType:UIButtonTypeCustom];
+        [_deleteBtn setImage:[UIImage imageNamed:@"certification_delete"] forState:UIControlStateNormal];
+        _deleteBtn.layer.cornerRadius = 13;
+        _deleteBtn.layer.masksToBounds = YES;
+    }
+    return _deleteBtn;
+}
+/*
+// Only override drawRect: if you perform custom drawing.
+// An empty implementation adversely affects performance during animation.
+- (void)drawRect:(CGRect)rect {
+    // Drawing code
+}
+*/
+
+@end

+ 25 - 0
HappyJob/HappyJob/BClass/BHome_首页/企业认证/View/HJLIneSelectView.h

@@ -0,0 +1,25 @@
+//
+//  HJLIneSelectView.h
+//  HappyJob
+//
+//  Created by 张晓光 on 2019/9/5.
+//  Copyright © 2019 Bob. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface HJLIneSelectView : UIView
+
+@property (nonatomic, strong) UIView      *lineView;
+@property (nonatomic, strong) UILabel     *titleLabel;
+@property (nonatomic, strong) UILabel     *asteriskLabel;
+@property (nonatomic, strong) UITextField *contentTF;
+@property (nonatomic, strong) UIButton    *iconBtn;
+
+@property (nonatomic, strong) NSString    *contentStr;
+
+@end
+
+NS_ASSUME_NONNULL_END

+ 130 - 0
HappyJob/HappyJob/BClass/BHome_首页/企业认证/View/HJLIneSelectView.m

@@ -0,0 +1,130 @@
+//
+//  HJLIneSelectView.m
+//  HappyJob
+//
+//  Created by 张晓光 on 2019/9/5.
+//  Copyright © 2019 Bob. All rights reserved.
+//
+
+#import "HJLIneSelectView.h"
+
+@implementation HJLIneSelectView
+
+- (instancetype)initWithFrame:(CGRect)frame {
+    
+    if (self = [super initWithFrame:frame])
+    {
+        self.backgroundColor = [UIColor whiteColor];
+        [self initViews];
+    }
+    return self;
+}
+- (void)initViews {
+    
+    [self addSubview:self.lineView];
+    [self addSubview:self.titleLabel];
+    [self addSubview:self.asteriskLabel];
+    [self addSubview:self.contentTF];
+    [self addSubview:self.iconBtn];
+    
+
+    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+        
+        make.top.equalTo(self.mas_top).offset(20);
+        make.bottom.equalTo(self.mas_bottom).offset(-20);
+        make.left.equalTo(self).offset(15);
+    }];
+    [self.asteriskLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+        
+        make.centerY.equalTo(self);
+        make.left.equalTo(self.titleLabel.mas_right).offset(0);
+    }];
+    [self.iconBtn mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.right.equalTo(self).offset(-15);
+        make.centerY.equalTo(self);
+        make.size.mas_offset(CGSizeMake(13, 13));
+    }];
+    [self.contentTF mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.centerY.equalTo(self);
+        make.right.equalTo(self.iconBtn.mas_left).offset(-5);
+        make.bottom.top.equalTo(self).offset(0);
+        make.width.mas_equalTo(HJHorizontalScale(240));
+    }];
+    [self.lineView mas_makeConstraints:^(MASConstraintMaker *make) {
+        
+        make.left.equalTo(self).offset(15);
+        make.right.equalTo(self).offset(-15);
+        make.bottom.equalTo(self.mas_bottom).offset(0);
+        make.height.mas_equalTo(1);
+    }];
+}
+
+#pragma mark - setter and getter
+
+- (void)setContentStr:(NSString *)contentStr {
+    
+    if (contentStr.length > 0 && ![contentStr isEqualToString:@"长期"])
+    {//删除图片
+        self.contentTF.text = contentStr;
+        [_iconBtn setImage:[UIImage imageNamed:@"b_release_deleteaddress"] forState:UIControlStateNormal];
+    }
+    else
+    {//又指尖头
+        self.contentTF.text = contentStr;
+        [_iconBtn setImage:[UIImage imageNamed:@"b_my_right"] forState:UIControlStateNormal];
+    }
+}
+- (UIView *)lineView {
+    
+    if (_lineView == nil)
+    {
+        _lineView = [[UIView alloc]init];
+        _lineView.backgroundColor = COLOR_BACKE;
+    }
+    return _lineView;
+}
+- (UILabel *)titleLabel {
+    
+    if (_titleLabel == nil)
+    {
+        _titleLabel = [[UILabel alloc]init];
+        _titleLabel.font = [UIFont systemFontOfSize:14];
+        _titleLabel.textColor = COLOR_BACK3;
+    }
+    return _titleLabel;
+}
+- (UILabel *)asteriskLabel {
+    
+    if (_asteriskLabel == nil)
+    {
+        _asteriskLabel = [[UILabel alloc]init];
+        _asteriskLabel.font = [UIFont systemFontOfSize:14];
+        _asteriskLabel.textColor = COLOR_READFF;
+    }
+    return _asteriskLabel;
+}
+- (UITextField *)contentTF {
+    
+    if (_contentTF == nil)
+    {
+        _contentTF = [[UITextField alloc]init];
+        _contentTF.font = [UIFont systemFontOfSize:14];
+        _contentTF.textColor = COLOR_BACK3;
+        _contentTF.userInteractionEnabled = NO;
+        _contentTF.textAlignment = NSTextAlignmentRight;
+    }
+    return _contentTF;
+}
+- (UIButton *)iconBtn {
+    
+    if (_iconBtn == nil)
+    {
+        _iconBtn = [UIButton buttonWithType:UIButtonTypeCustom];
+        [_iconBtn setImage:[UIImage imageNamed:@"b_my_right"] forState:UIControlStateNormal];
+        _iconBtn.imageView.contentMode = UIViewContentModeScaleAspectFit;
+        
+    }
+    return _iconBtn;
+}
+
+@end

+ 23 - 0
HappyJob/HappyJob/BClass/BHome_首页/企业认证/View/HJLineInputView.h

@@ -0,0 +1,23 @@
+//
+//  HJLineInputView.h
+//  HappyJob
+//
+//  Created by 张晓光 on 2019/9/5.
+//  Copyright © 2019 Bob. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface HJLineInputView : UIView
+
+@property (nonatomic, strong) UILabel     *titleLabel;
+@property (nonatomic, strong) UILabel     *asteriskLabel;
+@property (nonatomic, strong) UITextField *contentTF;
+@property (nonatomic, strong) UIView      *lineView;
+@property (nonatomic, assign) NSInteger   count;
+
+@end
+
+NS_ASSUME_NONNULL_END

+ 131 - 0
HappyJob/HappyJob/BClass/BHome_首页/企业认证/View/HJLineInputView.m

@@ -0,0 +1,131 @@
+//
+//  HJLineInputView.m
+//  HappyJob
+//
+//  Created by 张晓光 on 2019/9/5.
+//  Copyright © 2019 Bob. All rights reserved.
+//
+
+#import "HJLineInputView.h"
+
+@interface HJLineInputView ()<UITextFieldDelegate>
+
+@end
+
+
+@implementation HJLineInputView
+
+- (instancetype)initWithFrame:(CGRect)frame {
+    
+    if (self = [super initWithFrame:frame])
+    {
+        self.count = 0;
+        self.backgroundColor = [UIColor whiteColor];
+        [self initViews];
+    }
+    return self;
+}
+- (void)initViews {
+    
+    [self addSubview:self.lineView];
+    [self addSubview:self.titleLabel];
+    [self addSubview:self.asteriskLabel];
+    [self addSubview:self.contentTF];
+    
+    
+    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+        
+        make.top.equalTo(self.mas_top).offset(20);
+        make.bottom.equalTo(self.mas_bottom).offset(-20);
+        make.left.equalTo(self).offset(15);
+    }];
+    [self.asteriskLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+        
+        make.centerY.equalTo(self);
+        make.left.equalTo(self.titleLabel.mas_right).offset(0);
+    }];
+    
+    [self.contentTF mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.centerY.equalTo(self);
+        make.right.equalTo(self).offset(-15);
+        make.bottom.top.equalTo(self).offset(0);
+        make.width.mas_equalTo(HJHorizontalScale(240));
+    }];
+    [self.lineView mas_makeConstraints:^(MASConstraintMaker *make) {
+        
+        make.left.equalTo(self).offset(15);
+        make.right.equalTo(self).offset(-15);
+        make.bottom.equalTo(self.mas_bottom).offset(0);
+        make.height.mas_equalTo(1);
+    }];
+}
+
+- (BOOL)textField:(UITextField *)textField1 shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string {
+    
+    if (self.count == 0)
+    {
+        return YES;
+    }
+    else
+    {
+        NSInteger pointLength = 0;
+        NSInteger existedLength = [HJAppService stringCharactorNumber:textField1.text];
+        NSInteger selectedLength = range.length;
+        NSInteger replaceLength = [HJAppService stringCharactorNumber:string];
+        pointLength = existedLength - selectedLength + replaceLength;
+        
+        if (pointLength > self.count)
+        {
+            return NO;
+        }
+        else
+        {
+            return YES;
+        }
+    }
+}
+
+#pragma mark - setter and getter
+
+- (UIView *)lineView {
+    
+    if (_lineView == nil)
+    {
+        _lineView = [[UIView alloc]init];
+        _lineView.backgroundColor = COLOR_BACKE;
+    }
+    return _lineView;
+}
+- (UILabel *)titleLabel {
+    
+    if (_titleLabel == nil)
+    {
+        _titleLabel = [[UILabel alloc]init];
+        _titleLabel.font = [UIFont systemFontOfSize:14];
+        _titleLabel.textColor = COLOR_BACK3;
+    }
+    return _titleLabel;
+}
+- (UILabel *)asteriskLabel {
+    
+    if (_asteriskLabel == nil)
+    {
+        _asteriskLabel = [[UILabel alloc]init];
+        _asteriskLabel.font = [UIFont systemFontOfSize:14];
+        _asteriskLabel.textColor = COLOR_READFF;
+    }
+    return _asteriskLabel;
+}
+- (UITextField *)contentTF {
+    
+    if (_contentTF == nil)
+    {
+        _contentTF = [[UITextField alloc]init];
+        _contentTF.font = [UIFont systemFontOfSize:14];
+        _contentTF.textColor = COLOR_BACK3;
+        _contentTF.textAlignment = NSTextAlignmentRight;
+        _contentTF.delegate = self;
+    }
+    return _contentTF;
+}
+@end

+ 19 - 0
HappyJob/HappyJob/BClass/BHome_首页/企业认证/ViewController/BHomeCertificationEnterprisePictureVC.h

@@ -0,0 +1,19 @@
+//
+//  BHomeCertificationEnterprisePictureVC.h
+//  HappyJob
+//
+//  Created by 张晓光 on 2019/9/5.
+//  Copyright © 2019 Bob. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface BHomeCertificationEnterprisePictureVC : UIViewController
+
+@property (nonatomic, strong) NSDictionary *infoDict;
+
+@end
+
+NS_ASSUME_NONNULL_END

+ 285 - 0
HappyJob/HappyJob/BClass/BHome_首页/企业认证/ViewController/BHomeCertificationEnterprisePictureVC.m

@@ -0,0 +1,285 @@
+//
+//  BHomeCertificationEnterprisePictureVC.m
+//  HappyJob
+//
+//  Created by 张晓光 on 2019/9/5.
+//  Copyright © 2019 Bob. All rights reserved.
+//
+
+#import "BHomeCertificationEnterprisePictureVC.h"
+#import "BHomeCertificationEnterprisePictureView.h"
+#import "BHomeCertificationingEnterpriseVC.h"
+#import "BHomeCertificationEnterpriseAPI.h"//企业认证
+#import "BHomeCertificationingEnterpriseVC.h"
+
+@interface BHomeCertificationEnterprisePictureVC ()<FBScrollLayoutViewDelegate,FBAPIManagerDelegate,
+FBAPIManagerInterceptor>
+
+@property (nonatomic, strong) FBScrollLayoutView     *scrollLayoutView;
+@property (nonatomic, strong) BHomeCertificationEnterprisePictureView *businessLicenseView;
+@property (nonatomic, strong) BHomeCertificationEnterprisePictureView *otherPicView;
+@property (nonatomic, strong) BHomeCertificationEnterpriseAPI         *enterpriseAPI;//企业认证
+@property (nonatomic, strong) UIButton               *nextBtn;
+
+
+@end
+
+@implementation BHomeCertificationEnterprisePictureVC
+
+- (void)viewDidLoad {
+    [super viewDidLoad];
+    
+    self.navigationItem.title = @"企业认证";
+    [self initSubViews];
+    
+    NSLog(@"infoDict:::::%@",self.infoDict);
+}
+- (void)initSubViews {
+    
+    [self.view addSubview:self.scrollLayoutView];
+    [self.scrollLayoutView.contentView addSubview:self.businessLicenseView];
+    [self.scrollLayoutView.contentView addSubview:self.otherPicView];
+    [self.scrollLayoutView.contentView addSubview:self.nextBtn];
+    [self.scrollLayoutView makeConstraints];
+    
+}
+#pragma mark - FBAPIManagerInterceptor
+
+- (BOOL)manager:(FBBaseAPIManager *)manager shouldStartCallAPIWithParams:(NSDictionary *)params {
+    
+    NSString *errorMessage = nil;
+    if (self.enterpriseAPI.businessLicenseImage == nil)
+    {
+        errorMessage = @"请您先上传营业执照";
+    }
+    else if ([self.enterpriseAPI.companyName length] == 0)
+    {
+        errorMessage = @"请您先填写企业名称";
+    }
+    else if ([self.enterpriseAPI.timeStr length] == 0)
+    {
+        errorMessage = @"请您先填写有效时间";
+    }
+    else if ([self.enterpriseAPI.resourcesStr length] == 0)
+    {
+        errorMessage = @"请您选择是否为人力资源公司";
+    }
+    if (errorMessage != nil)
+    {
+        [self.view fb_showInfoWithStatus:errorMessage];
+        return NO;
+    }
+    [self.view fb_showLoading];
+    return YES;
+}
+
+- (void)managerShouldFinishCallAPI:(FBBaseAPIManager *)manager {
+    
+    [self.view fb_dismiss];
+}
+
+#pragma mark - FBAPIManagerDelegate
+
+- (void)managerCallAPIDidSuccess:(FBBaseAPIManager *)manager {
+    
+    if (manager == self.enterpriseAPI)
+    {
+        id fetchData = [manager fetchDataWithBox:nil];
+        if ([fetchData isKindOfClass:[NSDictionary class]])
+        {
+            [self.view fb_showSuccessWithStatus:fetchData[@"errmsg"]];
+            //企业认证提交成功发送通知(在首页,职位页面接受)
+            [[NSNotificationCenter defaultCenter] postNotificationName:HJEnterpriseAuthResultNotification object:nil userInfo:nil];
+            BHomeCertificationingEnterpriseVC *vc = [[BHomeCertificationingEnterpriseVC alloc]init];
+            [self.navigationController pushViewController:vc animated:YES];
+        }
+    }
+}
+
+- (void)managerCallAPIDidFailed:(FBBaseAPIManager *)manager {
+    
+    FBAPIManagerErrorType type = manager.errorType;
+    if (type == FBAPIManagerErrorTypeNoContent)
+    {
+        id fetchData = [manager fetchDataWithBox:nil];
+        if ([fetchData isKindOfClass:[NSDictionary class]])
+        {
+            [self.view fb_showFailureWithStatus:fetchData[@"errmsg"]];
+        }
+    }
+    else
+    {
+        [self.view fb_showFailureWithStatus:manager.errorMessage];
+    }
+}
+
+#pragma mark - FBScrollLayoutViewDelegate
+
+- (void)scrollLayoutViewMakeConstraints:(FBScrollLayoutView *)scrollLayoutView {
+    
+    [scrollLayoutView mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.edges.equalTo(self.view);
+    }];
+}
+- (void)subviewsMakeConstraintsInScrollLayoutView:(FBScrollLayoutView *)scrollLayoutView contentView:(UIView *)contentView {
+    
+    [self.businessLicenseView mas_makeConstraints:^(MASConstraintMaker *make) {
+        
+        make.top.equalTo(contentView.mas_top).offset(0);
+        make.left.right.equalTo(contentView);
+        
+    }];
+    [self.otherPicView mas_makeConstraints:^(MASConstraintMaker *make) {
+        
+        make.left.right.equalTo(contentView);
+        make.top.equalTo(self.businessLicenseView.mas_bottom).offset(0);
+    }];
+    [self.nextBtn mas_makeConstraints:^(MASConstraintMaker *make) {
+        
+        make.left.equalTo(contentView).offset(15);
+        make.right.equalTo(contentView).offset(-15);
+        make.top.equalTo(self.otherPicView.mas_bottom).offset(25);
+        make.height.mas_equalTo(44);
+    }];
+    [contentView mas_makeConstraints:^(MASConstraintMaker *make) {
+        
+        make.bottom.equalTo(self.nextBtn.mas_bottom).with.offset(0);
+    }];
+}
+
+#pragma mark - event response
+
+- (void)businessLicenseButtonClick:(UIButton *)btn {
+    
+    TZImagePickerController *imagePickerVc = [[TZImagePickerController alloc] initWithMaxImagesCount:1 delegate:nil];
+    imagePickerVc.didFinishPickingPhotosHandle = ^(NSArray<UIImage *> *photos, NSArray *assets, BOOL isSelectOriginalPhoto) {
+        
+        if (photos)
+        {
+            [self.businessLicenseView.picBtn setImage:photos[0] forState:UIControlStateNormal];
+            self.enterpriseAPI.businessLicenseImage = photos[0];
+            self.businessLicenseView.titleLabel.text = @"点击修改营业执照";
+            self.businessLicenseView.deleteBtn.hidden = NO;
+        }
+        
+    };
+    [self presentViewController:imagePickerVc animated:YES completion:nil];
+    
+}
+- (void)businessLicenseDeleteButtonClick:(UIButton *)btn {
+    
+    [self.businessLicenseView.picBtn setImage:[UIImage imageNamed:@"enterprise_Certification_background"] forState:UIControlStateNormal];
+    self.businessLicenseView.deleteBtn.hidden = YES;
+    self.businessLicenseView.titleLabel.text = @"点击上传营业执照";
+    
+}
+- (void)otherPicButtonClick:(UIButton *)btn {
+    
+    TZImagePickerController *imagePickerVc = [[TZImagePickerController alloc] initWithMaxImagesCount:1 delegate:nil];
+    imagePickerVc.didFinishPickingPhotosHandle = ^(NSArray<UIImage *> *photos, NSArray *assets, BOOL isSelectOriginalPhoto) {
+        
+        if (photos)
+        {
+            [self.otherPicView.picBtn setImage:photos[0] forState:UIControlStateNormal];
+            self.enterpriseAPI.otherImage = photos[0];
+            self.otherPicView.titleLabel.text = @"点击修改其他资质(选填)";
+            self.otherPicView.deleteBtn.hidden = NO;
+        }
+    };
+    [self presentViewController:imagePickerVc animated:YES completion:nil];
+}
+- (void)otherPicDeleteButtonClick:(UIButton *)btn {
+    
+    [self.otherPicView.picBtn setImage:[UIImage imageNamed:@"enterprise_Certification_background"] forState:UIControlStateNormal];
+    self.otherPicView.deleteBtn.hidden = YES;
+    self.otherPicView.titleLabel.text = @"点击上传其他资质(选填)";
+    
+}
+- (void)nextButtonClick:(UIButton *)btn {
+    
+    self.enterpriseAPI.timeStr = self.infoDict[@"timeStr"];
+    self.enterpriseAPI.companyName = self.infoDict[@"companyName"];
+    self.enterpriseAPI.resourcesStr = self.infoDict[@"resourcesStr"];
+    [self.enterpriseAPI start];
+}
+
+#pragma mark - setter and getter
+
+- (FBScrollLayoutView *)scrollLayoutView {
+    
+    if (_scrollLayoutView == nil)
+    {
+        _scrollLayoutView = [[FBScrollLayoutView alloc] init];
+        _scrollLayoutView.delegate = self;
+        // 去除顶部空白
+        if (@available(iOS 11.0, *))
+        {
+            _scrollLayoutView.scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
+        }
+        else
+        {
+            self.automaticallyAdjustsScrollViewInsets = NO;
+        }
+    }
+    return _scrollLayoutView;
+}
+- (BHomeCertificationEnterprisePictureView *)businessLicenseView {
+    
+    if (_businessLicenseView == nil)
+    {
+        _businessLicenseView = [[BHomeCertificationEnterprisePictureView alloc]init];
+        _businessLicenseView.titleLabel.text = @"点击上传营业执照";
+        [_businessLicenseView.picBtn addTarget:self action:@selector(businessLicenseButtonClick:) forControlEvents:UIControlEventTouchUpInside];
+        [_businessLicenseView.addBtn addTarget:self action:@selector(businessLicenseButtonClick:) forControlEvents:UIControlEventTouchUpInside];
+        [_businessLicenseView.deleteBtn addTarget:self action:@selector(businessLicenseDeleteButtonClick:) forControlEvents:UIControlEventTouchUpInside];
+    }
+    return _businessLicenseView;
+}
+- (BHomeCertificationEnterprisePictureView *)otherPicView {
+    
+    if (_otherPicView == nil)
+    {
+        _otherPicView = [[BHomeCertificationEnterprisePictureView alloc]init];
+        _otherPicView.titleLabel.text = @"点击上传其他资质(选填)";
+        [_otherPicView.picBtn addTarget:self action:@selector(otherPicButtonClick:) forControlEvents:UIControlEventTouchUpInside];
+        [_otherPicView.addBtn addTarget:self action:@selector(otherPicButtonClick:) forControlEvents:UIControlEventTouchUpInside];
+        [_otherPicView.deleteBtn addTarget:self action:@selector(otherPicDeleteButtonClick:) forControlEvents:UIControlEventTouchUpInside];
+    }
+    return _otherPicView;
+}
+- (BHomeCertificationEnterpriseAPI *)enterpriseAPI {
+    
+    if (_enterpriseAPI == nil)
+    {
+        _enterpriseAPI = [[BHomeCertificationEnterpriseAPI alloc]init];
+        _enterpriseAPI.APIManagerDelegate = self;
+        _enterpriseAPI.APIManagerInterceptor = self;
+        _enterpriseAPI.resourcesStr = @"1";//默认选择人力资源是
+    }
+    return _enterpriseAPI;
+}
+- (UIButton *)nextBtn {
+    
+    if (_nextBtn == nil)
+    {
+        _nextBtn = [UIButton buttonWithType:UIButtonTypeCustom];
+        [_nextBtn setTitle:@"下一步" forState:UIControlStateNormal];
+        _nextBtn.titleLabel.font = [UIFont systemFontOfSize:17];
+        _nextBtn.layer.cornerRadius = 5;
+        _nextBtn.layer.masksToBounds = YES;
+        [_nextBtn az_setGradientBackgroundWithColors:@[COLOR_GRADIENT_START,COLOR_GRADIENT_END] locations:@[@(0.0),@(1.0f)] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)];
+        [_nextBtn addTarget:self action:@selector(nextButtonClick:) forControlEvents:UIControlEventTouchUpInside];
+    }
+    return _nextBtn;
+}
+/*
+#pragma mark - Navigation
+
+// In a storyboard-based application, you will often want to do a little preparation before navigation
+- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
+    // Get the new view controller using [segue destinationViewController].
+    // Pass the selected object to the new view controller.
+}
+*/
+
+@end

+ 177 - 215
HappyJob/HappyJob/BClass/BHome_首页/企业认证/ViewController/BHomeCertificationEnterpriseVC.m

@@ -7,26 +7,27 @@
 //
 
 #import "BHomeCertificationEnterpriseVC.h"
-#import "BHomeCertificationTopCell.h"
-#import "BHomeCertificationEnterpriseCell.h"
-#import "BHomeCertificationEnterpriseAPI.h"//企业认证
-#import "BHomeCertificationingEnterpriseVC.h"
-
+#import "HJLineInputView.h"
+#import "HJLIneSelectView.h"
+#import "ZHDatePickerView.h"
+#import "BHomeCertificationEnterprisePictureVC.h"
 
 @interface BHomeCertificationEnterpriseVC ()
 <
-UITableViewDelegate,
-UITableViewDataSource,
-FBAPIManagerDelegate,
-FBAPIManagerInterceptor,
 UINavigationControllerDelegate,
-UIGestureRecognizerDelegate
+UIGestureRecognizerDelegate,
+ZHDatePickerViewDelegate
 >
 
-@property (nonatomic, strong) UIButton    *backBtn;
-@property (nonatomic, strong) UITableView *tableView;
-@property (nonatomic, assign) BOOL        dateBool;
-@property (nonatomic, strong) BHomeCertificationEnterpriseAPI *enterpriseAPI;//企业认证
+@property (nonatomic, strong) HJLineInputView  *enterpriseView;
+@property (nonatomic, strong) HJLIneSelectView *periodView;
+@property (nonatomic, strong) HJLIneSelectView *dateView;
+@property (nonatomic, strong) HJLIneSelectView *resourcesView;
+@property (nonatomic, strong) UIButton               *nextBtn;
+@property (nonatomic, strong) NSMutableDictionary    *paramDict;
+
+/**普通选择器*/
+@property (nonatomic, strong) ValuePickerView     *pickView;
 
 @end
 
@@ -36,7 +37,6 @@ UIGestureRecognizerDelegate
 - (void)viewWillAppear:(BOOL)animated {
     
     [super viewWillAppear:animated];
-    [self.navigationController setNavigationBarHidden:YES animated:animated];
     self.navigationController.delegate = self;
     self.navigationController.interactivePopGestureRecognizer.delegate = self;
     
@@ -45,6 +45,7 @@ UIGestureRecognizerDelegate
 - (void)viewDidLoad {
     [super viewDidLoad];
 
+    self.paramDict = [NSMutableDictionary dictionary];
     self.view.backgroundColor = [UIColor whiteColor];
     [self autoLayOutViews];
     
@@ -54,244 +55,205 @@ UIGestureRecognizerDelegate
 - (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated {
     // 判断要显示的控制器是否是自己
 //    BOOL isPushSelfClass = [viewController isKindOfClass:[self class]];
-    [self.navigationController setNavigationBarHidden:YES animated:animated];
+    [self.navigationController setNavigationBarHidden:NO animated:animated];
     
 }
-#pragma mark - FBAPIManagerInterceptor
 
-- (BOOL)manager:(FBBaseAPIManager *)manager shouldStartCallAPIWithParams:(NSDictionary *)params {
-    
-    NSString *errorMessage = nil;
-    if (self.enterpriseAPI.businessLicenseImage == nil)
-    {
-        errorMessage = @"请您先上传营业执照";
-    }
-    else if ([self.enterpriseAPI.companyName length] == 0)
-    {
-        errorMessage = @"请您先填写企业名称";
-    }
-    else if ([self.enterpriseAPI.timeStr length] == 0)
-    {
-        errorMessage = @"请您先填写有效时间";
-    }
-    else if ([self.enterpriseAPI.resourcesStr length] == 0)
-    {
-        errorMessage = @"请您选择是否为人力资源公司";
-    }
-    if (errorMessage != nil)
-    {
-        [self.view fb_showInfoWithStatus:errorMessage];
-        return NO;
-    }
-    [self.view fb_showLoading];    
-    return YES;
-}
+#pragma mark - 布局 
 
-- (void)managerShouldFinishCallAPI:(FBBaseAPIManager *)manager {
+- (void)autoLayOutViews {
+    
+    [self.view addSubview:self.enterpriseView];
+    [self.view addSubview:self.periodView];
+    [self.view addSubview:self.dateView];
+    [self.view addSubview:self.resourcesView];
+    [self.view addSubview:self.nextBtn];
+    
+    [self.enterpriseView mas_makeConstraints:^(MASConstraintMaker *make) {
+        
+        make.left.top.right.equalTo(self.view).offset(0);
+    }];
+    [self.periodView mas_makeConstraints:^(MASConstraintMaker *make) {
+        
+        make.left.right.equalTo(self.view).offset(0);
+        make.top.equalTo(self.enterpriseView.mas_bottom).offset(0);
+    }];
+    [self.dateView mas_makeConstraints:^(MASConstraintMaker *make) {
+        
+        make.left.right.equalTo(self.view).offset(0);
+        make.top.equalTo(self.periodView.mas_bottom).offset(0);
+    }];
+    [self.resourcesView mas_makeConstraints:^(MASConstraintMaker *make) {
+        
+        make.left.right.equalTo(self.view).offset(0);
+        make.top.equalTo(self.dateView.mas_bottom).offset(0);
+    }];
+    [self.nextBtn mas_makeConstraints:^(MASConstraintMaker *make) {
+        
+        make.left.equalTo(self.view).offset(15);
+        make.right.equalTo(self.view).offset(-15);
+        make.top.equalTo(self.resourcesView.mas_bottom).offset(20);
+        make.height.mas_equalTo(44);
+        
+    }];
     
-    [self.view fb_dismiss];
 }
+#pragma mark - event response
 
-#pragma mark - FBAPIManagerDelegate
-
-- (void)managerCallAPIDidSuccess:(FBBaseAPIManager *)manager {
+/* 有效期限 */
+- (void)periodTapClick {
     
-    if (manager == self.enterpriseAPI)
-    {
-        id fetchData = [manager fetchDataWithBox:nil];
-        if ([fetchData isKindOfClass:[NSDictionary class]])
+    _pickView = [[ValuePickerView alloc]init];
+    _pickView.dataSource = @[@"长期有效",@"非长期"];
+    _pickView.pickerHeight = 256;
+    [_pickView reloadPickers];
+    [_pickView show];
+    __weak typeof(self) weakSelf = self;
+    _pickView.valueDidSelectWithIndexBlock = ^(NSString *value,NSInteger index){
+        
+        weakSelf.periodView.contentTF.text =  value;
+        if (index == 0)
         {
-            [self.view fb_showSuccessWithStatus:fetchData[@"errmsg"]];
-            BHomeCertificationingEnterpriseVC *vc = [[BHomeCertificationingEnterpriseVC alloc]init];
-            [self.navigationController pushViewController:vc animated:YES];
+            [weakSelf.paramDict setObject:@"2100-01-01" forKey:@"timeStr"];
+        
+            [weakSelf.resourcesView mas_remakeConstraints:^(MASConstraintMaker *make) {
+               
+                make.top.equalTo(weakSelf.periodView.mas_bottom).offset(0);
+                make.left.right.equalTo(weakSelf.view).offset(0);
+            }];
         }
-    }
-}
-
-- (void)managerCallAPIDidFailed:(FBBaseAPIManager *)manager {
-    
-    FBAPIManagerErrorType type = manager.errorType;
-    if (type == FBAPIManagerErrorTypeNoContent)
-    {
-        id fetchData = [manager fetchDataWithBox:nil];
-        if ([fetchData isKindOfClass:[NSDictionary class]])
+        else
         {
-            [self.view fb_showFailureWithStatus:fetchData[@"errmsg"]];
+            [weakSelf.paramDict setObject:@"" forKey:@"timeStr"];
+            [weakSelf.resourcesView mas_remakeConstraints:^(MASConstraintMaker *make) {
+                
+                make.top.equalTo(weakSelf.dateView.mas_bottom).offset(0);
+                make.left.right.equalTo(weakSelf.view).offset(0);
+            }];
+            
         }
-    }
-    else
-    {
-        [self.view fb_showFailureWithStatus:manager.errorMessage];
-    }
-
+    };
+    
 }
-
-#pragma mark - UITableViewDelegate
-
-- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
+/* 到期时间 */
+- (void)dateViewTapClick {
+    
+    ZHDatePickerView *pickerView = [[ZHDatePickerView alloc] initDatePickerWithDefaultDate:nil andDatePickerMode:UIDatePickerModeDate];
+    pickerView.delegate = self;
+    [pickerView show];
     
-    return 2;
 }
-- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
+- (void)pickerView:(ZHDatePickerView *)pickerView didSelectDateString:(NSString *)dateString {
+   
+    self.dateView.contentTF.text = dateString;
+    [self.paramDict setObject:dateString forKey:@"timeStr"];
     
+}
+/* 人力资源 */
+- (void)resourcesViewTapClick {
+    
+    _pickView = [[ValuePickerView alloc]init];
+    _pickView.dataSource = @[@"否",@"是"];
+    _pickView.pickerHeight = 256;
+    [_pickView reloadPickers];
+    [_pickView show];
     __weak typeof(self) weakSelf = self;
-    if (indexPath.row == 0)
+    _pickView.valueDidSelectWithIndexBlock = ^(NSString *value,NSInteger index){
+        
+        weakSelf.resourcesView.contentTF.text = value;
+        [weakSelf.paramDict setObject:[NSString stringWithFormat:@"%ld",(long)index] forKey:@"resourcesStr"];
+    };
+    
+}
+/* 下一步 */
+- (void)nextButtonClick:(UIButton *)btn {
+    
+    //去除首位空格
+    NSCharacterSet  *spaceset = [NSCharacterSet whitespaceAndNewlineCharacterSet];
+    self.enterpriseView.contentTF.text = [self.enterpriseView.contentTF.text stringByTrimmingCharactersInSet:spaceset];
+    [self.paramDict setObject:self.enterpriseView.contentTF.text forKey:@"companyName"];
+    
+    if (self.enterpriseView.contentTF.text.length == 0)
     {
-        static NSString *topCell = @"topCell";
-        BHomeCertificationTopCell *cell = [tableView dequeueReusableCellWithIdentifier:topCell];
-        if (cell == nil)
-        {
-            cell = [[BHomeCertificationTopCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:topCell];
-        }
-        cell.titleLabel.text = @"企业认证";
-        cell.detailLabel.text = @"该页面为企业认证页面,通过认证后您的企业可发布招聘信息并接受简历投递。";
-        return cell;
+        [self.view fb_showInfoWithStatus:@"请输入企业名称"];
+        return;
     }
-    else
+    if ([self.paramDict[@"timeStr"] length] == 0)
     {
-        static NSString *enterpriseCell = @"enterpriseCell";
-        BHomeCertificationEnterpriseCell *cell = [tableView dequeueReusableCellWithIdentifier:enterpriseCell];
-        if (cell == nil)
-        {
-            cell = [[BHomeCertificationEnterpriseCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:enterpriseCell];
-        }
-        //营业执照
-        cell.businessLicenseBlock = ^(UIButton * _Nonnull btn) {
-            
-            TZImagePickerController *imagePickerVc = [[TZImagePickerController alloc] initWithMaxImagesCount:1 delegate:nil];
-            imagePickerVc.didFinishPickingPhotosHandle = ^(NSArray<UIImage *> *photos, NSArray *assets, BOOL isSelectOriginalPhoto) {
-               
-                if (photos)
-                {
-                    [btn setImage:photos[0] forState:UIControlStateNormal];
-                    self.enterpriseAPI.businessLicenseImage = photos[0];
-                }
-                
-            };
-            [weakSelf presentViewController:imagePickerVc animated:YES completion:nil];
-            
-        };
-        //其他资质
-        cell.otheImageBlock = ^(UIButton * _Nonnull btn) {
-            
-            TZImagePickerController *imagePickerVc = [[TZImagePickerController alloc] initWithMaxImagesCount:1 delegate:nil];
-            imagePickerVc.didFinishPickingPhotosHandle = ^(NSArray<UIImage *> *photos, NSArray *assets, BOOL isSelectOriginalPhoto) {
-                
-                if (photos)
-                {
-                    [btn setImage:photos[0] forState:UIControlStateNormal];
-                    self.enterpriseAPI.otherImage = photos[0];
-                }
-                
-            };
-            [weakSelf presentViewController:imagePickerVc animated:YES completion:nil];
-        };
-        //企业名称
-        cell.companyNameBlock = ^(NSString * _Nonnull companyNameStr) {
-           
-            //去除首位空格
-            NSCharacterSet  *spaceset = [NSCharacterSet whitespaceAndNewlineCharacterSet];
-            companyNameStr = [companyNameStr stringByTrimmingCharactersInSet:spaceset];
-            //过滤特殊字符
-            NSCharacterSet *set = [NSCharacterSet characterSetWithCharactersInString:@"[ _`~!@#$%^&*()+=|{}':;',\\[\\].<>/?~!@#¥%……&*()——+|{}【】‘;:”“’。,、?]|\n|\r|\t"];
-            companyNameStr = [companyNameStr stringByTrimmingCharactersInSet:set];
-        
-            self.enterpriseAPI.companyName = companyNameStr;
-        };
-        //有效期限
-        cell.dateTimeBlock = ^(BOOL dateBool) {
-            
-            if (dateBool == NO)
-            {//长期
-                self.enterpriseAPI.timeStr = @"2100-01-01";
-            }
-            else
-            {//非长期
-                self.enterpriseAPI.timeStr = @"";
-            }
-            self.dateBool = dateBool;
-        };
-        //营业执照到期时间
-        cell.TimeBlock = ^(NSString * _Nonnull timeStr) {
-            
-            self.enterpriseAPI.timeStr = timeStr;
-        };
-        //是否为人力资源公司
-        cell.resourcesBlock = ^(NSString * _Nonnull resources) {
-          
-            self.enterpriseAPI.resourcesStr = resources;
-        };
-        //提交审核
-        cell.submitBlock = ^(UIButton * _Nonnull btn) {
-            
-            [weakSelf.enterpriseAPI start];
-            
-        };
-        return cell;
+        [self.view fb_showInfoWithStatus:@"选择有效期日期"];
+        return;
+    }
+    if ([self.paramDict[@"resourcesStr"] length] == 0)
+    {
+        [self.view fb_showInfoWithStatus:@"请选择是否为人力资源"];
+        return;
     }
+    BHomeCertificationEnterprisePictureVC *vc = [[BHomeCertificationEnterprisePictureVC alloc]init];
+    vc.infoDict = self.paramDict;
+    [self.navigationController pushViewController:vc animated:YES];
+    
 }
+#pragma mark - setter & getter
 
-#pragma mark - 布局 
-
-- (void)autoLayOutViews {
-    
-    [self.view addSubview:self.tableView];
-    [self.view addSubview:self.backBtn];
-    [self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
-        
-        make.left.right.bottom.offset(0);
-        make.top.offset(-STATUS_H);
-    }];
-    [self.backBtn mas_makeConstraints:^(MASConstraintMaker *make) {
-        
-        make.left.offset(15);
-        make.top.offset(STATUS_H + 15);
-    }];
+- (HJLineInputView *)enterpriseView {
     
+    if (_enterpriseView == nil)
+    {
+        _enterpriseView = [[HJLineInputView alloc]init];
+        _enterpriseView.titleLabel.text = @"企业名称";
+        _enterpriseView.contentTF.placeholder = @"请输入";
+    }
+    return _enterpriseView;
 }
-#pragma mark - event response
-/* 返回按钮*/
-- (void)backButonClick {
-    
-    [self.navigationController popViewControllerAnimated:YES];
+- (HJLIneSelectView *)periodView {
     
+    if (_periodView == nil)
+    {
+        _periodView = [[HJLIneSelectView alloc]init];
+        _periodView.titleLabel.text = @"有效期限";
+        _periodView.contentTF.placeholder = @"请选择";
+        UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(periodTapClick)];
+        [_periodView addGestureRecognizer:tap];
+    }
+    return _periodView;
 }
-
-#pragma mark - setter & getter
-
-- (UIButton *)backBtn {
+- (HJLIneSelectView *)dateView {
     
-    if (_backBtn == nil)
+    if (_dateView == nil)
     {
-        _backBtn = [UIButton buttonWithType:UIButtonTypeCustom];
-        [_backBtn setImage:[[UIImage imageNamed:@"navbar_back_black"] imageChangeColor:[UIColor whiteColor]] forState:UIControlStateNormal];
-        [_backBtn addTarget:self action:@selector(backButonClick) forControlEvents:UIControlEventTouchUpInside];
+        _dateView = [[HJLIneSelectView alloc]init];
+        _dateView.titleLabel.text = @"到期时间";
+        _dateView.contentTF.placeholder = @"请选择";
+        UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(dateViewTapClick)];
+        [_dateView addGestureRecognizer:tap];
     }
-    return _backBtn;
+    return _dateView;
 }
-- (UITableView *)tableView {
+- (HJLIneSelectView *)resourcesView {
     
-    if (_tableView == nil)
+    if (_resourcesView == nil)
     {
-        _tableView = [[UITableView alloc]initWithFrame:CGRectZero style:UITableViewStylePlain];
-        _tableView.delegate = self;
-        _tableView.dataSource = self;
-        _tableView.separatorStyle = NO;
-        _tableView.rowHeight = UITableViewAutomaticDimension;
-        _tableView.estimatedRowHeight = 10.0;
+        _resourcesView = [[HJLIneSelectView alloc]init];
+        _resourcesView.titleLabel.text = @"是否为人力资源公司";
+        _resourcesView.contentTF.placeholder = @"请选择";
+        UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(resourcesViewTapClick)];
+        [_resourcesView addGestureRecognizer:tap];
     }
-    return _tableView;
+    return _resourcesView;
 }
-- (BHomeCertificationEnterpriseAPI *)enterpriseAPI {
+- (UIButton *)nextBtn {
     
-    if (_enterpriseAPI == nil)
+    if (_nextBtn == nil)
     {
-        _enterpriseAPI = [[BHomeCertificationEnterpriseAPI alloc]init];
-        _enterpriseAPI.APIManagerDelegate = self;
-        _enterpriseAPI.APIManagerInterceptor = self;
-        _enterpriseAPI.resourcesStr = @"1";//默认选择人力资源是
+        _nextBtn = [UIButton buttonWithType:UIButtonTypeCustom];
+        [_nextBtn setTitle:@"下一步" forState:UIControlStateNormal];
+        _nextBtn.titleLabel.font = [UIFont systemFontOfSize:17];
+        _nextBtn.layer.cornerRadius = 5;
+        _nextBtn.layer.masksToBounds = YES;
+        [_nextBtn az_setGradientBackgroundWithColors:@[COLOR_GRADIENT_START,COLOR_GRADIENT_END] locations:@[@(0.0),@(1.0f)] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)];
+        [_nextBtn addTarget:self action:@selector(nextButtonClick:) forControlEvents:UIControlEventTouchUpInside];
     }
-    return _enterpriseAPI;
+    return _nextBtn;
 }
 /*
 #pragma mark - Navigation

+ 0 - 2
HappyJob/HappyJob/BClass/BHome_首页/企业认证/ViewController/BHomeCertificationingEnterpriseVC.m

@@ -33,8 +33,6 @@
     self.navigationController.delegate = self;
     self.navigationController.interactivePopGestureRecognizer.delegate = self;
     [self.view az_setGradientBackgroundWithColors:@[[UIColor colorFromHexString:@"1C90EA"], [UIColor colorFromHexString:@"30BBF9"]] locations:@[@(0.0),@(1.0f)] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 1)];
-    //企业认证提交成功发送通知(在首页,职位页面接受)
-    [[NSNotificationCenter defaultCenter] postNotificationName:HJEnterpriseAuthResultNotification object:nil userInfo:nil];
 }
 
 #pragma mark - event response