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

Loading…
Cancel
Save