瀏覽代碼

修改手机号码的修改

15555599100 5 年之前
父節點
當前提交
dce5baae41

二進制
HappyJob/.DS_Store


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

@@ -309,6 +309,7 @@
 		71CB9BAC2447061700FCA117 /* HJExpectAddressAreaView.m in Sources */ = {isa = PBXBuildFile; fileRef = 71CB9BA52447061700FCA117 /* HJExpectAddressAreaView.m */; };
 		71EA7E9F24F65616000B73A6 /* HJClockInCustomerServiceView.m in Sources */ = {isa = PBXBuildFile; fileRef = 71EA7E9E24F65616000B73A6 /* HJClockInCustomerServiceView.m */; };
 		71EFFA5623BAE6C900DE0DFF /* HJSalaryDetailPromptView.m in Sources */ = {isa = PBXBuildFile; fileRef = 71EFFA5523BAE6C900DE0DFF /* HJSalaryDetailPromptView.m */; };
+		71F9184B257F088E00E4FC13 /* HJChangePhoneAPI.m in Sources */ = {isa = PBXBuildFile; fileRef = 71F9184A257F088E00E4FC13 /* HJChangePhoneAPI.m */; };
 		71FE0086231E060200D61498 /* BHomeResumeBasicInformation.m in Sources */ = {isa = PBXBuildFile; fileRef = 71FE0085231E060200D61498 /* BHomeResumeBasicInformation.m */; };
 		71FE0089231E0CD500D61498 /* BHomeResumeObjectiveView.m in Sources */ = {isa = PBXBuildFile; fileRef = 71FE0088231E0CD500D61498 /* BHomeResumeObjectiveView.m */; };
 		71FE008C231E121100D61498 /* BHomeResumeWorkExperienceView.m in Sources */ = {isa = PBXBuildFile; fileRef = 71FE008B231E121100D61498 /* BHomeResumeWorkExperienceView.m */; };
@@ -1135,6 +1136,8 @@
 		71EA7E9E24F65616000B73A6 /* HJClockInCustomerServiceView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HJClockInCustomerServiceView.m; sourceTree = "<group>"; };
 		71EFFA5423BAE6C900DE0DFF /* HJSalaryDetailPromptView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HJSalaryDetailPromptView.h; sourceTree = "<group>"; };
 		71EFFA5523BAE6C900DE0DFF /* HJSalaryDetailPromptView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HJSalaryDetailPromptView.m; sourceTree = "<group>"; };
+		71F91849257F088E00E4FC13 /* HJChangePhoneAPI.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HJChangePhoneAPI.h; sourceTree = "<group>"; };
+		71F9184A257F088E00E4FC13 /* HJChangePhoneAPI.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HJChangePhoneAPI.m; sourceTree = "<group>"; };
 		71FE0084231E060200D61498 /* BHomeResumeBasicInformation.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BHomeResumeBasicInformation.h; sourceTree = "<group>"; };
 		71FE0085231E060200D61498 /* BHomeResumeBasicInformation.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BHomeResumeBasicInformation.m; sourceTree = "<group>"; };
 		71FE0087231E0CD500D61498 /* BHomeResumeObjectiveView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BHomeResumeObjectiveView.h; sourceTree = "<group>"; };
@@ -3127,6 +3130,7 @@
 		7170C9BD2578B15B009AA9A4 /* Phone_修改手机号 */ = {
 			isa = PBXGroup;
 			children = (
+				71F91844257F079A00E4FC13 /* APIManager */,
 				7170C9BE2578B183009AA9A4 /* ViewController */,
 				7170C9BF2578B184009AA9A4 /* View */,
 			);
@@ -3466,6 +3470,15 @@
 			path = "选择地区";
 			sourceTree = "<group>";
 		};
