This commit is contained in:
2025-10-13 16:20:37 +08:00
parent 4953b86bb3
commit 347a7292cc
8 changed files with 30 additions and 45 deletions
@@ -20,15 +20,7 @@ export class ChargePopPanel extends li_BaseView {
}
gotoCharge() {
NavigationManager.Instance.openSubPanel(
"PurchasePanel",
NavigationManager.Instance.getCurrentActivePanelNode(),
{ base: NavigationManager.Instance.getCurrentActivePanelNode() },
{
openAnimation: PageTransitionType.SLIDE_LEFT,
closeAnimation: PageTransitionType.SLIDE_RIGHT,
}
);
NavigationManager.Instance.openPopupPanel("PurchasePanel");
this.close();
}
@@ -155,18 +155,10 @@ export class PersonalPanel extends li_BaseView {
private openSettings(): void {
// TODO: 打开设置面板
NavigationManager.Instance.openSubPanel("SettingPanel", this.node);
NavigationManager.Instance.openPopupPanel("SettingPanel", this.node);
}
private openPurchase() {
NavigationManager.Instance.openSubPanel(
"PurchasePanel",
this.node,
{ base: this.node },
{
openAnimation: PageTransitionType.SLIDE_LEFT,
closeAnimation: PageTransitionType.SLIDE_RIGHT,
}
);
NavigationManager.Instance.openPopupPanel("PurchasePanel");
}
private openFavorites() {
@@ -44,10 +44,7 @@ export class PurchasePanel extends li_BaseView {
cashBtnSelecting;
web3BtnSelecting;
base: Node;
openUIDataCT(data: any): void {
this.base = data.base;
}
openUIDataCT(data: any): void {}
onLoadCT(): void {
this.node.active = false;
this.scheduleOnce(() => {
@@ -208,12 +205,11 @@ export class PurchasePanel extends li_BaseView {
payType: param.payType,
goodId: param.goodId,
networkType: this.getDefaultNetworkType(),
basePanel: this.base,
payPanel: this,
};
if (this.web3PopPanel == null)
NavigationManager.Instance.openSubPanel("Web3PopPanel", this.base, data);
NavigationManager.Instance.openPopupPanel("Web3PopPanel", data);
else {
data.networkType = undefined;
this.web3PopPanel.refreshData(data);
@@ -470,15 +470,7 @@ export class ThemePanel extends li_BaseView {
}
enterShop() {
NavigationManager.Instance.openSubPanel(
"PurchasePanel",
this.node,
{ base: this.node },
{
openAnimation: PageTransitionType.SLIDE_LEFT,
closeAnimation: PageTransitionType.SLIDE_RIGHT,
}
);
NavigationManager.Instance.openPopupPanel("PurchasePanel");
}
openRecomandList() {
@@ -36,7 +36,6 @@ export class Web3PopPanel extends li_BaseView {
private networkType: proto.cs.EnmNetworkType;
private goodId: number;
private basePanel: PersonalPanel;
private payPanel: PurchasePanel;
private countdownTimer: any;
@@ -112,7 +111,6 @@ export class Web3PopPanel extends li_BaseView {
this.goodId = data.goodId;
this.curType =
data.networkType != undefined ? data.networkType : this.curType;
this.basePanel = data.basePanel;
this.payPanel = data.payPanel;
}
refreshView() {