app.vue 2.8 KB

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