app.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <template>
  2. <div class="sannong">
  3. <NuxtLayout>
  4. <NuxtPage></NuxtPage>
  5. <ul class="kefu">
  6. <li>
  7. <el-popover ref="popover" placement="right" :width="80" trigger="hover">
  8. <template #reference>
  9. <img src="./public/image/qq 1.png" alt="">
  10. </template>
  11. <p>联系QQ:</p>
  12. <p @click="addQQFriend(2909421493)" class="qqadd">2909421493</p>
  13. <p @click="addQQFriend(213552413)" class="qqadd">213552413</p>
  14. </el-popover>
  15. <h6>QQ客服</h6>
  16. </li>
  17. <li>
  18. <el-popover ref="popover" placement="right" :width="80" trigger="hover">
  19. <template #reference>
  20. <img src="./public/image/dianhua 1.png" alt="">
  21. </template>
  22. <p>联系电话:</p>
  23. <p>010-56019387</p>
  24. </el-popover>
  25. <h6>电话客服</h6>
  26. </li>
  27. </ul>
  28. <!-- <ul class="kefu">
  29. <li>
  30. <img src="./static//image/weixin 1.png" alt="">
  31. <p>微信客服</p>
  32. </li>
  33. <li>
  34. <img src="./static//image/qq 1.png" alt="">
  35. <p>QQ客服</p>
  36. </li>
  37. <li>
  38. <img src="./static//image/dianhua 1.png" alt="">
  39. <p>电话客服</p>
  40. </li>
  41. <li @click="close">
  42. <img src="./static//image/guanbi 1.png" alt="">
  43. <p>关闭</p>
  44. </li>
  45. </ul> -->
  46. <!-- <div class="kefu1">
  47. <img src="./static//image/weixin 1.png" alt="">
  48. </div> -->
  49. </NuxtLayout>
  50. <!-- <div class="zhinengwenda">
  51. <Zhinengqwnda></Zhinengqwnda>
  52. </div> -->
  53. </div>
  54. </template>
  55. <script setup>
  56. import { ElPopover } from 'element-plus'
  57. let close = () => {
  58. let kefu = document.querySelector('.kefu')
  59. kefu.style.display = 'none'
  60. }
  61. //添加好友
  62. function addQQFriend(qqNumber) {
  63. // 使用tencent协议唤起QQ客户端并添加好友
  64. window.location.href = `tencent://message/?uin=${qqNumber}&Site=&Menu=yes`;
  65. }
  66. </script>
  67. <style lang="less" scoped>
  68. .kefu {
  69. width: 100px;
  70. // height: 445px;
  71. height: 200px;
  72. position: fixed;
  73. // bottom: 80px;
  74. // right: 129px;
  75. bottom: 50px;
  76. right: 10px;
  77. >li {
  78. width: 100px;
  79. height: 100px;
  80. margin-bottom: 15px;
  81. text-align: center;
  82. background-color: #fff;
  83. box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.1);
  84. border-radius: 10px;
  85. img {
  86. width: 60px;
  87. height: 60px;
  88. margin-top: 10px;
  89. }
  90. h6 {
  91. font-family: PingFang SC, PingFang SC;
  92. font-weight: 500;
  93. font-size: 14px;
  94. color: #666666;
  95. line-height: 16px;
  96. }
  97. p {
  98. font-weight: 400;
  99. font-size: 12px;
  100. }
  101. }
  102. }
  103. .kefu1 {
  104. width: 70px;
  105. height: 70px;
  106. position: fixed;
  107. bottom: 0px;
  108. right: 220px;
  109. }
  110. .zhinengwenda {
  111. width: 360px;
  112. height: 562px;
  113. position: fixed;
  114. bottom: 85px;
  115. right: 220px;
  116. // border: 1px solid #CCCCCC;
  117. box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.1);
  118. border-radius: 10px;
  119. background-color: #fff;
  120. z-index: 1000;
  121. }
  122. .qqadd {
  123. cursor: pointer;
  124. }
  125. </style>