1
zzzz
2024-03-23 b35e9e4aebcec3b36ccc7cab4639ff2ad74aea97
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<template>
  <div class="item-card-box">
    <div class="total-assets">
      <div class="left">
        <div class="total-name">泰股總資產 ({{ activeObj.laber }})</div>
        <div class="total-data">0.0000</div>
        <div class="total-data-huansuan">≈ $0.0000</div>
      </div>
      <div class="right">全部平仓</div>
    </div>
 
    <div class="item-card-itembox">
      <div class="item">
        <div class="itembox-data">-23.1689</div>
        <div v-if="activeObj.laber !== 'USD'" class="number-text">
          ≈ $0.0000
        </div>
        <div class="itembox-name">浮動盈虧 ({{ activeObj.laber }})</div>
      </div>
      <div class="item">
        <div class="itembox-data">-23.1689</div>
        <div v-if="activeObj.laber !== 'USD'" class="number-text">
          ≈ $0.0000
        </div>
        <div class="itembox-name">浮動盈虧 ({{ activeObj.laber }})</div>
      </div>
      <div class="item">
        <div class="itembox-data">-23.1689</div>
        <div v-if="activeObj.laber !== 'USD'" class="number-text">
          ≈ $0.0000
        </div>
        <div class="itembox-name">浮動盈虧 ({{ activeObj.laber }})</div>
      </div>
      <div class="item">
        <div class="itembox-data">-23.1689</div>
        <div v-if="activeObj.laber !== 'USD'" class="number-text">
          ≈ $0.0000
        </div>
        <div class="itembox-name">浮動盈虧 ({{ activeObj.laber }})</div>
      </div>
      <div class="item">
        <div class="itembox-data">-23.1689</div>
        <div v-if="activeObj.laber !== 'USD'" class="number-text">
          ≈ $0.0000
        </div>
        <div class="itembox-name">浮動盈虧 ({{ activeObj.laber }})</div>
      </div>
    </div>
  </div>
</template>
 
<script>
export default {
  props: {
    activeObj: {
      type: Object,
      default: {},
    },
  },
};
</script>
 
<style lang="less" scoped>
.item-card-box {
  width: 100%;
  min-height: 3.52rem;
  margin: 0 auto;
  box-shadow: 0 0.16rem 0.32rem #00b57429;
  border-radius: 0.26667rem;
  margin-top: 0.42667rem;
  padding: 0.32rem 0.4rem;
  box-sizing: border-box;
  background-color: #ff5b96;
  color: #fff;
  .total-assets {
    display: flex;
    justify-content: space-between;
    .left {
      .total-name {
        font-style: normal;
        font-weight: 400;
        font-size: 0.37333rem;
        opacity: 0.8;
      }
      .total-data {
        font-style: normal;
        font-weight: 500;
        font-size: 0.64rem;
        margin-top: 0.05333rem;
      }
      .total-data-huansuan {
        font-family: PingFang SC;
        font-size: 0.32rem;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        word-break: break-all;
      }
    }
    .right {
      border-radius: 0.53333rem;
      background: linear-gradient(130deg, #fff 0%, #f4f4f4 100%);
      box-shadow: 0 0.16rem 0.24rem #0035641a;
      color: #cd3a30;
      text-align: center;
      font-family: PingFang SC;
      font-size: 0.37333rem;
      font-style: normal;
      font-weight: 500;
      min-width: 2.50667rem;
      height: 0.90667rem;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 0.4rem;
    }
  }
}
 
.item-card-itembox {
  display: flex;
  flex-wrap: wrap; /* 自动换行 */
  .item {
    width: 33%;
    // height: 20px;
    min-width: 33%;
    max-width: 33%;
    // background-color: #fff;
    .itembox-data {
      font-style: normal;
      font-weight: 500;
      font-size: 0.37333rem;
      color: #fff;
      margin-top: 0.45333rem;
      word-break: break-all;
    }
    .itembox-name {
      font-style: normal;
      font-weight: 400;
      font-size: 0.32rem;
      color: #fff;
      opacity: 0.8;
      margin-top: 0.13333rem;
    }
    .number-text {
      color: #fff;
      font-family: PingFang SC;
      font-size: 0.32rem;
      font-style: normal;
      font-weight: 400;
      line-height: normal;
      word-break: break-all;
    }
  }
}
</style>