登录流程更改
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
buildConfiguration = "Release"
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
|
@@ -413,9 +413,9 @@ const int UIInputTextViewMaxHeight = 147;
|
||||
self.recordButton.selected = YES;
|
||||
///开始录音
|
||||
if (!self.audioRecordView.superview) {
|
||||
[[UIApplication sharedApplication].keyWindow addSubview:self.audioRecordView];
|
||||
[kWindow addSubview:self.audioRecordView];
|
||||
[self.audioRecordView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.center.mas_equalTo(self.audioRecordView.superview);
|
||||
make.center.mas_equalTo(kWindow);
|
||||
}];
|
||||
[self.audioRecordView configAudioRecord:@"message_tool_audio_record_first" title:YMLocalizedString(@"QInputBarView2") isAnimation:YES];
|
||||
[self.audioRecordView beginAudioRecord];
|
||||
|
@@ -17,6 +17,7 @@
|
||||
#import "ThirdUserInfo.h"
|
||||
#import "AccountModel.h"
|
||||
#import "UserInfoModel.h"
|
||||
#import "XPLoginAuthCodeVC.h"
|
||||
@implementation PILoginManager
|
||||
+(void)loginWithVC:(MvpViewController *)VC isLoginPhone:(BOOL)isLoginPhone{
|
||||
AccountModel *accountModel = [[AccountInfoStorage instance] getCurrentAccountInfo];
|
||||
@@ -78,9 +79,9 @@
|
||||
[[AccountInfoStorage instance]saveHomeUserInfo:homeUserModel];
|
||||
if (userInfo.nick == nil || userInfo.avatar == nil) {
|
||||
if([isFlag isEqualToString:@"0"]){
|
||||
LoginVerifCodeViewController *lvc = [[LoginVerifCodeViewController alloc] init];
|
||||
lvc.type = VerifCodeType_AreaCode;
|
||||
[VC.navigationController pushViewController:lvc animated:YES];
|
||||
XPLoginAuthCodeVC *vc = [[XPLoginAuthCodeVC alloc]init];
|
||||
vc.pi_isPush = YES;
|
||||
[VC.navigationController pushViewController:vc animated:YES];
|
||||
}else{
|
||||
LoginFullInfoViewController * FullVC = [[LoginFullInfoViewController alloc] init];
|
||||
[VC.navigationController pushViewController:FullVC animated:YES];
|
||||
|
@@ -17,6 +17,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface XPLoginAuthCodeVC : MvpViewController
|
||||
@property(nonatomic,weak) id<XPLoginAuthCodeVCDelegate>delegate;
|
||||
@property(nonatomic,assign) BOOL pi_isPush;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
@@ -9,6 +9,7 @@
|
||||
#import "XPLoginInputView.h"
|
||||
#import <ReactiveObjC.h>
|
||||
#import "LoginVerifCodePresent.h"
|
||||
#import "LoginFullInfoViewController.h"
|
||||
@interface XPLoginAuthCodeVC ()
|
||||
///背景
|
||||
@property(nonatomic,strong) UIImageView *bgImageView;
|
||||
@@ -22,6 +23,9 @@
|
||||
@end
|
||||
|
||||
@implementation XPLoginAuthCodeVC
|
||||
- (BOOL)isHiddenNavBar {
|
||||
return YES;
|
||||
}
|
||||
- (LoginVerifCodePresent *)createPresenter {
|
||||
return [[LoginVerifCodePresent alloc] init];
|
||||
}
|
||||
@@ -89,11 +93,17 @@
|
||||
- (void)bindAuthorizationCodeSuccess{
|
||||
[self hideHUD];
|
||||
[self showSuccessToast:YMLocalizedString(@"XPLoginAuthCodeVC2")];
|
||||
self.loginBtn.enabled = YES;
|
||||
if(self.pi_isPush == YES){
|
||||
LoginFullInfoViewController * FullVC = [[LoginFullInfoViewController alloc] init];
|
||||
[self.navigationController pushViewController:FullVC animated:YES];
|
||||
return;
|
||||
}
|
||||
[self dismissViewControllerAnimated:YES completion:nil];
|
||||
if(self.delegate && [self.delegate respondsToSelector:@selector(bindCodeSuccess)]){
|
||||
[self.delegate bindCodeSuccess];
|
||||
}
|
||||
self.loginBtn.enabled = YES;
|
||||
|
||||
}
|
||||
-(void)bindAuthorizationCodeFail{
|
||||
[self hideHUD];
|
||||
|
Reference in New Issue
Block a user