Server.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <template>
  2. <div class="server-block">
  3. <div class="wrap">
  4. <div class="title">
  5. <hr/>
  6. <h3>全方位 一站式服务</h3>
  7. <hr/>
  8. </div>
  9. <h4>All-around one-stop service</h4>
  10. <ul class="server-list">
  11. <li v-for="(item ,index) in items">
  12. <div class="item">
  13. <i :class="'iconfont'+' '+item.fontClass"></i>
  14. </div>
  15. <div class="text">{{item.textOne}}<br>{{item.textTwo}}</div>
  16. </li>
  17. </ul>
  18. </div>
  19. </div>
  20. </template>
  21. <script>
  22. export default {
  23. name: 'Server',
  24. data(){
  25. return{
  26. items:[
  27. {
  28. fontClass:'icon-shandian',
  29. textOne:'FX66具备一键交易功能,',
  30. textTwo:'闪电交易,专业快捷!'
  31. },
  32. {
  33. fontClass:'icon-shouji1',
  34. textOne:'手机客户端,',
  35. textTwo:'随时随地,紧跟市场!'
  36. },
  37. {
  38. fontClass:'icon-jiazhipinggu-',
  39. textOne:'专业分析指导,',
  40. textTwo:'价值评估市场!'
  41. },
  42. {
  43. fontClass:'icon-kefu1',
  44. textOne:'新手帮帮帮,',
  45. textTwo:'一小时教您炒币入门'
  46. }
  47. ]
  48. }
  49. }
  50. }
  51. </script>
  52. <style scoped>
  53. .server-block{
  54. height: 600px;
  55. width: 1200px;
  56. margin: 0 auto;
  57. padding-top: 68px;
  58. h4{
  59. font-size: 20px;
  60. color: #999;
  61. margin-top: 12px;
  62. }
  63. }
  64. .server-list{
  65. margin-top: 80px;
  66. display: flex;
  67. justify-content: center;
  68. li{
  69. border: 1px solid #dcdcdc;
  70. width: 176px;
  71. height: 176px;
  72. transform: rotate(45deg);
  73. margin-right: 72px;
  74. background-color: #fff;
  75. &:hover{
  76. background-color:#1a6fa6
  77. }
  78. &:hover .item{
  79. display:none;
  80. }
  81. &:hover .text{
  82. display: flex;
  83. }
  84. .item{
  85. width: 100%;
  86. height: 100%;
  87. line-height: 176px;
  88. transform: rotate(-45deg);
  89. i{
  90. font-size: 60px;
  91. color: #2580bb;
  92. }
  93. }
  94. .text{
  95. width: 100%;
  96. height: 100%;
  97. justify-content: center;
  98. align-items: center;
  99. transform: rotate(-45deg);
  100. color: #fff;
  101. font-size: 15px;
  102. display:none;
  103. }
  104. }
  105. }
  106. </style>