Browse Source

充值页面

master
vee 3 years ago
parent
commit
d9384c4fd3
  1. 46
      pages/recharge/recharge.vue
  2. 5
      utils/language/en_US.js
  3. 5
      utils/language/vi_VN.js
  4. 5
      utils/language/zh_TW.js

46
pages/recharge/recharge.vue

@ -30,7 +30,7 @@
<u-input class="input" v-model="coin" color="#fff" fontSize="32rpx" border="none"
:placeholder="i18n.PleaseChooseCoin" :disabled="true">
</u-input>
<view class="selectCoinBtn" >
<view class="selectCoinBtn">
</view>
</view>
@ -46,7 +46,7 @@
<view class="ScanQR">{{ i18n.ScanQR }}</view>
</view>
<view class="message-item">
{{ i18n.message }}
{{ message }}
</view>
<!-- USDT按钮通知弹出层 -->
@ -126,6 +126,7 @@
pageState: 'crypto',
//
coin: '',
message: '',
// code
coinCode: '',
USDTPopupShow: false,
@ -137,6 +138,8 @@
payType: null,
tranAmt: null,
},
rechargeMinAmount: '',
enname: ''
};
@ -161,14 +164,14 @@
api.recharge(this.onlineInfo).then(res => {
// uni.$u.toast(this.$t("login").Rechargesucceeded)
if (res.code == 0) {
// #ifdef APP-PLUS
plus.runtime.openURL(res.msg);
// #endif
// #ifdef H5
window.location.href = res.msg
// #endif
}
if (res.code == 1) {
// #ifdef APP-PLUS
plus.runtime.openURL(res.msg);
// #endif
// #ifdef H5
window.location.href = res.msg
// #endif
}
if (res.code == 1) {
uni.$u.toast(res.msg)
}
setTimeout(() => {
@ -185,9 +188,11 @@
this.onlineInfo.payType = t.payType
},
radioChange(e) {
console.log(e);
this.coin = e.enname
this.coinCode = e.code
this.message = this.i18n.message.replace('{rechargeMinAmount}', e.rechargeMinAmount).replaceAll('{enname}',
e.enname)
if (!e.address) {
let coinInfo = {
coinCode: e.code
@ -196,6 +201,8 @@
api.rechargeAddress(coinInfo).then(res => {
this.coinAddress = res.address
this.qr = QR.createQrCodeImg(this.coinAddress)
})
} else {
this.coinAddress = e.address
@ -207,6 +214,7 @@
this.qr = QR.createQrCodeImg(e)
},
getRechargeInfo(e) {
api.rechargeConfig({
type: this.pageState
}).then(res => {
@ -218,18 +226,23 @@
// this.coin = this.$i18n.PleaseChooseCoin
// this.coinCode = this.reInfo.coins[0].code
// this.getQr(img)
this.coinAddress = '';
this.coin = ''
this.qr =''
this.coinAddress = this.i18n.PleaseChooseCoin;
this.coin = this.i18n.PleaseChooseCoin
this.qr = this.getQr(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 {
@ -260,6 +273,7 @@
},
USDTRadioChange(e) {
console.log(e);
},
@ -269,7 +283,7 @@
content: value,
success: (res) => {
uni.showToast({
title: this.$t("login").copySuccess,
title: this.i18n.CopySuccess,
duration: 3000,
})
},

5
utils/language/en_US.js

@ -178,9 +178,10 @@ export default {
CoinDepositAddress: 'Coin deposit address',
CopyAddress: 'Copy address',
CopySuccess: 'Copy success',
ScanQR: 'Scan the QR code above to get the deposit address',
message: `Minimum deposit amount: 10 USDT. Deposit less than the minimum amount will not be posted and cannot be returned
This address is your latest deposit address. When the system receives deposit, it will be automatically credited to the accountThe transfer needs to be confirmed by the entire blockchain network. When it reaches 10 network confirmations, your USDT will be automatically deposit into the account`,
message: `Minimum deposit amount: {rechargeMinAmount} {enname}. Deposit less than the minimum amount will not be posted and cannot be returned
This address is your latest deposit address. When the system receives deposit, it will be automatically credited to the accountThe transfer needs to be confirmed by the entire blockchain network. When it reaches 10 network confirmations, your {enname} will be automatically deposit into the account`,
selectAmount: 'Please select the amount to deposit',
EnterNumber: 'Enter 100-1000000',

5
utils/language/vi_VN.js

@ -174,9 +174,10 @@ export default {
CoinDepositAddress: 'Địa chỉ gửi tiền xu',
CopyAddress: 'Sao chép địa chỉ',
CopySuccess: 'Sao chép thành công',
ScanQR: 'Quét mã QR ở trên để lấy địa chỉ gửi tiền',
message: `Số tiền gửi tối thiểu: 10 USDT. Tiền gửi ít hơn số tiền tối thiểu sẽ không được đăng và không được trả lại
Địa chỉ này địa chỉ gửi tiền mới nhất của bạn. Khi hệ thống nhận được tiền gửi, sẽ tự động được ghi vào tài khoản Việc chuyển tiền cần được xác nhận bởi toàn bộ mạng lưới blockchain. Khi đạt đến 10 xác nhận của mạng, USDT của bạn sẽ được tự động gửi vào tài khoản`,
message: `Số tiền gửi tối thiểu: {rechargeMinAmount} {enname}. Tiền gửi ít hơn số tiền tối thiểu sẽ không được đăng và không được trả lại
Địa chỉ này địa chỉ gửi tiền mới nhất của bạn. Khi hệ thống nhận được tiền gửi, sẽ tự động được ghi vào tài khoản Việc chuyển tiền cần được xác nhận bởi toàn bộ mạng lưới blockchain. Khi đạt đến 10 xác nhận của mạng, {enname} của bạn sẽ được tự động gửi vào tài khoản`,
selectAmount: 'Vui lòng chọn số tiền gửi',
EnterNumber: 'Nhập 100-1000000',

5
utils/language/zh_TW.js

@ -174,9 +174,10 @@ export default {
CoinDepositAddress: '充幣地址',
CopyAddress: '複製地址',
CopySuccess: '複製成功',
ScanQR: '掃描上方二維碼獲取充值地址',
message: `最低存款金額:10 USDT。 低於最低金額的押金將不予過帳且不予退還
此地址是您最新的存款地址 系統收到存款後會自動到賬轉賬需要整個區塊鍊網絡確認 當網絡確認達到 10 次時您的 USDT 將自動存入賬戶`,
message: `最低存款金額:{rechargeMinAmount} {enname}。 低於最低金額的押金將不予過帳且不予退還
此地址是您最新的存款地址 系統收到存款後會自動到賬轉賬需要整個區塊鍊網絡確認 當網絡確認達到 10 次時您的 {enname} 將自動存入賬戶`,
selectAmount: '請選擇存款金額',
EnterNumber: '進入 100-1000000',

Loading…
Cancel
Save