+		71F91844257F079A00E4FC13 /* APIManager */ = {
+			isa = PBXGroup;
+			children = (
+				71F91849257F088E00E4FC13 /* HJChangePhoneAPI.h */,
+				71F9184A257F088E00E4FC13 /* HJChangePhoneAPI.m */,
+			);
+			path = APIManager;
+			sourceTree = "<group>";
+		};
 		C4072E4E2248BAA000C39E4B /* Workplace_工作地点 */ = {
 			isa = PBXGroup;
 			children = (
@@ -5074,6 +5087,7 @@
 				716978092508BA2C004F6C21 /* HJClockInStatisticDataModel.m in Sources */,
 				7179B9C524F3C74000E3CC15 /* HJClockInSuccessViewController.m in Sources */,
 				715E5D4522D5B4FB00AAFA24 /* HJAppService.m in Sources */,
+				71F9184B257F088E00E4FC13 /* HJChangePhoneAPI.m in Sources */,
 				C4109669229FAAB500231BB6 /* HJSalaryPayAPIManager.m in Sources */,
 				C412B22A2269AC4B002B0C44 /* HJAuthFailedViewController.m in Sources */,
 				C40FF246223F86F4008868BF /* HJScrollTextView.m in Sources */,

二進制
HappyJob/HappyJob/.DS_Store


+ 1 - 2
HappyJob/HappyJob/BClass/BHome_首页/ViewController/BHomeResumeDetailViewController.m

@@ -215,7 +215,6 @@ UIGestureRecognizerDelegate
     [self.watermarkIcon addSubview:self.watermarkView];
     [self.scrollLayoutView.footerView addSubview:self.invitationBtn];
     [self.scrollLayoutView makeConstraints];
-    
 }
 
 #pragma mark - setter and getter
@@ -247,7 +246,7 @@ UIGestureRecognizerDelegate
     {
         _basicInfoView = [[BHomeResumeBasicInformation alloc]init];
         [_basicInfoView.phoneBtn addTarget:self action:@selector(phoneButtonClick:) forControlEvents:UIControlEventTouchUpInside];
-        [_basicInfoView.WeChatBtn addTarget:self action:@selector(WeChatBUttonClick:) forControlEvents:UIControlEventTouchUpInside];
+//        [_basicInfoView.WeChatBtn addTarget:self action:@selector(WeChatBUttonClick:) forControlEvents:UIControlEventTouchUpInside];
     }
     return _basicInfoView;
 }

+ 1 - 1
HappyJob/HappyJob/BClass/BHome_首页/Views/View/BHomeResumeBasicInformation.h

@@ -13,7 +13,7 @@ NS_ASSUME_NONNULL_BEGIN
 @interface BHomeResumeBasicInformation : UIView
 
 @property (nonatomic, strong) UIButton    *phoneBtn;
-@property (nonatomic, strong) UIButton    *WeChatBtn;
+//@property (nonatomic, strong) UIButton    *WeChatBtn;
 
 
 - (void)configurationBasicInformationData:(NSDictionary *)data;

+ 56 - 55
HappyJob/HappyJob/BClass/BHome_首页/Views/View/BHomeResumeBasicInformation.m

@@ -17,8 +17,8 @@
 @property (nonatomic, strong) UILabel     *infoLabel;
 @property (nonatomic, strong) UIView      *lineView;
 @property (nonatomic, strong) UILabel     *phonelabel;
-@property (nonatomic, strong) UIView      *phoneView;
-@property (nonatomic, strong) UILabel     *WeChatLabel;
+//@property (nonatomic, strong) UIView      *phoneView;
+//@property (nonatomic, strong) UILabel     *WeChatLabel;
 
 @end
 
@@ -43,9 +43,9 @@
     [self.bgView addSubview:self.lineView];
     [self.bgView addSubview:self.phonelabel];
     [self.bgView addSubview:self.phoneBtn];
