소스 검색

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

zhangwei 3 년 전
부모
커밋
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;
+    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
         }