Option.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <template>
  2. <!-- 期权 -->
  3. <div class="option">
  4. <div class="asset-total">
  5. <div class="asset-title pf400 fs16 fc1F2937">期权总资产(USDT)</div>
  6. <div class="asset-number pf600 fs32 fc1F2937">1,125,158.00</div>
  7. <div class="asset-approximately pf400 fs16 fcDF384C">≈35,458.00</div>
  8. <div class="asset-revenue">
  9. <div class="asset-left">
  10. <div class="text pf400 fs12 fc6A7187">今日盈亏(USDT)</div>
  11. <div class="number pf400 fs16 fc061237">5,678.00</div>
  12. </div>
  13. <div class="asset-right">
  14. <div class="text pf400 fs12 fc6A7187">盈亏率(%)</div>
  15. <div class="number-two pf400 fs16 fc061237">5.25</div>
  16. </div>
  17. </div>
  18. </div>
  19. <div class="submit pf600 fs14 fcFFFFFF">交易</div>
  20. <div class="notifi-classifi">
  21. <div class="classifi-left">
  22. <div class="pf600 fs14 fc121212">持有仓位(2)</div>
  23. <div class="sys-notifi pf600 fs14 fcA8A8A8">当前委托(0)</div>
  24. </div>
  25. <div class="classifi-right pf600 fs14 fcA8A8A8">
  26. <img src="@/assets/icon/index/history.svg" alt="" />全部
  27. </div>
  28. </div>
  29. </div>
  30. </template>
  31. <script setup></script>
  32. <style lang="less" scoped>
  33. .option {
  34. display: flex;
  35. flex-direction: column;
  36. justify-content: flex-start;
  37. align-items: center;
  38. margin-bottom: 30px;
  39. width: 100%;
  40. .asset-total {
  41. display: flex;
  42. flex-direction: column;
  43. justify-content: flex-start;
  44. margin-top: 16px;
  45. width: 343px;
  46. .asset-title {
  47. display: flex;
  48. flex-direction: row;
  49. justify-content: flex-start;
  50. align-items: center;
  51. height: 22px;
  52. .eye-close {
  53. margin-left: 5px;
  54. width: 16px;
  55. height: 16px;
  56. }
  57. }
  58. .asset-number {
  59. margin-top: 3px;
  60. height: 44px;
  61. line-height: 44px;
  62. }
  63. .asset-approximately {
  64. margin-top: 1px;
  65. height: 22px;
  66. line-height: 22px;
  67. }
  68. .asset-revenue {
  69. display: flex;
  70. flex-direction: row;
  71. justify-content: space-between;
  72. margin-top: 6px;
  73. height: 44px;
  74. .asset-left,
  75. .asset-right {
  76. height: 100%;
  77. .text {
  78. height: 20px;
  79. line-height: 20px;
  80. letter-spacing: 0.3px;
  81. }
  82. .number {
  83. margin-top: 3px;
  84. height: 24px;
  85. line-height: 24px;
  86. }
  87. .number-two {
  88. margin-top: 3px;
  89. height: 24px;
  90. line-height: 24px;
  91. text-align: end;
  92. }
  93. }
  94. }
  95. }
  96. .submit {
  97. margin-top: 16px;
  98. width: 311px;
  99. height: 40px;
  100. line-height: 40px;
  101. text-align: center;
  102. border-radius: 100px;
  103. background: #df384c;
  104. letter-spacing: 0.2px;
  105. }
  106. .notifi-classifi {
  107. display: flex;
  108. flex-direction: row;
  109. justify-content: space-between;
  110. align-items: center;
  111. margin-top: 15px;
  112. width: 349px;
  113. height: 24px;
  114. .classifi-left {
  115. display: flex;
  116. flex-direction: row;
  117. justify-content: flex-start;
  118. align-items: flex-end;
  119. height: 24px;
  120. .sys-notifi {
  121. margin-left: 29px;
  122. }
  123. }
  124. .classifi-right {
  125. display: flex;
  126. flex-direction: row;
  127. justify-content: flex-start;
  128. align-items: end;
  129. height: 24px;
  130. img {
  131. margin-right: 4px;
  132. }
  133. }
  134. }
  135. }
  136. </style>