-    [self.bgView addSubview:self.phoneView];
-    [self.bgView addSubview:self.WeChatLabel];
-    [self.bgView addSubview:self.WeChatBtn];
+//    [self.bgView addSubview:self.phoneView];
+//    [self.bgView addSubview:self.WeChatLabel];
+//    [self.bgView addSubview:self.WeChatBtn];
     
     [self.bgView mas_makeConstraints:^(MASConstraintMaker *make) {
        
@@ -80,28 +80,29 @@
     [self.phonelabel mas_makeConstraints:^(MASConstraintMaker *make) {
         make.left.equalTo(self.bgView).offset(15);
         make.top.equalTo(self.lineView.mas_bottom).offset(20);
+        make.bottom.equalTo(self.bgView.mas_bottom).offset(-20);
         
     }];
     [self.phoneBtn mas_makeConstraints:^(MASConstraintMaker *make) {
         make.right.equalTo(self.bgView).offset(-15);
         make.centerY.equalTo(self.phonelabel);
     }];
-    [self.phoneView mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.left.equalTo(self.bgView).offset(15);
-        make.right.equalTo(self.bgView).offset(-15);
-        make.top.equalTo(self.phonelabel.mas_bottom).offset(20);
-        make.height.mas_equalTo(1);
-    }];
-    [self.WeChatLabel mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.left.equalTo(self.bgView).offset(15);
-        make.right.equalTo(self.WeChatBtn.mas_left).offset(-15);
-        make.top.equalTo(self.phoneView.mas_bottom).offset(20);
-        make.bottom.equalTo(self.bgView.mas_bottom).offset(-20);
-    }];
-    [self.WeChatBtn mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.right.equalTo(self.bgView).offset(-15);
-        make.centerY.equalTo(self.WeChatLabel);
-    }];
+//    [self.phoneView mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.left.equalTo(self.bgView).offset(15);
+//        make.right.equalTo(self.bgView).offset(-15);
+//        make.top.equalTo(self.phonelabel.mas_bottom).offset(20);
+//        make.height.mas_equalTo(1);
+//    }];
+//    [self.WeChatLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.left.equalTo(self.bgView).offset(15);
+//        make.right.equalTo(self.WeChatBtn.mas_left).offset(-15);
+//        make.top.equalTo(self.phoneView.mas_bottom).offset(20);
+//        make.bottom.equalTo(self.bgView.mas_bottom).offset(-20);
+//    }];
+//    [self.WeChatBtn mas_makeConstraints:^(MASConstraintMaker *make) {
+//        make.right.equalTo(self.bgView).offset(-15);
+//        make.centerY.equalTo(self.WeChatLabel);
+//    }];
     
 }
 - (void)configurationBasicInformationData:(NSDictionary *)data {
@@ -125,7 +126,7 @@
     [self.headerImageV sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",model.headImg]] placeholderImage:[UIImage imageNamed:@"portrait_default"]];
     self.infoLabel.text = [NSString stringWithFormat:@"%@/%@岁/%@",sex,model.birthYear,schoolStr];
     self.phonelabel.text = [NSString stringWithFormat:@"手机号码:%@",model.phone];
-    self.WeChatLabel.text = [NSString stringWithFormat:@"微信账号:%@",model.wechatNumber ? model.wechatNumber :@""];
+//    self.WeChatLabel.text = [NSString stringWithFormat:@"微信账号:%@",model.wechatNumber ? model.wechatNumber :@""];
     
 }
 #pragma mark - setter and getter
@@ -203,38 +204,38 @@
     }
     return _phoneBtn;
 }
