HotFinancial.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <template>
  2. <!-- 热门理财 -->
  3. <div class="hot-financial">
  4. <div class="financial-title pf600 fs18 fc121212">热门理财</div>
  5. <div class="financial-main">
  6. <div class="financial-item" v-for="(item, index) in 2" :key="index">
  7. <div class="item-name pf400 fs12 fc2C3131">
  8. <img src="@/assets/icon/coin/bnb.svg" alt="" />理财产品名称
  9. </div>
  10. <div class="item-info">
  11. <div class="info-left">
  12. <div class="pf400 fs10 fcDF384C">0.23%</div>
  13. <div class="margin-top2 pf400 fs10 fcA8A8A8">收益率</div>
  14. </div>
  15. <div class="info-right">
  16. <div class="pf400 fs10 fcDF384C">10天</div>
  17. <div class="margin-top2 pf400 fs10 fcA8A8A8">理财周期</div>
  18. </div>
  19. </div>
  20. <div class="item-line"></div>
  21. <div class="item-shouyi pf400 fs10 fcA8A8A8">
  22. <div>预估每日收益</div>
  23. <div>0.2150天</div>
  24. </div>
  25. <div class="item-buy pf500 fs10 fcFFFFFF">立即购买</div>
  26. </div>
  27. </div>
  28. </div>
  29. </template>
  30. <script setup></script>
  31. <style lang="less" scoped>
  32. .hot-financial {
  33. margin-top: 30px;
  34. width: 100%;
  35. .financial-title {
  36. margin-left: 16px;
  37. height: 24px;
  38. line-height: 24px;
  39. }
  40. .financial-main {
  41. display: flex;
  42. flex-direction: row;
  43. justify-content: flex-start;
  44. margin-top: 10px;
  45. width: 100%;
  46. .financial-item {
  47. display: flex;
  48. flex-direction: column;
  49. justify-content: flex-start;
  50. align-items: center;
  51. margin-left: 16px;
  52. width: 148px;
  53. height: 138px;
  54. border-radius: 5px;
  55. border: 1px solid #ebebeb;
  56. .item-name {
  57. display: flex;
  58. flex-direction: row;
  59. justify-content: flex-start;
  60. align-items: center;
  61. margin-top: 7px;
  62. width: 130px;
  63. height: 27px;
  64. img {
  65. margin-right: 3px;
  66. width: 27px;
  67. height: 27px;
  68. }
  69. }
  70. .item-info {
  71. display: flex;
  72. flex-direction: row;
  73. justify-content: space-between;
  74. margin-top: 10px;
  75. width: 130px;
  76. .margin-top2 {
  77. margin-top: 2px;
  78. }
  79. .info-left {
  80. display: flex;
  81. flex-direction: column;
  82. justify-content: flex-start;
  83. align-items: flex-start;
  84. }
  85. .info-right {
  86. display: flex;
  87. flex-direction: column;
  88. justify-content: flex-start;
  89. align-items: flex-end;
  90. }
  91. }
  92. .item-line {
  93. margin-top: 5px;
  94. width: 125px;
  95. height: 1px;
  96. background: #00000019;
  97. }
  98. .item-shouyi {
  99. display: flex;
  100. flex-direction: row;
  101. justify-content: space-between;
  102. align-items: center;
  103. margin-top: 3px;
  104. width: 130px;
  105. height: 18px;
  106. }
  107. .item-buy {
  108. margin-top: 6px;
  109. width: 130px;
  110. height: 25px;
  111. line-height: 25px;
  112. text-align: center;
  113. border-radius: 5px;
  114. background: #df384c;
  115. }
  116. }
  117. }
  118. }
  119. </style>