EntrustingOrder.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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. padding: 0 15px;
  33. .order-header {
  34. display: flex;
  35. flex-direction: row;
  36. justify-content: flex-start;
  37. margin-top: 6px;
  38. width: 100%;
  39. height: 24px;
  40. .header-buy {
  41. width: 46px;
  42. height: 24px;
  43. line-height: 24px;
  44. text-align: left;
  45. }
  46. .header-number {
  47. width: 65px;
  48. height: 24px;
  49. line-height: 24px;
  50. text-align: left;
  51. }
  52. .header-price {
  53. width: 133px;
  54. height: 24px;
  55. line-height: 24px;
  56. text-align: center;
  57. }
  58. .header-number2 {
  59. width: 65px;
  60. height: 24px;
  61. line-height: 24px;
  62. text-align: right;
  63. }
  64. .header-sell {
  65. width: 40px;
  66. height: 24px;
  67. line-height: 24px;
  68. text-align: right;
  69. }
  70. }
  71. .order-body {
  72. display: flex;
  73. flex-direction: column;
  74. justify-content: flex-start;
  75. .order-item {
  76. display: flex;
  77. flex-direction: row;
  78. justify-content: flex-start;
  79. .item-buy {
  80. width: 46px;
  81. height: 21px;
  82. line-height: 21px;
  83. text-align: left;
  84. }
  85. .item-number {
  86. width: 50px;
  87. height: 21px;
  88. line-height: 21px;
  89. text-align: left;
  90. }
  91. .item-price {
  92. display: flex;
  93. flex-direction: row;
  94. justify-content: center;
  95. align-items: center;
  96. width: 163px;
  97. height: 21px;
  98. text-align: center;
  99. .price-second {
  100. margin-left: 9px;
  101. }
  102. }
  103. .item-number2 {
  104. width: 50px;
  105. height: 21px;
  106. line-height: 21px;
  107. text-align: right;
  108. }
  109. .item-sell {
  110. width: 40px;
  111. height: 21px;
  112. line-height: 21px;
  113. text-align: right;
  114. }
  115. }
  116. }
  117. .buy-sell {
  118. display: flex;
  119. flex-direction: row;
  120. justify-content: space-between;
  121. margin-top: 15px;
  122. width: 345px;
  123. height: 38px;
  124. .buy-btn {
  125. width: 164px;
  126. height: 38px;
  127. line-height: 38px;
  128. text-align: center;
  129. background: #45b26b;
  130. border-radius: 6px;
  131. }
  132. .sell-btn {
  133. width: 164px;
  134. height: 38px;
  135. line-height: 38px;
  136. text-align: center;
  137. background: #df384c;
  138. border-radius: 6px;
  139. }
  140. }
  141. }
  142. </style>