소스 검색

修改数量显示逻辑

龚成明 2 년 전
부모
커밋
8643d8ae7e
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/components/viewer/table/TradeInfoDetails.vue

+ 3 - 3
src/components/viewer/table/TradeInfoDetails.vue

@@ -4,16 +4,16 @@
       <div v-for="trade in item.transferList">
         <v-row>
           <!--token symbol-->
+          <!-- 没有名字的 -->
           <v-chip v-if="!trade.tokenSymbol"
                   label class="ma-2 tradeLabel" @click="httpKit.jumpToExplorer(trade.token, 'token')">
-            <!-- 没有名字的 -->
             <div class="tokenName">{{ '**' + hashKit.headAndEnd2(trade.token) }}</div>
-            <div class="tokenAmount">{{ numKit.getSubFloat(trade.amount, 4) }} </div>
+            <div class="tokenAmount">{{ trade.amount }} </div>
           </v-chip>
+          <!-- 有名字的和Ethereum/EthereumPow -->
           <v-chip v-else
                   label class="ma-2 tradeLabel" :color="hashKit.generateColorByHash(trade.token)"
                   @click="httpKit.jumpToExplorer(trade.token, 'token')">
-            <!-- 有名字的和Ethereum/EthereumPow -->
             <div class="tokenName">{{ trade.tokenSymbol === '' ? '[no name]' : trade.tokenSymbol }}</div>
             <div class="tokenAmount">{{ numKit.getSubFloat(trade.amount, 4) }}</div>
           </v-chip>