Browse Source

修改合约收益率没有颜色

master
liaoxinyu 10 months ago
parent
commit
9b92b00b7b
  1. 10
      src/views/contract/history-commission.vue
  2. 4
      src/views/contract/hold-position.vue

10
src/views/contract/history-commission.vue

@ -28,7 +28,7 @@
<td>{{item.avg_price||'--'}}/{{ item.entrust_price || "--" }}</td>
<td>{{ item.margin * 1 }}</td>
<td>{{ item.fee * 1 }}</td>
<td>
<td :class="item.profit>0?'increace':item.profit<0?'decreace':''">
{{item.profit||'--'}}
</td>
<!-- <td>
@ -185,3 +185,11 @@ export default {
}
};
</script>
<style scoped>
.increace{
color: #53b987;
}
.decreace{
color: #ff231f;
}
</style>

4
src/views/contract/hold-position.vue

@ -52,7 +52,7 @@
<td>{{ item.realtimePrice }}</td>
<td>{{ item.flatPrice }}</td>
<td :class="item.unRealProfit>0?'increace':item.unRealProfit<0?'decreace':''">{{ (parseFloat(item.unRealProfit)).toFixed(2) }}</td>
<td>{{ item.profitRate }}</td>
<td :class="item.unRealProfit>0?'increace':item.unRealProfit<0?'decreace':''">{{ item.profitRate }}</td>
<td>{{ item.tpPrice || "--" }}/{{ item.slPrice || "--" }}</td>
<td>
<button
@ -624,7 +624,7 @@ export default {
},
};
</script>
<style scoped">
<style scoped>
.increace{
color: #53b987;
}

Loading…
Cancel
Save