Skip to content
Permalink
Browse files

fix round coin number

  • Loading branch information...
tunght91 committed Dec 19, 2017
1 parent 2626eb8 commit 6fa91ef5903d00ff4d4a7877cd3cb2382d71ff64
Showing with 6 additions and 6 deletions.
  1. +6 −6 app/App.vue
@@ -61,10 +61,10 @@
<div class="sumaryCoin">
<h3>You have total:</h3>
<h1>
<strong>{{(Math.floor((tmcSidechain + tmcMainchain)*100)/100).toFixed(2)}}</strong>
<strong>{{(tmcSidechain + tmcMainchain).toFixed(2)}}</strong>
<small>TMC</small>
<span v-if="expandSumaryCoin">
= {{tmcSidechain}} <small>TMC in Tomochain</small> + {{tmcMainchain}} <small>TMC in Ethereum</small>
= {{tmcSidechain.toFixed(2)}} <small>TMC in Tomochain</small> + {{tmcMainchain.toFixed(2)}} <small>TMC in Ethereum</small>
</span>
<md-button class="md-icon-button" @click="toggleExpandSumaryCoin">
<md-icon v-if="expandSumaryCoin">keyboard_arrow_left</md-icon>
@@ -142,7 +142,7 @@
<md-table md-card>
<md-table-row>
<md-table-head style="width: 230px">Time</md-table-head>
<md-table-head>Type</md-table-head>
<md-table-head style="width: 150px">Type</md-table-head>
<md-table-head>Detail</md-table-head>
<md-table-head md-numeric>TMC in Tomochain</md-table-head>
<md-table-head md-numeric>TMC in Ethereum</md-table-head>
@@ -163,15 +163,15 @@
<md-table-cell>{{e.msg}}</md-table-cell>
<md-table-cell md-numeric>
<span class="color-side-chain">
{{e.tmcSidechain}}
{{(e.tmcSidechain || tmcSidechain) .toFixed(2)}}
</span>
</md-table-cell>
<md-table-cell md-numeric>
<span class="color-main-chain">
{{e.tmcMainchain}}
{{(e.tmcMainchain || tmcMainchain).toFixed(2)}}
</span>
</md-table-cell>
<md-table-cell md-numeric>{{e.total}}</md-table-cell>
<md-table-cell md-numeric>{{(e.total || (tmcSidechain + tmcMainchain)).toFixed(2)}}</md-table-cell>
</md-table-row>
</md-table>
</div>

0 comments on commit 6fa91ef

Please sign in to comment.
You can’t perform that action at this time.