Files
18xchat/assets/Scripts/chat18x/ui/panels/ChargePopPanel.ts
T
2025-10-10 16:09:14 +08:00

36 lines
1.0 KiB
TypeScript

import { _decorator, Component, Node } from "cc";
import li_BaseView from "../../../Main/Common/li_BaseView";
import Utils from "../../../Main/Common/Utils";
import { GButton } from "../../../Main/Common/GButton";
import {
NavigationManager,
PageTransitionType,
} from "../../manager/NavigationManager";
const { ccclass, property } = _decorator;
@ccclass("ChargePopPanel")
export class ChargePopPanel extends li_BaseView {
private _nodeTab: any = {};
onLoad(): void {
Utils.parseNode(this.node, this._nodeTab);
GButton.BandClick(this._nodeTab.chargeBtn, this.gotoCharge, this);
GButton.BandClick(this._nodeTab.closeBtn, this.close, this);
}
gotoCharge() {
NavigationManager.Instance.openSubPanel(
"PurchasePanel",
NavigationManager.Instance.getCurrentActivePanelNode(),
{ base: NavigationManager.Instance.getCurrentActivePanelNode() },
{
openAnimation: PageTransitionType.SLIDE_LEFT,
closeAnimation: PageTransitionType.SLIDE_RIGHT,
}
);
this.close();
}
}