diff --git a/pages/recharge/recharge.vue b/pages/recharge/recharge.vue index dfda2ec..99d0129 100644 --- a/pages/recharge/recharge.vue +++ b/pages/recharge/recharge.vue @@ -220,13 +220,12 @@ this.qr = QR.createQrCodeImg(e) }, getRechargeInfo(e) { - api.rechargeConfig({ type: this.pageState }).then(res => { this.reInfo = res if (this.pageState == 'crypto') { - if (this.reInfo.coins[0].address) { + // if (this.reInfo.coins[0].address) { // this.coinAddress = this.reInfo.coins[0].address // let img = this.reInfo.coins[0].address // this.coin = this.$i18n.PleaseChooseCoin @@ -237,19 +236,19 @@ this.qr = QR.createQrCodeImg(this.i18n.PleaseChooseCoin) this.message = this.i18n.message.replace('{rechargeMinAmount}', '').replaceAll( '{enname}', '') - } else { - - let coinInfo = { - coinCode: this.reInfo.coins[0].code - } - // 返回的币种没有充值地址就用接口传code换取虚拟币充值地址 - api.rechargeAddress(coinInfo).then(res => { - this.coinAddress = res.address - this.qr = this.getQr(this.coinAddress) - this.rechargeMinAmount = res.rechargeMinAmount - this.enname = res.enname - }) - } + // } else { + + // let coinInfo = { + // coinCode: this.reInfo.coins[0].code + // } + // // 返回的币种没有充值地址就用接口传code换取虚拟币充值地址 + // api.rechargeAddress(coinInfo).then(res => { + // this.coinAddress = res.address + // this.qr = this.getQr(this.coinAddress) + // this.rechargeMinAmount = res.rechargeMinAmount + // this.enname = res.enname + // }) + // } } else { this.reInfo.fastAmount = this.reInfo.fastAmount.split(',') this.onlineInfo.tranAmt = this.reInfo.fastAmount[0]