Files
18xchat/assets/Scripts/chat18x/ui/panels/ChargePopPanel.ts
T

32 lines
849 B
TypeScript
Raw Normal View History

2025-10-10 16:09:14 +08:00
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);
2025-10-14 11:00:49 +08:00
GButton.BandClick(this._nodeTab.closeBtn, this.Close, this);
2025-10-10 16:09:14 +08:00
}
gotoCharge() {
2025-10-13 16:20:37 +08:00
NavigationManager.Instance.openPopupPanel("PurchasePanel");
2025-10-10 16:09:14 +08:00
2025-10-14 11:00:49 +08:00
this.Close();
}
Close() {
NavigationManager.Instance.closePopupPanel(this.node);
2025-10-10 16:09:14 +08:00
}
}