fix
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user