Crypto.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <template>
  2. <div class="crypto">
  3. <div class="wrap">
  4. <h1>主流交易币种</h1>
  5. <p class="text">Mainstream Trading Crypto-currency</p>
  6. <div class="blue-line"></div>
  7. <div class="coin-box">
  8. <ul class="coin-ul">
  9. <li v-for="(item,index) in items" :key="index">
  10. <i :class="'iconfont'+' '+item.icon"></i>
  11. <p>{{item.text}}</p>
  12. </li>
  13. </ul>
  14. </div>
  15. </div>
  16. </div>
  17. </template>
  18. <script>
  19. export default {
  20. name: 'Crypto',
  21. data () {
  22. return {
  23. items: [
  24. {
  25. icon: 'icon-BTC1',
  26. text: 'BTC( 比特币 )'
  27. },
  28. {
  29. icon: 'icon-bty1',
  30. text: 'BTY( 比特元 )'
  31. },
  32. {
  33. icon: 'icon-BCC1',
  34. text: 'BCC( 比特现金 )'
  35. },
  36. {
  37. icon: 'icon-ETH1',
  38. text: 'ETH( 以太坊 )'
  39. },
  40. {
  41. icon: 'icon-ETC',
  42. text: 'ETC( 以太坊经典 )'
  43. },
  44. {
  45. icon: 'icon-ZEC1',
  46. text: 'ZEC( 零币 )'
  47. },
  48. {
  49. icon: 'icon-ltc',
  50. text: 'LTC( 莱特币 )'
  51. },
  52. {
  53. icon: 'icon-BTS3',
  54. text: 'BTS( 比特股 )'
  55. },
  56. {
  57. icon: 'icon-SC3',
  58. text: 'SC( 云储币 )'
  59. },
  60. {
  61. icon: 'icon-DCR3',
  62. text: 'DCR( 德信币 )'
  63. }
  64. ]
  65. }
  66. }
  67. }
  68. </script>
  69. <style scoped>
  70. .crypto{
  71. text-align: center;
  72. padding-top: 78px;
  73. height: 900px;
  74. background:url(../../static/images/home/coinBg.png) no-repeat bottom;
  75. position: relative;
  76. }
  77. h1{
  78. font-weight: 700;
  79. font-size: 35px;
  80. color: #333;
  81. }
  82. .blue-line{
  83. width: 60px;
  84. height: 2px;
  85. margin: 0 auto;
  86. margin-top: 15px;
  87. background-color: #1a6fa6;
  88. }
  89. .crypto .text{
  90. font-size: 20px;
  91. color: hsla(0,0%,60%,.8);
  92. margin-top: 12px;
  93. }
  94. .coin-box{
  95. width: 1200px;
  96. height: auto;
  97. margin: 80px auto 0;
  98. position: relative;
  99. }
  100. .coin-ul{
  101. width: 915px;
  102. height: 363px;
  103. margin: 0 auto;
  104. }
  105. .coin-ul>li{
  106. float: left;
  107. width: 180px;
  108. height: 180px;
  109. background-color: #fff;
  110. display: inline-block;
  111. float: left;
  112. margin-right: 3px;
  113. margin-bottom: 3px;
  114. i{
  115. font-size: 62px;
  116. margin-top: 30px;
  117. margin-bottom: 30px;
  118. color: #1a6fa6;
  119. }
  120. p{
  121. font-size: 20px;
  122. color: #999;
  123. }
  124. }
  125. </style>