app.vue 3.4 KB

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