update
This commit is contained in:
@@ -154,9 +154,14 @@ export class PersonalPanel extends li_BaseView {
|
||||
NavigationManager.Instance.openSubPanel("SettingPanel", this.node);
|
||||
}
|
||||
private openPurchase() {
|
||||
NavigationManager.Instance.openSubPanel("PurchasePanel", this.node, null, {
|
||||
openAnimation: PageTransitionType.SLIDE_LEFT,
|
||||
closeAnimation: PageTransitionType.SLIDE_RIGHT,
|
||||
});
|
||||
NavigationManager.Instance.openSubPanel(
|
||||
"PurchasePanel",
|
||||
this.node,
|
||||
{ base: this.node },
|
||||
{
|
||||
openAnimation: PageTransitionType.SLIDE_LEFT,
|
||||
closeAnimation: PageTransitionType.SLIDE_RIGHT,
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,6 +47,10 @@ export class PurchasePanel extends li_BaseView {
|
||||
web3BtnSelecting;
|
||||
web3BtnNotSelect;
|
||||
|
||||
base: Node;
|
||||
openUIDataCT(data: any): void {
|
||||
this.base = data.base;
|
||||
}
|
||||
onLoadCT(): void {
|
||||
this.node.active = false;
|
||||
this.scheduleOnce(() => {
|
||||
@@ -203,23 +207,16 @@ export class PurchasePanel extends li_BaseView {
|
||||
payType: param.payType,
|
||||
goodId: param.goodId,
|
||||
networkType: this.getDefaultNetworkType(),
|
||||
base: this,
|
||||
base: this.base,
|
||||
};
|
||||
|
||||
if (
|
||||
NavigationManager.Instance.getCurrentActivePanel() == PanelType.PERSONAL
|
||||
)
|
||||
if (this.web3PopPanel == null)
|
||||
NavigationManager.Instance.openSubPanel(
|
||||
"Web3PopPanel",
|
||||
this.node,
|
||||
data
|
||||
);
|
||||
else {
|
||||
data.networkType = undefined;
|
||||
this.web3PopPanel.refreshData(data);
|
||||
this.web3PopPanel.refreshView();
|
||||
}
|
||||
if (this.web3PopPanel == null)
|
||||
NavigationManager.Instance.openSubPanel("Web3PopPanel", this.base, data);
|
||||
else {
|
||||
data.networkType = undefined;
|
||||
this.web3PopPanel.refreshData(data);
|
||||
this.web3PopPanel.refreshView();
|
||||
}
|
||||
}
|
||||
|
||||
getPlayerMerData() {
|
||||
|
||||
@@ -295,10 +295,15 @@ export class ThemePanel extends li_BaseView {
|
||||
}
|
||||
|
||||
enterShop() {
|
||||
NavigationManager.Instance.openSubPanel("PurchasePanel", this.node, null, {
|
||||
openAnimation: PageTransitionType.SLIDE_LEFT,
|
||||
closeAnimation: PageTransitionType.SLIDE_RIGHT,
|
||||
});
|
||||
NavigationManager.Instance.openSubPanel(
|
||||
"PurchasePanel",
|
||||
this.node,
|
||||
{ base: this.node },
|
||||
{
|
||||
openAnimation: PageTransitionType.SLIDE_LEFT,
|
||||
closeAnimation: PageTransitionType.SLIDE_RIGHT,
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
chatWithRec() {
|
||||
|
||||
Reference in New Issue
Block a user