index.vue 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <template>
  2. <view class="rf-kefu">
  3. <view class="wrapper" @tap="show">
  4. <text class="iconfont icongengduo"></text>
  5. </view>
  6. <!--顶部下拉菜单-->
  7. <rf-nav-detail
  8. :popupShow="popupShow"
  9. @hide="hideNavDetail"
  10. >
  11. </rf-nav-detail>
  12. <!---顶部下拉菜单-->
  13. </view>
  14. </template>
  15. <script>
  16. import rfNavDetail from '@/components/rf-nav-detail';
  17. export default {
  18. name: 'rfNav',
  19. components: { rfNavDetail },
  20. data() {
  21. return {
  22. popupShow: false
  23. };
  24. },
  25. methods: {
  26. stopPrevent() {},
  27. show() {
  28. this.popupShow = true;
  29. },
  30. // 隐藏顶部导航
  31. hideNavDetail() {
  32. this.popupShow = false;
  33. }
  34. }
  35. };
  36. </script>
  37. <style scoped lang="scss">
  38. .rf-kefu {
  39. width: 100%;
  40. .wrapper {
  41. height: 72upx;
  42. width: 72upx;
  43. background-color: #000;
  44. opacity: 0.5;
  45. border-radius: 50%;
  46. position: fixed;
  47. display: flex;
  48. justify-content: center;
  49. align-items: center;
  50. right: 20upx;
  51. top: 160upx;
  52. z-index: 98;
  53. }
  54. .iconfont {
  55. font-size: 48upx;
  56. opacity: 1;
  57. color: $color-white;
  58. z-index: 100;
  59. }
  60. }
  61. </style>