feat(reward): 新增客户端奖励中心

This commit is contained in:
Zhou Weidong committed 2026-11-13 13:43:38 +08:00
1 parent 67670d46b1
commit bea08110c9
68 files changed
+3987 -332

No files matched your search

+10 -6
View File
@@ -75,7 +75,7 @@ class HomeLogic extends ChangeNotifier {
String? episodeId,
}) => playDramaFromCatalog(context, drama, episodeId: episodeId);
void openProfile() => select(3);
void openProfile() => select(4);
void discoverAction(DiscoverPageAction action) {
switch (action) {
@@ -83,10 +83,12 @@ class HomeLogic extends ChangeNotifier {
select(0);
case DiscoverPageAction.recommend:
select(1);
case DiscoverPageAction.following:
case DiscoverPageAction.reward:
select(2);
case DiscoverPageAction.mine:
case DiscoverPageAction.following:
select(3);
case DiscoverPageAction.mine:
select(4);
}
}
@@ -103,7 +105,7 @@ class HomeLogic extends ChangeNotifier {
}
void openFollowingHistory() {
tab = 2;
tab = 3;
followingHistoryRequest += 1;
notify();
}
@@ -114,10 +116,12 @@ class HomeLogic extends ChangeNotifier {
select(0);
case MyPageAction.recommend:
select(1);
case MyPageAction.following:
case MyPageAction.reward:
select(2);
case MyPageAction.mine:
case MyPageAction.following:
select(3);
case MyPageAction.mine:
select(4);
case MyPageAction.resume:
select(0, resume: true);
}