收藏功能&排行榜功能
This commit is contained in:
@@ -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] 无法获取当前激活的主页面");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user