Contact.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <div class="contact">
  3. <div class="title">
  4. <hr>
  5. <h3>联系我们 快速申请</h3>
  6. <hr>
  7. </div>
  8. <h4>Feel Free to Contact Us</h4>
  9. <ul class="contact-us">
  10. <li>
  11. <img src="../../static/images/phone.png" alt="">
  12. <img src="../../static/images/phoneHover.png" alt="" >
  13. <p>86-17354718363</p>
  14. </li>
  15. <li @mouseover="overShow()" @mouseout="outHide()">
  16. <img src="../../static/images/wx.png" alt="">
  17. <img src="../../static/images/wxHover.png" alt="">
  18. <p>fx66kefu</p>
  19. </li>
  20. </ul>
  21. <img src="../../static/images/fx66kefufu.jpg" alt="" class="kefu-wx" v-show="show">
  22. </div>
  23. </template>
  24. <script>
  25. export default {
  26. name: "Contact",
  27. data(){
  28. return{
  29. show:false
  30. }
  31. },
  32. methods:{
  33. overShow:function(){
  34. this.show = true;
  35. },
  36. outHide:function(){
  37. this.show = false
  38. }
  39. }
  40. }
  41. </script>
  42. <style scoped>
  43. .contact {
  44. width: 1200px;
  45. background-color: #fff;
  46. margin: 0 auto;
  47. position: relative;
  48. padding-top: 50px;
  49. .title {
  50. display: flex;
  51. align-items: center;
  52. justify-content: space-between;
  53. h3 {
  54. font-size: 25px;
  55. font-weight: 700;
  56. line-height: 1;
  57. }
  58. hr {
  59. width: 420px;
  60. height: 1px;
  61. background-color: #e5e5e5;
  62. border: 0;
  63. }
  64. }
  65. h4{
  66. font-size: 16px;
  67. color: #999;
  68. margin-top: 12px;
  69. }
  70. }
  71. .contact-us{
  72. margin-top: 50px;
  73. padding: 0 400px 70px;
  74. display: flex;
  75. justify-content: space-between;
  76. p{
  77. line-height: 1;
  78. font-size: 20px;
  79. clear: both;
  80. }
  81. li>img{
  82. margin-bottom: 20px;
  83. /*float: left;*/
  84. }
  85. }
  86. .contact-us>li>img:nth-child(2){
  87. display: none;
  88. }
  89. .kefu-wx{
  90. /*display: none;*/
  91. width: 120px;
  92. position: absolute;
  93. top: 0;
  94. margin: 150px 0 0 240px;
  95. }
  96. .contact-us>li:hover img:nth-child(1){
  97. display:none
  98. }
  99. .contact-us>li:hover img:nth-child(2){
  100. display: inline-block;
  101. }
  102. </style>