app.vue 3.2 KB

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