This commit is contained in:
2025-12-11 17:59:25 +08:00
parent 111fe42782
commit 14637a21ad
2 changed files with 15 additions and 53 deletions

View File

@@ -44,13 +44,13 @@
image:@"tab_shop"
selectedImg:@"tab_shop_selected"];
//
KBCommunityVC *community = [[KBCommunityVC alloc] init];
// community.title = KBLocalized(@"Circle");
BaseNavigationController *navCommunity = [[BaseNavigationController alloc] initWithRootViewController:community];
navCommunity.tabBarItem = [self tabItemWithTitle:KBLocalized(@"Circle")
image:@"tab_shequ"
selectedImg:@"tab_shequ_selected"];
// //
// KBCommunityVC *community = [[KBCommunityVC alloc] init];
//// community.title = KBLocalized(@"Circle");
// BaseNavigationController *navCommunity = [[BaseNavigationController alloc] initWithRootViewController:community];
// navCommunity.tabBarItem = [self tabItemWithTitle:KBLocalized(@"Circle")
// image:@"tab_shequ"
// selectedImg:@"tab_shequ_selected"];
//
MyVC *my = [[MyVC alloc] init];
@@ -59,7 +59,7 @@
image:@"tab_my"
selectedImg:@"tab_my_selected"];
self.viewControllers = @[navHome, navShop, navCommunity, navMy];
self.viewControllers = @[navHome, navShop, navMy];
// Token
// [[KBAuthManager shared] saveAccessToken:@"TEST" refreshToken:nil expiryDate:[NSDate dateWithTimeIntervalSinceNow:3600] userIdentifier:nil];
@@ -120,7 +120,7 @@
}
// tab 4 3
if (index == 3 && ![KBUserSessionManager shared].isLoggedIn) {
if (index == 2 && ![KBUserSessionManager shared].isLoggedIn) {
[[KBUserSessionManager shared] goLoginVC];
return NO;
}