wenliming 2 years ago
parent
commit
2bc66a486d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/view/iframe/publish/give-dialog.vue

+ 2 - 2
src/view/iframe/publish/give-dialog.vue

@@ -1475,11 +1475,11 @@ const calcFansUnitAmount = () => {
     }
 
     let unitAmount = baseFormData.amountValue / baseFormData.totalCount;
+    setUpGainAmountUsdValue({totalAmount: baseFormData.amountValue, unitPrice: unitAmount});
     if(currentCurrencyInfo.value.currencyCode != 'USD') {
         unitAmount = calcToken2UsdEstimate({amount: unitAmount, usdPrice: currentCurrencyInfo.value.usdPrice });
     }
 
-    setUpGainAmountUsdValue({totalAmount: baseFormData.amountValue, unitPrice: unitAmount});
     return unitAmount;
 };
 
@@ -1489,7 +1489,7 @@ const setUpGainAmountUsdValue = (params) => {
     if(!currencyCode) return;
     upGainCalculate({
         params: {
-            amountValue: totalAmount,
+            amountValue: +totalAmount,
             currencyUsdPrice: usdPrice,
             fansUnitAmountValue: unitPrice
         }