|
@ -46,7 +46,7 @@ |
|
|
<view class="ScanQR">{{ i18n.ScanQR }}</view> |
|
|
<view class="ScanQR">{{ i18n.ScanQR }}</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="message-item"> |
|
|
<view class="message-item"> |
|
|
{{ i18n.message }} |
|
|
{{ message }} |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<!-- USDT按钮通知弹出层 --> |
|
|
<!-- USDT按钮通知弹出层 --> |
|
@ -126,6 +126,7 @@ |
|
|
pageState: 'crypto', |
|
|
pageState: 'crypto', |
|
|
// 显示类型 |
|
|
// 显示类型 |
|
|
coin: '', |
|
|
coin: '', |
|
|
|
|
|
message: '', |
|
|
// 传后台的虚拟币code |
|
|
// 传后台的虚拟币code |
|
|
coinCode: '', |
|
|
coinCode: '', |
|
|
USDTPopupShow: false, |
|
|
USDTPopupShow: false, |
|
@ -137,6 +138,8 @@ |
|
|
payType: null, |
|
|
payType: null, |
|
|
tranAmt: null, |
|
|
tranAmt: null, |
|
|
}, |
|
|
}, |
|
|
|
|
|
rechargeMinAmount: '', |
|
|
|
|
|
enname: '' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
}; |
|
@ -185,9 +188,11 @@ |
|
|
this.onlineInfo.payType = t.payType |
|
|
this.onlineInfo.payType = t.payType |
|
|
}, |
|
|
}, |
|
|
radioChange(e) { |
|
|
radioChange(e) { |
|
|
|
|
|
console.log(e); |
|
|
this.coin = e.enname |
|
|
this.coin = e.enname |
|
|
this.coinCode = e.code |
|
|
this.coinCode = e.code |
|
|
|
|
|
this.message = this.i18n.message.replace('{rechargeMinAmount}', e.rechargeMinAmount).replaceAll('{enname}', |
|
|
|
|
|
e.enname) |
|
|
if (!e.address) { |
|
|
if (!e.address) { |
|
|
let coinInfo = { |
|
|
let coinInfo = { |
|
|
coinCode: e.code |
|
|
coinCode: e.code |
|
@ -196,6 +201,8 @@ |
|
|
api.rechargeAddress(coinInfo).then(res => { |
|
|
api.rechargeAddress(coinInfo).then(res => { |
|
|
this.coinAddress = res.address |
|
|
this.coinAddress = res.address |
|
|
this.qr = QR.createQrCodeImg(this.coinAddress) |
|
|
this.qr = QR.createQrCodeImg(this.coinAddress) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
this.coinAddress = e.address |
|
|
this.coinAddress = e.address |
|
@ -207,6 +214,7 @@ |
|
|
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 => { |
|
@ -218,18 +226,23 @@ |
|
|
// this.coin = this.$i18n.PleaseChooseCoin |
|
|
// this.coin = this.$i18n.PleaseChooseCoin |
|
|
// this.coinCode = this.reInfo.coins[0].code |
|
|
// this.coinCode = this.reInfo.coins[0].code |
|
|
// this.getQr(img) |
|
|
// this.getQr(img) |
|
|
this.coinAddress = ''; |
|
|
this.coinAddress = this.i18n.PleaseChooseCoin; |
|
|
this.coin = '' |
|
|
this.coin = this.i18n.PleaseChooseCoin |
|
|
this.qr ='' |
|
|
this.qr = this.getQr(this.i18n.PleaseChooseCoin) |
|
|
|
|
|
this.message = this.i18n.message.replace('{rechargeMinAmount}', '').replaceAll( |
|
|
|
|
|
'{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.enname = res.enname |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
@ -260,6 +273,7 @@ |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
USDTRadioChange(e) { |
|
|
USDTRadioChange(e) { |
|
|
|
|
|
|
|
|
console.log(e); |
|
|
console.log(e); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -269,7 +283,7 @@ |
|
|
content: value, |
|
|
content: value, |
|
|
success: (res) => { |
|
|
success: (res) => { |
|
|
uni.showToast({ |
|
|
uni.showToast({ |
|
|
title: this.$t("login").copySuccess, |
|
|
title: this.i18n.CopySuccess, |
|
|
duration: 3000, |
|
|
duration: 3000, |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|