瀏覽代碼

Merge branch 'dev_1.1.7' of https://git.yishihui.com/DeNet/de-net into dev_1.1.7

zhangwei 2 年之前
父節點
當前提交
038746fe75
共有 1 個文件被更改,包括 2 次插入2 次删除
  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;
     let unitAmount = baseFormData.amountValue / baseFormData.totalCount;
+    setUpGainAmountUsdValue({totalAmount: baseFormData.amountValue, unitPrice: unitAmount});
     if(currentCurrencyInfo.value.currencyCode != 'USD') {
     if(currentCurrencyInfo.value.currencyCode != 'USD') {
         unitAmount = calcToken2UsdEstimate({amount: unitAmount, usdPrice: currentCurrencyInfo.value.usdPrice });
         unitAmount = calcToken2UsdEstimate({amount: unitAmount, usdPrice: currentCurrencyInfo.value.usdPrice });
     }
     }
 
 
-    setUpGainAmountUsdValue({totalAmount: baseFormData.amountValue, unitPrice: unitAmount});
     return unitAmount;
     return unitAmount;
 };
 };
 
 
@@ -1489,7 +1489,7 @@ const setUpGainAmountUsdValue = (params) => {
     if(!currencyCode) return;
     if(!currencyCode) return;
     upGainCalculate({
     upGainCalculate({
         params: {
         params: {
-            amountValue: totalAmount,
+            amountValue: +totalAmount,
             currencyUsdPrice: usdPrice,
             currencyUsdPrice: usdPrice,
             fansUnitAmountValue: unitPrice
             fansUnitAmountValue: unitPrice
         }
         }