|
@@ -186,6 +186,7 @@ const clickDeposit = () => {
|
|
if(currencyInfo.currencyCode == 'USD') {
|
|
if(currencyInfo.currencyCode == 'USD') {
|
|
// 法币充值
|
|
// 法币充值
|
|
showDepositInput.value = true;
|
|
showDepositInput.value = true;
|
|
|
|
+ setDepositDesc();
|
|
|
|
|
|
} else {
|
|
} else {
|
|
depositHandle(currencyInfo);
|
|
depositHandle(currencyInfo);
|
|
@@ -193,6 +194,20 @@ const clickDeposit = () => {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+const setDepositDesc = async () => {
|
|
|
|
+ let res = await payCalcFee({
|
|
|
|
+ params: {
|
|
|
|
+ amountValue: 0,
|
|
|
|
+ currencyCode: currencyInfo.value.currencyCode,
|
|
|
|
+ payChannel: 'ach',
|
|
|
|
+ },
|
|
|
|
+ });
|
|
|
|
+ if(res.code == 0) {
|
|
|
|
+ let {feeDesc} = res.data;
|
|
|
|
+ depositDesc.value = `${feeDesc}`;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
const depositHandle = (_params) => {
|
|
const depositHandle = (_params) => {
|
|
top_up_info.token = _params.currencyName || ''
|
|
top_up_info.token = _params.currencyName || ''
|
|
top_up_info.token_chain = _params.tokenChain
|
|
top_up_info.token_chain = _params.tokenChain
|
|
@@ -288,6 +303,9 @@ const confirmDeposit = (params) => {
|
|
const onDepositAmountInput = async (params = {}) => {
|
|
const onDepositAmountInput = async (params = {}) => {
|
|
let {inputVal} = params;
|
|
let {inputVal} = params;
|
|
reqCalcIng = true;
|
|
reqCalcIng = true;
|
|
|
|
+ if(inputVal === '') {
|
|
|
|
+ inputVal = 0;
|
|
|
|
+ }
|
|
let res = await payCalcFee({
|
|
let res = await payCalcFee({
|
|
params: {
|
|
params: {
|
|
amountValue: inputVal,
|
|
amountValue: inputVal,
|
|
@@ -299,7 +317,11 @@ const onDepositAmountInput = async (params = {}) => {
|
|
if(res.code == 0) {
|
|
if(res.code == 0) {
|
|
let {feeAmountValue, feeDesc} = res.data;
|
|
let {feeAmountValue, feeDesc} = res.data;
|
|
finalAmountData.value = res.data;
|
|
finalAmountData.value = res.data;
|
|
- depositDesc.value = `Charge Fee:${feeAmountValue} USD(${feeDesc})`;
|
|
|
|
|
|
+ if(inputVal === 0) {
|
|
|
|
+ depositDesc.value = `${feeDesc}`;
|
|
|
|
+ } else {
|
|
|
|
+ depositDesc.value = `Charge Fee:${feeAmountValue} USD(${feeDesc})`;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|