This commit is contained in:
2025-09-19 00:50:31 +08:00
parent de0c97fc05
commit ad0e80ecda
3 changed files with 203 additions and 153 deletions
@@ -93,14 +93,12 @@ export class Web3PopPanel extends li_BaseView {
);
}
init() {
this.curType = 1;
}
refreshData(data: any): void {
this.orderId = data.orderId;
this.payType = data.payType;
this.goodId = data.goodId;
this.networkType = data.networkType;
this.curType =
data.networkType != undefined ? data.networkType : this.curType;
this.base = data.base;
}
refreshView() {
@@ -115,7 +113,7 @@ export class Web3PopPanel extends li_BaseView {
this.expireTimeText.string = expireTime.toString();
this.amount.string = amount;
this.address.string = walletUrl;
switch (this.networkType) {
switch (this.curType) {
case proto.cs.EnmNetworkType.ENT_TRON:
ResManager.I.changeResourceSpriteFrame(
this.coinIcon,
@@ -180,7 +178,6 @@ export class Web3PopPanel extends li_BaseView {
case proto.cs.EnmNetworkType.ENT_BEP:
break;
}
this.base.startPayment(this.goodId, proto.cs.EnmPayType.EPT_WEB3_USD, type);
this.selection.scale = new Vec3(1, 0, 1);
@@ -199,6 +196,7 @@ export class Web3PopPanel extends li_BaseView {
}
onClickClose() {
this.base.web3PopPanel = null;
this.close();
}
}