完成 Moment 和 Mine 模块的 API 集成

Moment 模块:
-  集成真实动态列表 API (momentsRecommendList)
-  集成点赞 API (momentsLike)
-  使用 MomentsInfoModel 替代 mock 数据
-  实现时间格式化(相对时间显示)
-  实现点赞状态切换和 UI 更新
-  分页加载功能完善

Mine 模块:
-  集成用户信息 API (getUserInfo)
-  集成钱包信息 API (getUserWalletInfo)
-  使用 UserInfoModel 和 WalletInfoModel
-  头部视图动态显示真实数据
-  昵称、等级、经验、关注/粉丝数

改进:
- NewMomentCell: 支持点赞交互,实时更新
- NewMineViewController: viewWillAppear 时自动刷新数据
- 所有 API 调用都有错误处理和日志

下一步:
- 测试真实 API 调用是否成功
- 完善评论和发布功能
- 准备图片资源
This commit is contained in:
edwinQQQ
2025-10-09 19:02:02 +08:00
parent bf31ffda51
commit 5294f32ca7
7 changed files with 399 additions and 60 deletions

View File

@@ -84,11 +84,14 @@
}
+(void)jumpToHomeVCWithInviteCode:(NSString *)inviteCode{
TabbarViewController *vc = [[TabbarViewController alloc] init];
vc.isFormLogin = YES;
vc.inviteCode = inviteCode;
BaseNavigationController *bnc = [[BaseNavigationController alloc] initWithRootViewController:vc];
kWindow.rootViewController = bnc;
// ========== 使 NewTabBarController ==========
// Swift NewTabBarController
NewTabBarController *newTabBar = [NewTabBarController create];
[newTabBar refreshTabBarWithIsLogin:YES];
// NavigationController
kWindow.rootViewController = newTabBar;
//
[[FirstRechargeManager sharedManager] startMonitoring];
@@ -96,10 +99,21 @@
//
[[PublicRoomManager sharedManager] initialize];
// 🔧 TurboModeStateManager
// 🔧 TurboModeStateManager
NSString *userId = [[AccountInfoStorage instance] getUid];
if (userId) {
[[TurboModeStateManager sharedManager] startupWithCurrentUser:userId];
}
NSLog(@"[PILoginManager] 已切换到白牌 TabBarNewTabBarController");
// ========== ==========
/*
TabbarViewController *vc = [[TabbarViewController alloc] init];
vc.isFormLogin = YES;
vc.inviteCode = inviteCode;
BaseNavigationController *bnc = [[BaseNavigationController alloc] initWithRootViewController:vc];
kWindow.rootViewController = bnc;
*/
}
@end