1
jhzh
2025-08-18 4d6ec870bd19ff1a2cea86102a56a02c477f4c41
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<template>
  <div id="profitLoss">
    <assets-head :title="$t('订单详情')"></assets-head>
    <div v-for="(item,index) in list" :key="index" class="box-border px-33 ">
      <div class="flex flex-col justify-center items-center">
        <div class="font-32 font-400 my-42">{{ $t('盈亏金额') }}(USDT)</div>
        <div class="font-66" :class="item.Profit_loss_amount / 1 >0 ? 'text-green' : 'text-red'">
          {{item.Profit_loss_amount / 1 >0 ?'+' + item.Profit_loss_amount : item.Profit_loss_amount}}</div>
      </div>
      <div class="mt-90">
        <div class="flex justify-between mb-70">
          <div class="font-31 font-400 cl">{{ $t('订单号') }}</div>
          <div class="font-31 font-400 cl33">{{item.order_number}}</div>
        </div>
        <div class="flex justify-between mb-70">
          <div class="font-31 font-400 cl">{{ $t('开仓时间') }}</div>
          <div class="font-31 font-400 cl33">{{item.Opening_time}}</div>
        </div>
        <div class="flex justify-between mb-70">
          <div class="font-31 font-400 cl">{{ $t('平仓时间') }}</div>
          <div class="font-31 font-400 cl33">{{item.Closing_time}}</div>
        </div>
        <div class="flex justify-between mb-70">
          <div class="font-31 font-400 cl">{{ $t('开仓金额') }}</div>
          <div class="font-31 font-400 cl33">{{item.Amount_open_position}}</div>
        </div>
        <div class="flex justify-between mb-70">
          <div class="font-31 font-400 cl">{{ $t('可平金额') }}</div>
          <div class="font-31 font-400 cl33">{{item.Balance_amount}}</div>
        </div>
        <div class="flex justify-between mb-70">
          <div class="font-31 font-400 cl">{{ $t('保证金') }}</div>
          <div class="font-31 font-400 cl33">{{item.Margin}}</div>
        </div>
        <div class="flex justify-between mb-70">
          <div class="font-31 font-400 cl">{{ $t('建仓成本') }}</div>
          <div class="font-31 font-400 cl33">{{item.Cost_opening_warehouse}}</div>
        </div>
        <div class="flex justify-between mb-70">
          <div class="font-31 font-400 cl">{{ $t('平仓价格') }}</div>
          <div class="font-31 font-400 cl33">{{item.Closing_price}}</div>
        </div>
        <div class="flex justify-between mb-70">
          <div class="font-31 font-400 cl">{{ $t('手续费') }}</div>
          <div class="font-31 font-400 cl33">{{item.handling_fee}}</div>
        </div>
      </div>
    </div>
 
  </div>
</template>
 
<script>
import assetsHead from '@/components/Transform/assets-head/index.vue';
export default {
  name: "profitLoss",
  components:{
    assetsHead
  },
  data () {
    return {
      list:[
        {
          Profit_loss_amount:'20',
          order_number:'5453132198456132',
          Opening_time:'2022.03.02 12:00:00',
          Closing_time:'2022.03.02 12:00:00',
          Amount_open_position:'1000.00',
          Balance_amount:'1000.00',
          Margin:'1000.00',
          Cost_opening_warehouse:'447.32',
          Closing_price:'321.00',
          handling_fee:'30.00 USDT',
        }
      ]
    }
  }
}
</script>
 
<style lang="scss" scoped>
.cl {
  color: $text_color5;
}
.cl33 {
  color: $text_color4;
}
</style>