Bibi.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. <template>
  2. <div class="contract">
  3. <div class="coin-head">
  4. <div class="name">
  5. <div class="name-text pf400 fs12 fc666666">交易对</div>
  6. <div class="list-sort">
  7. <div class="sort-up">
  8. <img src="../../assets/icon/index/Triangle.svg" alt="" />
  9. </div>
  10. <div class="sort-bottom">
  11. <img src="../../assets/icon/index/Triangle 2.svg" alt="" />
  12. </div>
  13. </div>
  14. </div>
  15. <div class="name price">
  16. <div class="name-text pf400 fs12 fc666666">最新价</div>
  17. <div class="list-sort">
  18. <div class="sort-up">
  19. <img src="../../assets/icon/index/Triangle.svg" alt="" />
  20. </div>
  21. <div class="sort-bottom">
  22. <img src="../../assets/icon/index/Triangle 2.svg" alt="" />
  23. </div>
  24. </div>
  25. </div>
  26. <div class="name today">
  27. <div class="name-text pf400 fs12 fc666666">今日涨跌幅</div>
  28. <div class="list-sort">
  29. <div class="sort-up">
  30. <img src="../../assets/icon/index/Triangle.svg" alt="" />
  31. </div>
  32. <div class="sort-bottom">
  33. <img src="../../assets/icon/index/Triangle 2.svg" alt="" />
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. <div class="coin-body">
  39. <div class="body-item" v-for="(item, index) in 10" :key="index">
  40. <div class="item-left">
  41. <div class="coin-img">
  42. <img src="../../assets/img/index/Frame 7.svg" alt="" />
  43. </div>
  44. <div class="coin-name">
  45. <div class="upper-name pf500 fs14 fc2C3131">Bitcoin</div>
  46. <div class="letter-name pf400 fs10 fcA9A9A9">BTC</div>
  47. </div>
  48. <div class="coin-echars"></div>
  49. <div class="coin-price">
  50. <div class="upper-price pf500 fs14 fc2C3131">48.503.12</div>
  51. <div class="letter-price pf400 fs10 fcA9A9A9">¥ 4250.00</div>
  52. </div>
  53. </div>
  54. <div class="item-right pf500 fs12 fcFFFFFF">+2.18%</div>
  55. </div>
  56. </div>
  57. </div>
  58. </template>
  59. <script setup>
  60. </script>
  61. <style lang="less" scoped>
  62. .contract {
  63. margin-top: 11px;
  64. .coin-head {
  65. display: flex;
  66. flex-direction: row;
  67. justify-content: flex-start;
  68. align-items: center;
  69. margin-top: 6px;
  70. width: 100%;
  71. height: 24px;
  72. .name {
  73. display: flex;
  74. flex-direction: row;
  75. justify-content: flex-start;
  76. align-items: center;
  77. height: 24px;
  78. .list-sort {
  79. display: flex;
  80. flex-direction: column;
  81. justify-content: flex-start;
  82. margin-left: 4px;
  83. width: 8px;
  84. height: 16px;
  85. .sort-up,
  86. .sort-bottom {
  87. display: flex;
  88. flex-direction: row;
  89. justify-content: center;
  90. align-items: center;
  91. width: 8px;
  92. height: 8px;
  93. img {
  94. width: 8px;
  95. height: 4px;
  96. }
  97. }
  98. }
  99. }
  100. .price {
  101. margin-left: 128px;
  102. }
  103. .today {
  104. margin-left: 47px;
  105. }
  106. }
  107. .coin-body {
  108. margin-top: 9px;
  109. width: 100%;
  110. .body-item {
  111. display: flex;
  112. flex-direction: row;
  113. justify-content: flex-start;
  114. align-items: center;
  115. margin-top: 23.5px;
  116. width: 100%;
  117. height: 38px;
  118. &:nth-child(1) {
  119. margin-top: 0;
  120. }
  121. .item-left {
  122. display: flex;
  123. flex-direction: row;
  124. justify-content: flex-start;
  125. align-items: center;
  126. width: 276px;
  127. height: 100%;
  128. .coin-img {
  129. width: 32px;
  130. height: 32px;
  131. img {
  132. width: 32px;
  133. height: 32px;
  134. }
  135. }
  136. .coin-name {
  137. margin-left: 10px;
  138. width: 85px;
  139. height: 34px;
  140. .upper-name {
  141. height: 20px;
  142. line-height: 20px;
  143. }
  144. .letter-name {
  145. height: 14px;
  146. line-height: 14px;
  147. }
  148. }
  149. .coin-echars {
  150. width: 60px;
  151. height: 35px;
  152. }
  153. .coin-price {
  154. margin-left: 13px;
  155. width: 75px;
  156. height: 38px;
  157. .upper-price {
  158. height: 20px;
  159. line-height: 20px;
  160. text-align: right;
  161. }
  162. .letter-price {
  163. height: 16px;
  164. line-height: 16px;
  165. text-align: right;
  166. }
  167. }
  168. }
  169. .item-right {
  170. margin-left: 8px;
  171. width: 61px;
  172. height: 25px;
  173. line-height: 25px;
  174. text-align: center;
  175. background: #45b26b;
  176. border-radius: 5px;
  177. }
  178. }
  179. }
  180. }
  181. </style>