HistoricalEntrustment.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <template>
  2. <!-- 历史委托 -->
  3. <div class="history-entrust">
  4. <div class="details-item" v-for="(item, index) in 2" :key="index">
  5. <div class="item-name">
  6. <div class="name-left">
  7. <img src="../../../assets/icon/coin/bnb.svg" alt="" class="left-coin" />
  8. <div class="name-area">
  9. <div class="pf500 fs16 fc121212">BTC/USDT 永续</div>
  10. <div class="name-flag">
  11. <div class="flag-buy pf500 fs10 fcFFFFFF">买入</div>
  12. <div class="flag-cang pf500 fs10 fcFFFFFF">逐仓 20X</div>
  13. <div class="flag-price pf500 fs10 fcFFFFFF">市价</div>
  14. </div>
  15. </div>
  16. </div>
  17. <div class="name-right pf500 fs12 fcFFFFFF">已失效</div>
  18. </div>
  19. <div class="item-line"></div>
  20. <div class="item-price">
  21. <div class="price-top">
  22. <div class="item-yingkui">
  23. <div class="pf500 fs12 fcA8A8A8">未实现盈亏(USDT)</div>
  24. <div class="pf500 fs12 fc45B26B">+0.2015 USDT</div>
  25. </div>
  26. <div class="item-yingkui">
  27. <div class="pf500 fs12 fcA8A8A8">下单时间</div>
  28. <div class="pf500 fs12 fc333333">2025-11-04, 16:30</div>
  29. </div>
  30. </div>
  31. <div class="price-bottom">
  32. <div class="price-item">
  33. <div class="pf500 fs12 fcA8A8A8">委托总量</div>
  34. <div class="pf500 fs12 fc333333">50.215 USDT</div>
  35. </div>
  36. <div class="price-item">
  37. <div class="pf500 fs12 fcA8A8A8">成交价格</div>
  38. <div class="pf500 fs12 fc333333">0.215 USDT</div>
  39. </div>
  40. <div class="price-item">
  41. <div class="pf500 fs12 fcA8A8A8">已成交量</div>
  42. <div class="pf500 fs12 fc333333">5.215 USDT</div>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. </template>
  49. <script setup></script>
  50. <style lang="less" scoped>
  51. .history-entrust {
  52. display: flex;
  53. flex-direction: column;
  54. justify-content: flex-start;
  55. align-items: center;
  56. width: 100%;
  57. .details-item {
  58. display: flex;
  59. flex-direction: column;
  60. justify-content: flex-start;
  61. align-items: center;
  62. margin-top: 10px;
  63. width: 345px;
  64. height: 155px;
  65. border: 1px solid #ebebeb;
  66. border-radius: 8px;
  67. .item-name {
  68. display: flex;
  69. flex-direction: row;
  70. justify-content: space-between;
  71. align-items: center;
  72. margin-top: 10px;
  73. width: 320px;
  74. height: 40px;
  75. .name-left {
  76. display: flex;
  77. flex-direction: row;
  78. justify-content: flex-start;
  79. height: 40px;
  80. .left-coin {
  81. width: 40px;
  82. height: 40px;
  83. }
  84. .name-area {
  85. display: flex;
  86. flex-direction: column;
  87. justify-content: space-evenly;
  88. margin-left: 8px;
  89. height: 40px;
  90. .name-flag {
  91. display: flex;
  92. flex-direction: row;
  93. justify-content: flex-start;
  94. height: 15px;
  95. .flag-buy {
  96. width: 33px;
  97. height: 15px;
  98. line-height: 15px;
  99. text-align: center;
  100. background: #45b26b;
  101. border-radius: 3px;
  102. }
  103. .flag-cang {
  104. margin-left: 2px;
  105. width: 49px;
  106. height: 15px;
  107. line-height: 15px;
  108. text-align: center;
  109. background: #a8a8a8;
  110. border-radius: 3px;
  111. }
  112. .flag-price {
  113. margin-left: 2px;
  114. width: 33px;
  115. height: 15px;
  116. line-height: 15px;
  117. text-align: center;
  118. background: #a8a8a8;
  119. border-radius: 3px;
  120. }
  121. }
  122. }
  123. }
  124. .name-right {
  125. width: 56px;
  126. height: 24px;
  127. line-height: 24px;
  128. text-align: center;
  129. border-radius: 5px;
  130. background: #a8a8a8;
  131. }
  132. }
  133. .item-line {
  134. margin-top: 8px;
  135. width: 320px;
  136. height: 1.5px;
  137. background: #e9e9e9;
  138. }
  139. .item-price {
  140. margin-top: 6px;
  141. width: 320px;
  142. height: 85px;
  143. .price-top {
  144. .item-yingkui {
  145. display: flex;
  146. flex-direction: row;
  147. justify-content: space-between;
  148. align-items: center;
  149. width: 320px;
  150. height: 20px;
  151. }
  152. }
  153. .price-bottom {
  154. display: flex;
  155. flex-direction: row;
  156. justify-content: space-between;
  157. margin-top: 5px;
  158. width: 100%;
  159. height: 38px;
  160. .price-item {
  161. display: flex;
  162. flex-direction: column;
  163. justify-content: space-evenly;
  164. align-items: center;
  165. height: 38px;
  166. &:nth-child(1),
  167. &:nth-child(3) {
  168. width: 80px;
  169. }
  170. &:nth-child(2) {
  171. width: 160px;
  172. }
  173. }
  174. }
  175. }
  176. }
  177. }
  178. </style>