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.

72 lines
1.6 KiB

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