AddBox.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <template>
  2. <div class="addbox-ctnr">
  3. <ul class="clearfix">
  4. <li v-for="(item,index) in adds" @mouseenter="addbtnShow(index)" @mouseleave="addbtnShow()">
  5. <h4>{{item.msg[0]}}</h4>
  6. <h5>{{item.msg[1]}}</h5>
  7. <p>{{item.msg[2]}}</p>
  8. <img :src="item.url">
  9. <div class="add-btn" v-show="state===index">
  10. <span>{{item.msg[3]}}</span>
  11. <i class="el-icon-arrow-right"></i>
  12. </div>
  13. </li>
  14. </ul>
  15. </div>
  16. </template>
  17. <script>
  18. export default{
  19. data(){
  20. return{
  21. state:"",
  22. adds:[
  23. {
  24. id:1,
  25. url:require("../assets/img/add01.png"),
  26. msg:["超高返佣",
  27. "High commission",
  28. "推荐FX66给他人,可以获取被推荐人等比例的交易手续费作为佣金",
  29. "立即申请经纪商"]
  30. },
  31. {
  32. id:2,
  33. url:require("../assets/img/add02.png"),
  34. msg:["VIP奖励",
  35. "VIP rewards",
  36. "每个经纪商都会有相应的业绩排名,凡是每个月业绩排名靠前者,均可以得到我们平台的VIP级别奖励。",
  37. "立即申请经纪商"]
  38. },
  39. {
  40. id:3,
  41. url:require("../assets/img/add03.png"),
  42. msg:["市场支持",
  43. "Marketing support",
  44. "FX66经纪商可以使用我们所可以提供的全部交易工具和交易资源,并且会在市场宣传方面给予相应的支持!",
  45. "立即申请经纪商"]
  46. },
  47. {
  48. id:4,
  49. url:require("../assets/img/add04.png"),
  50. msg:["技术支持",
  51. "Technical support",
  52. "我们拥有强大的技术开发团队,可以制定符合客户营销特点的网站,只收成本费。",
  53. "立即申请经纪商"]
  54. },
  55. ]
  56. }
  57. },
  58. methods:{
  59. addbtnShow(val){
  60. this.state = val;
  61. }
  62. }
  63. }
  64. </script>
  65. <style scoped>
  66. .addbox-ctnr{
  67. ul{
  68. li{
  69. text-align: left;
  70. background-color: #fff;
  71. padding: 32px 0 0 20px;
  72. border: 1px solid #eee;
  73. width: 430px;
  74. height: 250px;
  75. position: relative;
  76. float: left;
  77. margin-top: 80px;
  78. &:nth-child(odd){
  79. margin-right: 200px;
  80. }
  81. &:hover{
  82. border:1px solid var(--text-color-active);
  83. border-left: 3px solid var(--text-color-active);
  84. }
  85. h4{
  86. font-size: 25px;
  87. font-weight: 700;
  88. line-height: 1;
  89. }
  90. h5{
  91. margin:10px 0 40px 0;
  92. font-size: 20px;
  93. line-height: 1;
  94. font-weight: 500;
  95. color: #999;
  96. }
  97. p{
  98. width: 255px;
  99. font-size: 15px;
  100. }
  101. img{
  102. position: absolute;
  103. top: 20px;
  104. width: 270px;
  105. right: -135px;
  106. }
  107. .add-btn{
  108. position: absolute;
  109. height: 45px;
  110. width: 170px;
  111. bottom: -22px;
  112. background-color: #1a6fa6;
  113. color: #fff;
  114. padding-left: 18px;
  115. cursor: pointer;
  116. font-size: 15px;
  117. span{
  118. line-height: 45px;
  119. }
  120. i{
  121. width: 45px;
  122. height: 45px;
  123. line-height: 45px;
  124. text-align: center;
  125. background-color: #2580bb;
  126. position: absolute;
  127. top: 0;
  128. right: 0;
  129. }
  130. }
  131. }
  132. }
  133. }
  134. </style>