LatestTransactions.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <template>
  2. <div class="latest-order">
  3. <div class="order-header pf400 fs12 fc666666">
  4. <div class="header-buy">时间</div>
  5. <div class="header-number">方向</div>
  6. <div class="header-price">价格(AVAX)</div>
  7. <div class="header-number2">数量(AVAX)</div>
  8. </div>
  9. <div class="order-body">
  10. <div class="order-item" v-for="(item, index) in 15" :key="index">
  11. <div class="item-buy fs400 fs12 fcA8A8A8">13:44:25</div>
  12. <div class="item-number fs400 fs12 fc45B26B">买入</div>
  13. <div class="item-price fs400 fs12">
  14. <div class="fc444444">1.2505</div>
  15. </div>
  16. <div class="item-number2 fs400 fs12 fc444444">40,166.82</div>
  17. </div>
  18. </div>
  19. <div class="buy-sell pf500 fs16 fcFFFFFF">
  20. <div class="buy-btn">买入(做多)</div>
  21. <div class="sell-btn">卖出(做空)</div>
  22. </div>
  23. </div>
  24. </template>
  25. <script setup></script>
  26. <style lang="less" scoped>
  27. .latest-order {
  28. width: 100%;
  29. .order-header {
  30. display: flex;
  31. flex-direction: row;
  32. justify-content: flex-start;
  33. margin-top: 6px;
  34. width: 100%;
  35. height: 24px;
  36. .header-buy {
  37. width: 25%;
  38. height: 24px;
  39. line-height: 24px;
  40. text-align: left;
  41. }
  42. .header-number {
  43. width: 25%;
  44. height: 24px;
  45. line-height: 24px;
  46. text-align: left;
  47. }
  48. .header-price {
  49. width: 25%;
  50. height: 24px;
  51. line-height: 24px;
  52. text-align: left;
  53. }
  54. .header-number2 {
  55. width: 25%;
  56. height: 24px;
  57. line-height: 24px;
  58. text-align: right;
  59. }
  60. }
  61. .order-body {
  62. display: flex;
  63. flex-direction: column;
  64. justify-content: flex-start;
  65. .order-item {
  66. display: flex;
  67. flex-direction: row;
  68. justify-content: flex-start;
  69. .item-buy {
  70. width: 25%;
  71. height: 21px;
  72. line-height: 21px;
  73. text-align: left;
  74. }
  75. .item-number {
  76. width: 25%;
  77. height: 21px;
  78. line-height: 21px;
  79. text-align: left;
  80. }
  81. .item-price {
  82. width: 25%;
  83. height: 21px;
  84. text-align: left;
  85. }
  86. .item-number2 {
  87. width: 25%;
  88. height: 21px;
  89. line-height: 21px;
  90. text-align: right;
  91. }
  92. }
  93. }
  94. .buy-sell {
  95. display: flex;
  96. flex-direction: row;
  97. justify-content: space-between;
  98. margin-top: 15px;
  99. width: 345px;
  100. height: 38px;
  101. .buy-btn {
  102. width: 164px;
  103. height: 38px;
  104. line-height: 38px;
  105. text-align: center;
  106. background: #45b26b;
  107. border-radius: 6px;
  108. }
  109. .sell-btn {
  110. width: 164px;
  111. height: 38px;
  112. line-height: 38px;
  113. text-align: center;
  114. background: #df384c;
  115. border-radius: 6px;
  116. }
  117. }
  118. }
  119. </style>