bug fix
This commit is contained in:
@@ -25,6 +25,7 @@ import ResManager from "../../../Main/Manager/ResManager";
|
||||
import { InnerMsgCode } from "../../../Main/Config/InnerMsgCode";
|
||||
import { logger } from "db://assets/Scripts/Main/Common/Logger";
|
||||
import { GirlDetailPanel } from "./GirlDetailPanel";
|
||||
import { NavigationManager } from "../../manager/NavigationManager";
|
||||
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@@ -94,7 +95,7 @@ export class GirlListPopupPanel extends li_BaseView {
|
||||
Utils.addInnerEL(InnerMsgCode.BalanceChange, this, this.onBalanceChange);
|
||||
}
|
||||
Close() {
|
||||
this.close();
|
||||
NavigationManager.Instance.closePopupPanel(this.node);
|
||||
}
|
||||
onDestroy(): void {
|
||||
Utils.removeInnerEL(InnerMsgCode.BalanceChange, this, this.onBalanceChange);
|
||||
@@ -118,10 +119,10 @@ export class GirlListPopupPanel extends li_BaseView {
|
||||
walletData.vipExpire = Number(resData.vipExpire);
|
||||
// 刷新界面
|
||||
this.base.refresh();
|
||||
this.close();
|
||||
NavigationManager.Instance.closePopupPanel(this.node);
|
||||
TipsPanel.show("Buy Succeed");
|
||||
} else {
|
||||
this.close();
|
||||
NavigationManager.Instance.closePopupPanel(this.node);
|
||||
TipsPanel.show("Insufficient balance, need to purchase");
|
||||
}
|
||||
// TipsPanel.show("Insufficient balance, need to purchase");
|
||||
|
||||
Reference in New Issue
Block a user