32 lines
849 B
TypeScript
32 lines
849 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();
|
|
}
|
|
|
|
Close() {
|
|
NavigationManager.Instance.closePopupPanel(this.node);
|
|
}
|
|
}
|