Browse Source

修改合约收益率没有颜色

master
liaoxinyu 9 months ago
parent
commit
d2dee94697
  1. 8
      pages/exchange/contract-history.vue
  2. 11
      pages/exchange/open-position.vue

8
pages/exchange/contract-history.vue

@ -47,7 +47,7 @@
</div>
<div class="row d-flex m-y-mini justify-between">
<div class="label fn-sm">{{$t('contract.c7')}}</div>
<div class="color-light">{{item.profit*1||'--'}}</div>
<div class="color-light" :class="item.profit>0?'increace1':item.profit<0?'decreace1':''">{{item.profit*1||'--'}}</div>
</div>
<div class="row d-flex m-y-mini justify-between">
<div class="label fn-sm">{{$t('contract.b3')}}</div>
@ -404,4 +404,10 @@ export default {
/deep/ .share.vant-popup-index{
z-index: 100;
}
.increace1{
color: #60c08c !important;
}
.decreace1{
color: #ea3131 !important;
}
</style>

11
pages/exchange/open-position.vue

@ -472,7 +472,7 @@
<view class="w-50 fn-left">
<view class="label">{{ $t("option.b6") }}</view>
<view class="color-light"
:class="item.unRealProfit>0?'increace':item.unRealProfit<0?'decreace':''">
:class="item.unRealProfit>0?'increace1':item.unRealProfit<0?'decreace1':''">
{{item.unRealProfit}}
</view>
</view>
@ -482,7 +482,7 @@
</view> -->
<view class="w-50 fn-right">
<view class="label">{{ $t("contract.h0") }}</view>
<view class="color-light" :class="item.unRealProfit>0?'color-buy':'color-sell'">
<view class="color-light" :class="item.unRealProfit>0?'increace1':item.unRealProfit<0?'decreace1':''">
{{item.profitRate}}
</view>
</view>
@ -1959,4 +1959,11 @@ export default {
.but_text {
font-size: 14px;
}
.increace1{
color: #60c08c !important;
}
.decreace1{
color: #ea3131 !important;
}
</style>s

Loading…
Cancel
Save