修复bug
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
///验证码
|
||||
@property (nonatomic,strong) LoginForgetEditView *codeView;
|
||||
///手机区号
|
||||
@property (nonatomic,copy)NSString *phoneAreaCode;
|
||||
@property (nonatomic,copy)NSString *pi_phoneAreaCode;
|
||||
// 确认按钮
|
||||
@property (nonatomic, strong) UIButton *confirmBtn;
|
||||
// 重新绑定手机
|
||||
@@ -53,7 +53,7 @@
|
||||
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
self.phoneAreaCode = @"852";
|
||||
self.pi_phoneAreaCode = @"852";
|
||||
[self initSubViews];
|
||||
[self initSubViewConstraints];
|
||||
[self setConfigs];
|
||||
@@ -126,7 +126,7 @@
|
||||
|
||||
#pragma mark - XPChooseAreaCodeVCDelegate
|
||||
-(void)chooseAreaCodeSuccess:(NSString *)code{
|
||||
self.phoneAreaCode = code;
|
||||
self.pi_phoneAreaCode = code;
|
||||
self.phoneView.areaCode = [NSString stringWithFormat:@"+%@",code];
|
||||
}
|
||||
-(void)chooseAreaCodeAction{
|
||||
@@ -147,7 +147,7 @@
|
||||
return YES;
|
||||
}] subscribeNext:^(id _Nullable x) {
|
||||
@strongify(self);
|
||||
[self.presenter phoneSmsCode:[NSString stringWithFormat:@"%@%@",self.phoneAreaCode,self.phoneView.textField.text] type:self.bindingPhoneNumType == XPBindingPhoneNumTypeConfirm ? GetSmsType_Unbind_Phone : GetSmsType_Bind_Phone phoneAreaCode:self.phoneAreaCode];
|
||||
[self.presenter phoneSmsCode:[NSString stringWithFormat:@"%@%@",self.pi_phoneAreaCode,self.phoneView.textField.text] type:self.bindingPhoneNumType == XPBindingPhoneNumTypeConfirm ? GetSmsType_Unbind_Phone : GetSmsType_Bind_Phone phoneAreaCode:self.pi_phoneAreaCode];
|
||||
}];
|
||||
|
||||
// // 绑定和验证
|
||||
@@ -167,9 +167,9 @@
|
||||
@strongify(self)
|
||||
[self.view endEditing:YES];
|
||||
if (self.bindingPhoneNumType == XPBindingPhoneNumTypeConfirm) {
|
||||
[self.presenter checkMoblieCodeWithMoblie:[NSString stringWithFormat:@"%@%@",self.phoneAreaCode,self.phoneView.textField.text] code:self.codeView.textField.text phoneAreaCode:self.phoneAreaCode];
|
||||
[self.presenter checkMoblieCodeWithMoblie:[NSString stringWithFormat:@"%@%@",self.pi_phoneAreaCode,self.phoneView.textField.text] code:self.codeView.textField.text phoneAreaCode:self.pi_phoneAreaCode];
|
||||
} else {
|
||||
[self.presenter bindkMoblieCodeWithMoblie:[NSString stringWithFormat:@"%@%@",self.phoneAreaCode,self.phoneView.textField.text] code:self.codeView.textField.text phoneAreaCode:self.phoneAreaCode];
|
||||
[self.presenter bindkMoblieCodeWithMoblie:[NSString stringWithFormat:@"%@%@",self.pi_phoneAreaCode,self.phoneView.textField.text] code:self.codeView.textField.text phoneAreaCode:self.pi_phoneAreaCode];
|
||||
}
|
||||
} error:^(NSError * _Nullable error) {
|
||||
|
||||
|
Reference in New Issue
Block a user