|
@@ -312,6 +312,7 @@
|
|
|
postId
|
|
|
}"
|
|
|
:currentCurrencyInfo="currentCurrencyInfo"
|
|
|
+ :USDepositStatus = "USDepositStatus"
|
|
|
@showDepositMask="showDepositMessageBox = true"
|
|
|
@payFinish="payFinish">
|
|
|
<template v-slot:balance>
|
|
@@ -448,6 +449,8 @@ let dialogStyle = reactive({
|
|
|
dialogContentWidth: 1100
|
|
|
})
|
|
|
|
|
|
+let USDepositStatus = ref('DEFAULT');
|
|
|
+
|
|
|
let cropperOption = ref({
|
|
|
img: '',
|
|
|
full: true,
|
|
@@ -813,27 +816,6 @@ const selectCurrencyPopHandle = () => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * 获取实际支付金额
|
|
|
- */
|
|
|
-const getPayAmount = async (amountValue) => {
|
|
|
- let res = await payCalcFee({
|
|
|
- params: {
|
|
|
- amountValue,
|
|
|
- currencyCode: currentCurrencyInfo.value.currencyCode,
|
|
|
- payChannel: 'ach',
|
|
|
- },
|
|
|
- });
|
|
|
- if (res.code == 0) {
|
|
|
- let { finalAmountValue, feeDesc } = res.data;
|
|
|
- payConfig.value.feeDesc = feeDesc;
|
|
|
- if (finalAmountValue > 0) {
|
|
|
- finalAmountData.value = res.data;
|
|
|
- }
|
|
|
- }
|
|
|
- return res.data;
|
|
|
-};
|
|
|
-
|
|
|
const saveDiscordGuildInfo = () => {
|
|
|
let {guildId, inviteCode, inviteUrl} = discordInviteInfo.value;
|
|
|
//保存服务器信息
|
|
@@ -1869,8 +1851,17 @@ const submitReward = (reward) => {
|
|
|
onIptSetErrorTxt();
|
|
|
}
|
|
|
|
|
|
-const depositAchCancel = () => {
|
|
|
+const depositAchCancel = async () => {
|
|
|
showDepositMessageBox.value = false;
|
|
|
+ let currencyInfoRes = await getCurrencyByCode({currencyCode: currentCurrencyInfo.value.currencyCode});
|
|
|
+
|
|
|
+ if(currencyInfoRes.code == 0 && currencyInfoRes.data) {
|
|
|
+ currentCurrencyInfo.value = currencyInfoRes.data;
|
|
|
+ let {balance} = currencyInfoRes.data;
|
|
|
+ if(balance >= finalAmountData.value.orderAmountValue) {
|
|
|
+ USDepositStatus.value = 'SUCCESS';
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
const depositAchConfirm = async () => {
|
|
@@ -1881,8 +1872,8 @@ const depositAchConfirm = async () => {
|
|
|
currentCurrencyInfo.value = currencyInfoRes.data;
|
|
|
|
|
|
let {balance} = currencyInfoRes.data;
|
|
|
- if(balance > finalAmountData.value.orderAmountValue) {
|
|
|
- // payButtonDom.value && payButtonDom.value.balancePay();
|
|
|
+ if(balance >= finalAmountData.value.orderAmountValue) {
|
|
|
+ USDepositStatus.value = 'SUCCESS';
|
|
|
} else {
|
|
|
message.info('Deposit failed, please try again later');
|
|
|
}
|