App.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <template>
  2. <div id="app">
  3. <keep-alive>
  4. <router-view></router-view>
  5. </keep-alive>
  6. <div class="contant">
  7. <div type="button" class="slidebtn" @click='kefushow=!kefushow'><img src="../static/img/kefuicon.png"><span><br>联<br>系<br>客<br>服</span></div>
  8. <div class="contant-box" v-show='kefushow==true'>
  9. <div class="wechart">
  10. <img src="../static/img/fx66kefufu.jpg">
  11. <p>微信 fx66客服</p>
  12. </div>
  13. <div class="phone">
  14. <div>
  15. <p>电话咨询</p>
  16. </div>
  17. <img src="../static/img/phoneicon.png">
  18. <p>+8617354718363</p>
  19. </div>
  20. </div>
  21. </div>
  22. </div>
  23. </template>
  24. <script>
  25. export default {
  26. name: 'App',
  27. data(){
  28. return{
  29. kefushow:false
  30. }
  31. }
  32. }
  33. </script>
  34. <style>
  35. #app {
  36. font-family: 'Avenir', Helvetica, Arial, sans-serif;
  37. -webkit-font-smoothing: antialiased;
  38. -moz-osx-font-smoothing: grayscale;
  39. text-align: center;
  40. color: #2c3e50;
  41. }
  42. .contant{
  43. position: fixed;
  44. top: 28%;
  45. right: 0;
  46. z-index: 100;
  47. .slidebtn{
  48. width: 36px;
  49. height: 120px;
  50. background: #20a0ff;
  51. position: absolute;
  52. margin-left: -36px;
  53. border-top-left-radius: 10px;
  54. border-bottom-left-radius: 10px;
  55. cursor: pointer;
  56. margin-top: 108px;
  57. text-align: center;
  58. img{
  59. width: 28px;
  60. height: 28px;
  61. margin-top: 10px;
  62. }
  63. span{
  64. color: #fffc00;
  65. font-size: 14px;
  66. line-height: 14px;
  67. }
  68. }
  69. .contant-box{
  70. box-shadow: 0 3px 5px 2px rgba(26,0,0,.4);
  71. width: 150px;
  72. background: #20a0ff;
  73. border-top-left-radius: 10px;
  74. border-bottom-left-radius: 10px;
  75. padding-top: 10px;
  76. padding-bottom: 10px;
  77. .wechart{
  78. background: #fff;
  79. width: 130px;
  80. margin: 0 auto;
  81. border-radius: 10px;
  82. img{
  83. width: 120px;
  84. height: 120px;
  85. }
  86. p{
  87. font-size: 13px;
  88. font-weight: bold;
  89. color: #20a0ff;
  90. margin-top: -10px;
  91. padding-bottom: 10px;
  92. }
  93. }
  94. .phone{
  95. height: 130px;
  96. padding: 10px 5px;
  97. background: #fff;
  98. width: 130px;
  99. margin: 10px auto 0;
  100. border-radius: 10px;
  101. div{
  102. border-bottom: 1px solid #e5e5e5;
  103. p{
  104. text-align: left;
  105. margin-left: 10px;
  106. }
  107. }
  108. img{
  109. width: 37px;
  110. height: 31px;
  111. margin-top: 10px;
  112. }
  113. p{
  114. font-size: 14px;
  115. color: #333;
  116. font-weight: 700;
  117. line-height: 30px;
  118. }
  119. }
  120. }
  121. }
  122. </style>