EntrustingOrder.vue 3.5 KB

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