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(); } }