收藏功能&排行榜功能

This commit is contained in:
2025-10-27 17:33:09 +08:00
parent 3cff8f8f28
commit 441d823341
50 changed files with 3809 additions and 4489 deletions
+17 -7
View File
@@ -24,6 +24,7 @@ import { EnvData } from "../data/EnvData";
import { logger } from "db://assets/Scripts/Main/Common/Logger";
import { GButton } from "../../Main/Common/GButton";
import { GirlListPanel } from "../ui/panels/GirlListPanel";
import { GirlCollectionPanel } from "../ui/panels/GirlCollectionPanel";
const { ccclass, property } = _decorator;
@@ -84,8 +85,12 @@ export class GirlListItem extends Component {
);
}
baseNode: GirlListPanel;
refreshData(category: number, girlId: number, baseNode: GirlListPanel) {
baseNode: GirlListPanel | GirlCollectionPanel;
refreshData(
category: number,
girlId: number,
baseNode: GirlListPanel | GirlCollectionPanel
) {
if (!this.stars) {
this.stars = this.starParent.getComponentsInChildren(Sprite);
}
@@ -208,11 +213,16 @@ export class GirlListItem extends Component {
const currentPanel = NavigationManager.Instance.getCurrentActivePanelNode();
if (currentPanel) {
const chatData = { girlId: this.id, base: currentPanel };
NavigationManager.Instance.openSubPanel("ChatPanel", currentPanel, chatData, {
openAnimation: PageTransitionType.NONE,
closeAnimation: PageTransitionType.NONE,
hideBasePanel: true,
});
NavigationManager.Instance.openSubPanel(
"ChatPanel",
currentPanel,
chatData,
{
openAnimation: PageTransitionType.NONE,
closeAnimation: PageTransitionType.NONE,
hideBasePanel: true,
}
);
} else {
logger.warn("[GirlListItem] 无法获取当前激活的主页面");
}