修复bug

This commit is contained in:
liyuhua
2023-08-16 14:21:58 +08:00
parent a882a1a17f
commit e63c569a87
76 changed files with 483 additions and 640 deletions

View File

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