Browse Source

合并

master
j1ack 3 years ago
parent
commit
7f23377738
  1. 29
      pages/recharge/recharge.vue

29
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]

Loading…
Cancel
Save