From d2dee946974c2fa1c77e97d40e3288ed8a24c4a6 Mon Sep 17 00:00:00 2001 From: liaoxinyu Date: Mon, 24 Mar 2025 12:30:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=88=E7=BA=A6=E6=94=B6?= =?UTF-8?q?=E7=9B=8A=E7=8E=87=E6=B2=A1=E6=9C=89=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/exchange/contract-history.vue | 8 +++++++- pages/exchange/open-position.vue | 11 +++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/pages/exchange/contract-history.vue b/pages/exchange/contract-history.vue index a7d69c2..9943caa 100644 --- a/pages/exchange/contract-history.vue +++ b/pages/exchange/contract-history.vue @@ -47,7 +47,7 @@
{{$t('contract.c7')}}
-
{{item.profit*1||'--'}}
+
{{item.profit*1||'--'}}
{{$t('contract.b3')}}
@@ -404,4 +404,10 @@ export default { /deep/ .share.vant-popup-index{ z-index: 100; } + .increace1{ + color: #60c08c !important; + } + .decreace1{ + color: #ea3131 !important; + } diff --git a/pages/exchange/open-position.vue b/pages/exchange/open-position.vue index dded705..5edf828 100644 --- a/pages/exchange/open-position.vue +++ b/pages/exchange/open-position.vue @@ -472,7 +472,7 @@ {{ $t("option.b6") }} + :class="item.unRealProfit>0?'increace1':item.unRealProfit<0?'decreace1':''"> {{item.unRealProfit}} @@ -482,7 +482,7 @@ --> {{ $t("contract.h0") }} - + {{item.profitRate}} @@ -1959,4 +1959,11 @@ export default { .but_text { font-size: 14px; } + +.increace1{ + color: #60c08c !important; +} +.decreace1{ + color: #ea3131 !important; +} s