update 页面跳转

This commit is contained in:
2025-09-21 16:04:51 +08:00
parent 69318c3404
commit d1f88f15c1
14 changed files with 60 additions and 30 deletions
@@ -92,6 +92,11 @@ export class ChatPanel extends li_BaseView implements IChatPanelCallback {
}
onLoadCT() {
this.node.active = false;
this.scheduleOnce(() => {
this.node.active = true;
}, 0.1);
Utils.parseNode(this.node, this._nodeTab);
this.waitingAI = this._nodeTab.waitingAI;
@@ -28,6 +28,10 @@ export class GirlListPanel extends li_BaseView {
category: number;
onLoadCT() {
this.node.active = false;
this.scheduleOnce(() => {
this.node.active = true;
}, 0.1);
Utils.parseNode(this.node, this._nodeTab);
this.registerListener();
this.itemInst = this._nodeTab.BubbleItem.getComponent(GirlListItem);
@@ -121,7 +121,6 @@ export class GirlListPopupPanel extends li_BaseView {
this.close();
TipsPanel.show("Buy Succeed");
} else {
//ViewManager.I.openBundlesView("PurchasePanel");
this.close();
TipsPanel.show("Insufficient balance, need to purchase");
}
@@ -20,7 +20,10 @@ import LanguageUtils, {
LanguageType,
} from "../../../Main/Common/LanguageUtils";
import AudioManager from "../../../Main/Manager/AudioManager";
import { NavigationManager } from "../../manager/NavigationManager";
import {
NavigationManager,
PageTransitionType,
} from "../../manager/NavigationManager";
import { PlayerDataService } from "../../network/services/PlayerDataService";
import proto from "db://assets/Scripts/proto/proto.pb.js";
@@ -150,6 +153,9 @@ export class PersonalPanel extends li_BaseView {
NavigationManager.Instance.openSubPanel("SettingPanel", this.node);
}
private openPurchase() {
NavigationManager.Instance.openSubPanel("PurchasePanel", this.node);
NavigationManager.Instance.openSubPanel("PurchasePanel", this.node, null, {
openAnimation: PageTransitionType.SLIDE_LEFT,
closeAnimation: PageTransitionType.SLIDE_RIGHT,
});
}
}
@@ -44,6 +44,11 @@ export class PurchasePanel extends li_BaseView {
web3BtnNotSelect;
onLoadCT(): void {
this.node.active = false;
this.scheduleOnce(() => {
this.node.active = true;
}, 0.2);
Utils.parseNode(this.node, this._nodeTab);
this.coinNum = this._nodeTab.coinNum.getComponent(Label);
this.vipLeftTime = this._nodeTab.vipText.getComponent(Label);
@@ -294,7 +294,10 @@ export class ThemePanel extends li_BaseView {
}
enterShop() {
NavigationManager.Instance.openSubPanel("PurchasePanel", this.node);
NavigationManager.Instance.openSubPanel("PurchasePanel", this.node, null, {
openAnimation: PageTransitionType.SLIDE_LEFT,
closeAnimation: PageTransitionType.SLIDE_RIGHT,
});
}
chatWithRec() {