修复bug
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
@property (nonatomic, strong) UIButton *loginBtn;
|
||||
|
||||
///区号
|
||||
@property (nonatomic,copy) NSString *phoneAreaCode;
|
||||
@property (nonatomic,copy) NSString *pi_phoneAreaCode;
|
||||
///类型,0,密码,1.手机
|
||||
@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];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user