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.
71 lines
1.6 KiB
71 lines
1.6 KiB
<template>
|
|
<v-app>
|
|
<NavBar />
|
|
<v-main class="tw-bg-neutrals-100">
|
|
<Nuxt />
|
|
</v-main>
|
|
<Footer />
|
|
<customNotifications></customNotifications>
|
|
<customMessenger></customMessenger>
|
|
</v-app>
|
|
</template>
|
|
|
|
<script>
|
|
import NavBar from "../components/NavBar.vue";
|
|
import Footer from "../components/Footer.vue";
|
|
import customNotifications from "@/components/newComponent/notifications/notifications.vue";
|
|
import customMessenger from "@/components/fb-messenger/customMessenger.vue";
|
|
export default {
|
|
name: "service",
|
|
components: {
|
|
Footer,
|
|
NavBar,
|
|
customNotifications,
|
|
customMessenger,
|
|
},
|
|
data() {
|
|
return {};
|
|
},
|
|
computed: {
|
|
drawerAcitve() {
|
|
return this.$store.getters.getDrawerStatus;
|
|
},
|
|
searchDialogActive() {
|
|
return this.$store.getters.getSearchDialogStatus;
|
|
}
|
|
},
|
|
watch: {
|
|
drawerAcitve: {
|
|
handler: function () {
|
|
this.bsd(this.drawerAcitve);
|
|
}
|
|
},
|
|
searchDialogActive: {
|
|
handler: function () {
|
|
this.bsd(this.searchDialogActive);
|
|
}
|
|
}
|
|
},
|
|
methods: {
|
|
bsd(status) {
|
|
var body = document.querySelector("body");
|
|
var scrollTop = window.pageYOffset || document.documentElement.scrollTop;
|
|
var scrollLeft = window.pageXOffset || document.documentElement.scrollLeft;
|
|
window.onscroll = function () { };
|
|
if (status === true) {
|
|
if (window.onscroll !== null) {
|
|
window.onscroll = function () {
|
|
window.scrollTo(scrollLeft, scrollTop);
|
|
};
|
|
}
|
|
} else {
|
|
window.onscroll = function () { };
|
|
}
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
</style>
|