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