-- (UIView *)phoneView {
-    
-    if (_phoneView == nil)
-    {
-        _phoneView = [[UIView alloc]init];
-        _phoneView.backgroundColor = COLOR_EEEEEE;
-    }
-    return _phoneView;
-}
-- (UILabel *)WeChatLabel {
-    
-    if (_WeChatLabel == nil)
-    {
-        _WeChatLabel = [[UILabel alloc]init];
-        _WeChatLabel.text = @"微信账号:";
-        _WeChatLabel.textColor = COLOR_666666;
-        _WeChatLabel.font = [UIFont systemFontOfSize:15];
-        _WeChatLabel.textAlignment = NSTextAlignmentLeft;
-    }
-    return _WeChatLabel;
-}
-- (UIButton *)WeChatBtn {
-    
-    if (_WeChatBtn == nil)
-    {
-        _WeChatBtn = [UIButton buttonWithType:UIButtonTypeCustom];
-        [_WeChatBtn setTitle:@"点击复制" forState:UIControlStateNormal];
-        _WeChatBtn.titleLabel.font = [UIFont systemFontOfSize:14];
-        [_WeChatBtn setTitleColor:COLOR_0177FF forState:UIControlStateNormal];
-        [_WeChatBtn setContentCompressionResistancePriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
-    }
-    return _WeChatBtn;
-}
+//- (UIView *)phoneView {
+//
+//    if (_phoneView == nil)
+//    {
+//        _phoneView = [[UIView alloc]init];
+//        _phoneView.backgroundColor = COLOR_EEEEEE;
+//    }
+//    return _phoneView;
+//}
+//- (UILabel *)WeChatLabel {
+//
+//    if (_WeChatLabel == nil)
+//    {
+//        _WeChatLabel = [[UILabel alloc]init];
+//        _WeChatLabel.text = @"微信账号:";
+//        _WeChatLabel.textColor = COLOR_666666;
+//        _WeChatLabel.font = [UIFont systemFontOfSize:15];
+//        _WeChatLabel.textAlignment = NSTextAlignmentLeft;
+//    }
+//    return _WeChatLabel;
+//}
+//- (UIButton *)WeChatBtn {
+//
+//    if (_WeChatBtn == nil)
+//    {
+//        _WeChatBtn = [UIButton buttonWithType:UIButtonTypeCustom];
+//        [_WeChatBtn setTitle:@"点击复制" forState:UIControlStateNormal];
+//        _WeChatBtn.titleLabel.font = [UIFont systemFontOfSize:14];
+//        [_WeChatBtn setTitleColor:COLOR_0177FF forState:UIControlStateNormal];
+//        [_WeChatBtn setContentCompressionResistancePriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
+//    }
+//    return _WeChatBtn;
+//}
 
 @end

+ 1 - 1
HappyJob/HappyJob/BClass/BHome_首页/Views/View/BHomeResumeObjectiveView.m

@@ -89,7 +89,7 @@
     self.jobsLabel.text = [NSString stringWithFormat:@"期望岗位:    %@",positionStr ? positionStr :@"无"];
     self.addressLabel.text = [NSString stringWithFormat:@"期望地点:    %@",model.expectationAddress ? model.expectationAddress :@"不限"];
     
-    NSArray *moneyArray = @[@"1000~2000元/月", @"2001~3000元/月", @"3001~4000元/月", @"4001~5000元/月", @"5001~6000元/月", @"6001~7000元/月", @"7001~8000元/月", @"8001~9000元/月", @"9001~10000元/月", @"10000以上元/月"];
+    NSArray *moneyArray = @[@"1000~2000元/月", @"2000~3000元/月", @"3000~4000元/月", @"4000~5000元/月", @"5000~6000元/月", @"6000~7000元/月", @"7000~8000元/月", @"8000~9000元/月", @"9000~10000元/月", @"10000以上元/月"];
     if (model.expectationSalary.length > 0 && [model.expectationSalary integerValue] >= 0)
     {
         self.salaryLabel.text = [NSString stringWithFormat:@"期望薪资:     %@",moneyArray[[model.expectationSalary integerValue]]];

+ 21 - 0
HappyJob/HappyJob/CClass/Me_我/Phone_修改手机号/APIManager/HJChangePhoneAPI.h

@@ -0,0 +1,21 @@
+//
+//  HJChangePhoneAPI.h
+//  HappyJob
+//
+//  Created by 张晓光 on 2020/12/8.
+//  Copyright © 2020 Bob. All rights reserved.
+//
+
+#import "FBBaseAPIManager.h"
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface HJChangePhoneAPI : FBBaseAPIManager
+
+@property (nonatomic, copy) NSString *newphone;
+@property (nonatomic, copy) NSString *code;
+@property (nonatomic, copy) NSString *type;
+
+@end
+
+NS_ASSUME_NONNULL_END

+ 66 - 0
HappyJob/HappyJob/CClass/Me_我/Phone_修改手机号/APIManager/HJChangePhoneAPI.m

@@ -0,0 +1,66 @@
+//
+//  HJChangePhoneAPI.m
+//  HappyJob
+//
+//  Created by 张晓光 on 2020/12/8.
+//  Copyright © 2020 Bob. All rights reserved.
+//
+
+#import "HJChangePhoneAPI.h"
+
+@interface HJChangePhoneAPI () <FBAPIManagerProtocol, FBAPIManagerValidator>
+
+
+@end
+
+@implementation HJChangePhoneAPI
+
+- (instancetype)init {
+    
+    if (self = [super init])
+    {
+
+    }
+    return self;
+}
+
+- (FBAPIManagerErrorType)manager:(FBBaseAPIManager *)manager validWithCallParamsData:(NSDictionary *)data {
+    
+    return FBAPIManagerErrorTypeNoError;
+}
+
+- (FBAPIManagerErrorType)manager:(FBBaseAPIManager *)manager validWithCallBackData:(NSDictionary *)data {
+    
+    if ([[data objectForKey:@"errcode"] integerValue] == 0)
+    {
+        return FBAPIManagerErrorTypeNoError;
+    }
+    else
+    {
+        return FBAPIManagerErrorTypeNoContent;
+    }
+}
+
+- (NSString *)methodName {
+    
+    return @"login/editUserPhone";
+}
+
+- (NSDictionary *)parameters {
+    
+    return @{
+        @"user_id": [HJUserInfoModel userInfo].userID,
+        @"user_token": [HJUserInfoModel userInfo].userToken,
+        @"member_id":[HJMemberInfoModel memberInfo].memberId,
+        @"new_phone":self.newphone,
+        @"type":self.type,
+        @"code":self.code
+    };
+}
+
+- (FBAPIManagerRequestType)requestType {
+    
+    return FBAPIManagerRequestTypePost;
+}
+
+@end

+ 2 - 0
HappyJob/HappyJob/CClass/Me_我/Phone_修改手机号/ViewController/HJChangePhoneViewController.h

@@ -12,6 +12,8 @@ NS_ASSUME_NONNULL_BEGIN
 
 @interface HJChangePhoneViewController : UIViewController
 
+@property (nonatomic, copy) void(^changePhoneSuccessBlock)(NSString *phone);
+
 @end
 
 NS_ASSUME_NONNULL_END

+ 100 - 12
HappyJob/HappyJob/CClass/Me_我/Phone_修改手机号/ViewController/HJChangePhoneViewController.m

@@ -9,13 +9,15 @@
 #import "HJChangePhoneViewController.h"
 #import "HJChangePhoneView.h"
 #import "HJSMSValidationWebView.h"//短信验证
+#import "HJChangePhoneAPI.h"
 
-@interface HJChangePhoneViewController ()
+@interface HJChangePhoneViewController ()<FBAPIManagerDelegate,FBAPIManagerInterceptor>
 
 @property (nonatomic, strong) HJChangePhoneView      *phoneView;
 @property (nonatomic, strong) HJSMSValidationWebView *validationWebView;
 @property (nonatomic, assign) NSInteger        second;//倒计时时间
 @property (nonatomic, strong) NSTimer          *timer;//定时器
+@property (nonatomic, strong) HJChangePhoneAPI     *changePhoneAPI;
 
 @end
 
@@ -45,27 +47,87 @@
         make.top.equalTo(self.view.mas_top).offset(46);
     }];
 }
