From 7f23377738a726464c5e4abd13e6a52c8e2daf2d Mon Sep 17 00:00:00 2001 From: j1ack <1209452658@qq.com> Date: Thu, 15 Sep 2022 17:07:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/recharge/recharge.vue | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) 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]