登录界面更改
This commit is contained in:
@@ -75,6 +75,7 @@
|
||||
#import "XPMomentListViewController.h"
|
||||
#import "XPHomeSloganViewController.h"
|
||||
#import "XPSimpleMineViewController.h"
|
||||
#import "XPLoginAuthCodeVC.h"
|
||||
///Present
|
||||
#import "MainPresenter.h"
|
||||
#import "MainProtocol.h"
|
||||
@@ -91,7 +92,7 @@ NSString * const kNetworkReachabilityKey = @"kNetworkReachabilityKey";
|
||||
UIKIT_EXTERN NSString * kNewUserRechargeKey;
|
||||
UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
|
||||
|
||||
@interface TabbarViewController () <BaseMvpProtocol, MainProtocol, NIMLoginManagerDelegate, NIMSystemNotificationManagerDelegate, NIMChatManagerDelegate, XPAnchorCardViewDelegate, NIMBroadcastManagerDelegate, XPRoomYearActivityViewDelegate>
|
||||
@interface TabbarViewController () <BaseMvpProtocol, MainProtocol, NIMLoginManagerDelegate, NIMSystemNotificationManagerDelegate, NIMChatManagerDelegate,XPLoginAuthCodeVCDelegate, XPAnchorCardViewDelegate, NIMBroadcastManagerDelegate, XPRoomYearActivityViewDelegate>
|
||||
{
|
||||
NSTimer * timer;
|
||||
}
|
||||
@@ -244,7 +245,8 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
|
||||
return;
|
||||
}
|
||||
if (userInfo.nick == nil || userInfo.avatar == nil) {
|
||||
[self completeUserInfo];
|
||||
[self.presenter getAuthorizationCodeInfo];
|
||||
|
||||
return;
|
||||
}
|
||||
[self initTabs:YES];
|
||||
@@ -262,6 +264,25 @@ UIKIT_EXTERN NSString *kTabShowAnchorCardKey;
|
||||
vc.parentMode = self.parentMode;
|
||||
}
|
||||
}
|
||||
- (void)getAuthorizationCodeInfoWithPhonefail{
|
||||
[self completeUserInfo];
|
||||
}
|
||||
|
||||
-(void)getAuthorizationCodeInfoWithPhoneSuccess:(BOOL)flag{
|
||||
|
||||
if(flag == NO){
|
||||
XPLoginAuthCodeVC *vc = [[XPLoginAuthCodeVC alloc]init];
|
||||
vc.delegate = self;
|
||||
vc.modalPresentationStyle = UIModalPresentationFullScreen;
|
||||
[self presentViewController:vc animated:YES completion:nil];
|
||||
return;
|
||||
}
|
||||
[self completeUserInfo];
|
||||
}
|
||||
#pragma mark - XPLoginAuthCodeVCDelegate
|
||||
- (void)bindCodeSuccess{
|
||||
[self completeUserInfo];
|
||||
}
|
||||
///
|
||||
-(void)requestGiftList{
|
||||
[self dealWithDefaultSvga];
|
||||
|
Reference in New Issue
Block a user