From bdc89b9c6ba402b4dccb40d0a0a3fb50f1c9a455 Mon Sep 17 00:00:00 2001 From: liaoxinyu Date: Fri, 24 Jan 2025 16:40:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=88=E7=BA=A6=E7=9B=88?= =?UTF-8?q?=E4=BA=8F=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 | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/pages/exchange/contract-history.vue b/pages/exchange/contract-history.vue index 1ba3965..fc27124 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')}}
@@ -360,7 +360,15 @@ export default { myCanvas.width=0 myCanvas.height=0 }, - + profitColor(item){ + if(item && item.profit && item.profit.indexOf('-') === 0){ + return 'red' + }else if(item.profit == null){ + return 'black' + }else{ + return 'green' + } + } }, mounted() { // this.generalizeInfo() @@ -404,4 +412,13 @@ export default { /deep/ .share.vant-popup-index{ z-index: 100; } + .red{ + color: #ff231f; + } + .green{ + color: #53b987; + } + .black{ + color: white; + }