Skip to content
This repository has been archived by the owner on Feb 25, 2019. It is now read-only.

Commit

Permalink
trade color fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
imloama committed Jun 5, 2018
1 parent 009f7ac commit 9e6fcc6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/FullK.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<i class="material-icons k-icon">keyboard_arrow_left</i>
</v-btn>
</div>
<div :class="'flex3 textcenter ' + ( (titleData.change >=0 ^ redUpGreenDown ) ? 'down':'up') ">
<div :class="'flex3 textcenter ' + ( (titleData.change >=0 ^ redUpGreenDown ) ? 'up':'down') ">
<div class="price textcenter">
<span class="price">{{titleData.price}}</span>
<span class="code">{{counter.code}}</span>
Expand Down
2 changes: 1 addition & 1 deletion src/components/K.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<i class="material-icons k-icon">keyboard_arrow_left</i>
</v-btn>
</div>
<div :class="'flex3 textcenter ' + ( (titleData.change >=0 ^ redUpGreenDown) ? 'down':'up') ">
<div :class="'flex3 textcenter ' + ( (titleData.change >=0 ^ redUpGreenDown) ? 'up':'down') ">
<div class="price textcenter">
<span class="price">{{titleData.price}}</span>
<!-- <span class="code">{{counter.code}}</span> -->
Expand Down
6 changes: 3 additions & 3 deletions src/components/KLine.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
* @Author: [email protected]
* @Date: 2018-01-26 15:59:49
* @Last Modified by: [email protected]
* @Last Modified time: 2018-06-04 22:16:33
* @Last Modified time: 2018-06-05 16:54:52
* @License MIT
*/

<template>
<div class="line flex-row" v-if="lineData!=null || !loading">
<div class="flex1">
<div :class="' price textright ' + ((titleData.change >=0 ^ redUpGreenDown)? 'down':'up') ">
<div :class="' price textright ' + ((titleData.change >=0 ^ redUpGreenDown)? 'up':'down') ">
{{titleData.price >= 0 ? (titleData.price>=0.000001 ? Number(titleData.price): titleData.price):''}}</div>
</div>
<div class="flex1">
<div class="rate">
<div v-if="titleData.rate!==null && typeof titleData.rate!=='undefined'" :class="'rate-btn textcenter ' + (( titleData.change >=0 ^ redUpGreenDown)? 'down':'up')">
<div v-if="titleData.rate!==null && typeof titleData.rate!=='undefined'" :class="'rate-btn textcenter ' + (( titleData.change >=0 ^ redUpGreenDown)? 'up':'down')">
<span v-if="titleData.rate>0">+</span>{{titleData.rate}}%
</div>
</div>
Expand Down

0 comments on commit 9e6fcc6

Please sign in to comment.