You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
1.7 KiB

2 years ago
2 years ago
  1. <template>
  2. <v-app>
  3. <NavBar class="on-top" />
  4. <v-main
  5. class="tw-bg-neutral-100 md:tw-bg-white xl:tw-bg-[#f1f1f1] tw-p-[30px]"
  6. >
  7. <Nuxt />
  8. </v-main>
  9. <Footer v-if="$vuetify.breakpoint.smAndUp" />
  10. <customNotifications></customNotifications>
  11. </v-app>
  12. </template>
  13. <script>
  14. import NavBar from "../components/NavBar.vue";
  15. import Footer from "../components/Footer.vue";
  16. import customNotifications from "@/components/newComponent/notifications/notifications.vue";
  17. export default {
  18. name: "profileLayout",
  19. layout: "empty",
  20. components: {
  21. NavBar,
  22. Footer,
  23. customNotifications,
  24. },
  25. data() {
  26. return {};
  27. },
  28. computed: {
  29. drawerAcitve() {
  30. return this.$store.getters.getDrawerStatus;
  31. },
  32. searchDialogActive() {
  33. return this.$store.getters.getSearchDialogStatus;
  34. },
  35. },
  36. watch: {
  37. drawerAcitve: {
  38. handler: function () {
  39. this.bsd(this.drawerAcitve);
  40. },
  41. },
  42. searchDialogActive: {
  43. handler: function () {
  44. this.bsd(this.searchDialogActive);
  45. },
  46. },
  47. },
  48. methods: {
  49. bsd(status) {
  50. var body = document.querySelector("body");
  51. var scrollTop = window.pageYOffset || document.documentElement.scrollTop;
  52. var scrollLeft =
  53. window.pageXOffset || document.documentElement.scrollLeft;
  54. window.onscroll = function () {};
  55. if (status === true) {
  56. if (window.onscroll !== null) {
  57. window.onscroll = function () {
  58. window.scrollTo(scrollLeft, scrollTop);
  59. };
  60. }
  61. } else {
  62. window.onscroll = function () {};
  63. }
  64. },
  65. },
  66. };
  67. </script>
  68. <style lang="scss">
  69. .on-top {
  70. z-index: 203;
  71. }
  72. </style>