修复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

@@ -51,7 +51,7 @@
@property (nonatomic, strong) UIButton *loginBtn;
///
@property (nonatomic,copy) NSString *phoneAreaCode;
@property (nonatomic,copy) NSString *pi_phoneAreaCode;
///,01.
@property(nonatomic,assign) int selectType;
@end
@@ -67,7 +67,7 @@
- (void)viewDidLoad {
self.selectType = 0;
self.phoneAreaCode = @"852";
self.pi_phoneAreaCode = @"852";
[super viewDidLoad];
[self createUI];
[self racBind];
@@ -190,8 +190,8 @@
NSString *phone = self.phoneInputView.inputTextField.text;
NSString *smsCode = self.codeInputView.inputTextField.text;
NSString * phoneStr = [NSString stringWithFormat:@"%@%@",self.phoneAreaCode, phone];
[self.presenter loginWithPhone:phoneStr code:smsCode phoneAreaCode:self.phoneAreaCode];
NSString * phoneStr = [NSString stringWithFormat:@"%@%@",self.pi_phoneAreaCode, phone];
[self.presenter loginWithPhone:phoneStr code:smsCode phoneAreaCode:self.pi_phoneAreaCode];
}
- (void)forgetBtnClicked {
@@ -207,7 +207,7 @@
[self showErrorToast:YMLocalizedString(@"XPLoginPhoneViewController0")];
return;
}
[self.presenter phoneSmsCode:[NSString stringWithFormat:@"%@%@",self.phoneAreaCode,phone] type:GetSmsType_Regist phoneAreaCode:self.phoneAreaCode];
[self.presenter phoneSmsCode:[NSString stringWithFormat:@"%@%@",self.pi_phoneAreaCode,phone] type:GetSmsType_Regist phoneAreaCode:self.pi_phoneAreaCode];
}
- (void)areaListAction {
@@ -218,7 +218,7 @@
- (void)chooseAreaCodeSuccess:(NSString *)code {
if (code.length > 0) {
self.phoneAreaCode = code;
self.pi_phoneAreaCode = code;
[self.phoneInputView.areaCodeBtn setTitle:[NSString stringWithFormat:@"+%@", code] forState:UIControlStateNormal];
}
}