|
|
@@ -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
|