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

28 lines
773 B
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.openPopupPanel("PurchasePanel");
this.close();
}
}