diff --git a/pages/exchange/contract-history.vue b/pages/exchange/contract-history.vue
index 6aaedd8..51ba5ba 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.startsWith('-')){
+ 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: red;
+ }
+ .green{
+ color: green;
+ }
+ .black{
+ color: black;
+ }