+#pragma mark - FBAPIManagerInterceptor
 
+- (BOOL)manager:(FBBaseAPIManager *)manager shouldStartCallAPIWithParams:(NSDictionary *)params {
+    
+    [self.view fb_showLoading];
+    return YES;
+}
+
+- (void)managerShouldFinishCallAPI:(FBBaseAPIManager *)manager {
+    
+    [self.view fb_dismiss];
+}
+
+#pragma mark - FBPageableAPIManager
+
+- (void)managerCallAPIDidSuccess:(FBBaseAPIManager *)manager {
+    
+    if ([self.changePhoneAPI.type isEqualToString: @"check_phone"])
+    {
+        __weak typeof(self) weakSelf = self;
+        [self.validationWebView removeFromSuperview];
+        self.validationWebView = [[HJSMSValidationWebView alloc] init];
+        [self.validationWebView createWebViewPhone:self.phoneView.phoneTF.text];
+        self.validationWebView.successfulBlock = ^{
+
+            weakSelf.phoneView.codeBtn.userInteractionEnabled = NO;
+            [weakSelf.phoneView.codeTF becomeFirstResponder];
+            weakSelf.second = 60;
+            weakSelf.timer = [NSTimer scheduledTimerWithTimeInterval:1 target:weakSelf selector:@selector(runTimer) userInfo:weakSelf repeats:YES];
+        };
+    }
+    else
+    {
+        [self.navigationController popViewControllerAnimated:YES];
+        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5*NSEC_PER_SEC)),dispatch_get_main_queue(), ^{
+            
+            self.changePhoneSuccessBlock(self.phoneView.phoneTF.text);
+        });
+        //更改成功修改手机号码
+        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1*NSEC_PER_SEC)),dispatch_get_main_queue(), ^{
+            
+            [[NSNotificationCenter defaultCenter] postNotificationName:HJRealNameAuthenticationNotification object:nil];
+        });
+    }
+}
+
+- (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 - event
 
 - (void)getCodeAction:(UIButton *)btn {
     
+    if (self.phoneView.phoneTF.text.length == 0)
+    {
+        [self.view fb_showInfoWithStatus:@"请输入手机号码"];
+        return;
+    }
     if (self.phoneView.phoneTF.text.length != 11)
     {
         [self.view fb_showInfoWithStatus:@"请输入正确手机号码"];
         return;
     }
-    __weak typeof(self) weakSelf = self;
-    [self.validationWebView removeFromSuperview];
-    self.validationWebView = [[HJSMSValidationWebView alloc] init];
-    [self.validationWebView createWebViewPhone:self.phoneView.phoneTF.text];
-    self.validationWebView.successfulBlock = ^{
-        
-        weakSelf.phoneView.codeBtn.userInteractionEnabled = NO;
-        [weakSelf.phoneView.codeTF becomeFirstResponder];
-        weakSelf.second = 60;
-        weakSelf.timer = [NSTimer scheduledTimerWithTimeInterval:1 target:weakSelf selector:@selector(runTimer) userInfo:weakSelf repeats:YES];
-    };
+    self.changePhoneAPI.newphone = self.phoneView.phoneTF.text;
+    self.changePhoneAPI.type = @"check_phone";
+    [self.changePhoneAPI start];
 }
 
 - (void)runTimer {
@@ -85,7 +147,22 @@
 
 - (void)doneBtnAction:(UIButton *)btn {
     
+    if (self.phoneView.phoneTF.text.length != 11)
+    {
+        [self.view fb_showInfoWithStatus:@"请输入正确手机号码"];
+        return;
+    }
+    if (self.phoneView.codeTF.text.length == 0)
+    {
+        [self.view fb_showInfoWithStatus:@"请输入验证码"];
+        return;
+    }
+    self.changePhoneAPI.newphone = self.phoneView.phoneTF.text;
+    self.changePhoneAPI.code = self.phoneView.codeTF.text;
+    self.changePhoneAPI.type = @"";
+    [self.changePhoneAPI start];
 }
+
 #pragma mark - lazy
 
 - (HJChangePhoneView *)phoneView {
@@ -98,6 +175,17 @@
     }
     return _phoneView;
 }
+
+- (HJChangePhoneAPI *)changePhoneAPI {
+    
+    if (_changePhoneAPI == nil)
+    {
+        _changePhoneAPI = [[HJChangePhoneAPI alloc]init];
+        _changePhoneAPI.APIManagerDelegate = self;
+        _changePhoneAPI.APIManagerInterceptor = self;
+    }
+    return _changePhoneAPI;
+}
 /*
 #pragma mark - Navigation
 

+ 1 - 1
HappyJob/HappyJob/CClass/Me_我/Resume_个人简历/ResumeAPIManager/HJResumeDataBox.m

@@ -258,7 +258,7 @@ NSString *const HJResumeUpdateNotification = @"HJResumeUpdateNotification";
     
     if (_salaryDataSource == nil)
     {
-        _salaryDataSource = @[@"1000~2000元/月", @"2001~3000元/月", @"3001~4000元/月", @"4001~5000元/月", @"5001~6000元/月", @"6001~7000元/月", @"7001~8000元/月", @"8001~9000元/月", @"9001~10000元/月", @"10000以上元/月"];
+        _salaryDataSource = @[@"1000~2000元/月", @"2000~3000元/月", @"3000~4000元/月", @"4000~5000元/月", @"5000~6000元/月", @"6000~7000元/月", @"7000~8000元/月", @"8000~9000元/月", @"9000~10000元/月", @"10000以上元/月"];
     }
     return _salaryDataSource;
 }

+ 11 - 1
HappyJob/HappyJob/CClass/Me_我/Setting_设置/ViewController/HJAccountSafetyViewController.m

@@ -71,6 +71,12 @@
     if (indexPath.row == 0)
     {
         HJChangePhoneViewController *vc = [[HJChangePhoneViewController alloc] init];
+        vc.changePhoneSuccessBlock = ^(NSString * _Nonnull phone) {
+          
+            HJSettingCell *cell = [tableView cellForRowAtIndexPath:indexPath];
+            cell.contentLabel.text = phone;
+            [self.view fb_showInfoWithStatus:@"手机号修改已完成"];
+        };
         [self.navigationController pushViewController:vc animated:YES];
     }
     if (indexPath.row == 1)
@@ -100,6 +106,10 @@
     }
    
     cell.titleLabel.text = self.dataSource[indexPath.row];
+    if (indexPath.row == 0)
+    {
+        cell.contentLabel.text = [HJMemberInfoModel memberInfo].phone;
+    }
     return cell;
 }
 
@@ -141,7 +151,7 @@
     
     if (_dataSource == nil)
     {
-        _dataSource = [NSMutableArray arrayWithArray:@[@"修改手机号", @"注销账户"]];
+        _dataSource = [NSMutableArray arrayWithArray:@[@"手机号", @"注销账户"]];
     }
     return _dataSource;
 }

+ 1 - 0
HappyJob/HappyJob/CClass/Me_我/ViewController/HJMeViewController.m

@@ -184,6 +184,7 @@ FBAPIManagerDelegate
 - (void)managerCallAPIDidFailed:(FBBaseAPIManager *)manager {
     
     id fetchData = [manager fetchDataWithBox:self.dataBox];
+     
     if ([fetchData isKindOfClass:[NSString class]])
     {
         [self.view fb_showFailureWithStatus:fetchData];

+ 2 - 2
HappyJob/HappyJob/Login_登录/信息合并/ViewController/HJLoginInfoLookResumeViewController.m

@@ -134,12 +134,12 @@
         }
         else
         {
-            NSArray *salaryArray = @[@"1000~2000元/月", @"2001~3000元/月", @"3001~4000元/月", @"4001~5000元/月", @"5001~6000元/月", @"6001~7000元/月", @"7001~8000元/月", @"8001~9000元/月", @"9001~10000元/月", @"10000以上元/月"];
+            NSArray *salaryArray = @[@"1000~2000元/月", @"2000~3000元/月", @"3000~4000元/月", @"4000~5000元/月", @"5000~6000元/月", @"6000~7000元/月", @"7000~8000元/月", @"8000~9000元/月", @"9000~10000元/月", @"10000以上元/月"];
             self.objectiveView.salaryView.contentLabel.text = salaryArray[[resumeModel.expectationSalary integerValue]];
         }
     }
-    
 }
+
 #pragma mark - FBScrollLayoutViewDelegate
 
 - (void)scrollLayoutViewMakeConstraints:(FBScrollLayoutView *)scrollLayoutView {