AddBox.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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 @click="golink('/applyAgent')">{{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. golink(val){
  63. this.$router.push({path:val});
  64. }
  65. }
  66. }
  67. </script>
  68. <style scoped>
  69. .addbox-ctnr{
  70. ul{
  71. li{
  72. text-align: left;
  73. background-color: #fff;
  74. padding: 32px 0 0 20px;
  75. border: 1px solid #eee;
  76. width: 430px;
  77. height: 250px;
  78. position: relative;
  79. float: left;
  80. margin-top: 80px;
  81. &:nth-child(odd){
  82. margin-right: 200px;
  83. }
  84. &:hover{
  85. border:1px solid var(--text-color-active);
  86. border-left: 3px solid var(--text-color-active);
  87. }
  88. h4{
  89. font-size: 25px;
  90. font-weight: 700;
  91. line-height: 1;
  92. }
  93. h5{
  94. margin:10px 0 40px 0;
  95. font-size: 20px;
  96. line-height: 1;
  97. font-weight: 500;
  98. color: #999;
  99. }
  100. p{
  101. width: 255px;
  102. font-size: 15px;
  103. }
  104. img{
  105. position: absolute;
  106. top: 20px;
  107. width: 270px;
  108. right: -135px;
  109. }
  110. .add-btn{
  111. position: absolute;
  112. height: 45px;
  113. width: 170px;
  114. bottom: -22px;
  115. background-color: #1a6fa6;
  116. color: #fff;
  117. padding-left: 18px;
  118. cursor: pointer;
  119. font-size: 15px;
  120. span{
  121. line-height: 45px;
  122. }
  123. i{
  124. width: 45px;
  125. height: 45px;
  126. line-height: 45px;
  127. text-align: center;
  128. background-color: #2580bb;
  129. position: absolute;
  130. top: 0;
  131. right: 0;
  132. }
  133. }
  134. }
  135. }
  136. }
  137. </style>