diff --git a/YuMi.xcodeproj/xcshareddata/xcschemes/YuMi.xcscheme b/YuMi.xcodeproj/xcshareddata/xcschemes/YuMi.xcscheme index 9e3921f5..d258e3d3 100644 --- a/YuMi.xcodeproj/xcshareddata/xcschemes/YuMi.xcscheme +++ b/YuMi.xcodeproj/xcshareddata/xcschemes/YuMi.xcscheme @@ -31,7 +31,7 @@ delegate; +@property(nonatomic,assign) BOOL pi_isPush; @end NS_ASSUME_NONNULL_END diff --git a/YuMi/Modules/YMLogin/View/NewLogin/XPLoginAuthCodeVC.m b/YuMi/Modules/YMLogin/View/NewLogin/XPLoginAuthCodeVC.m index 8433b9ae..8227ce28 100644 --- a/YuMi/Modules/YMLogin/View/NewLogin/XPLoginAuthCodeVC.m +++ b/YuMi/Modules/YMLogin/View/NewLogin/XPLoginAuthCodeVC.m @@ -9,6 +9,7 @@ #import "XPLoginInputView.h" #import #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];