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.

80 lines
1.9 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <v-app>
  3. <NavBar />
  4. <v-main class="tw-bg-neutrals-100">
  5. <Nuxt keep-alive :keep-alive-props="{ include: includeArr }" />
  6. <!-- <Nuxt /> -->
  7. </v-main>
  8. <Footer />
  9. <customNotifications></customNotifications>
  10. <!-- <customMessenger></customMessenger> -->
  11. </v-app>
  12. </template>
  13. <!-- will be converted into something like this -->
  14. <!-- <div>
  15. <KeepAlive :include="includeArr">
  16. <RouterView />
  17. </KeepAlive>
  18. </div> -->
  19. <script>
  20. import NavBar from "../components/NavBar.vue";
  21. import Footer from "../components/Footer.vue";
  22. import customNotifications from "@/components/newComponent/notifications/notifications.vue";
  23. // import customMessenger from "@/components/fb-messenger/customMessenger.vue";
  24. export default {
  25. name: "service",
  26. components: {
  27. Footer,
  28. NavBar,
  29. customNotifications,
  30. // customMessenger,
  31. },
  32. data() {
  33. return {
  34. includeArr: ['checkout','done']
  35. };
  36. },
  37. computed: {
  38. drawerAcitve() {
  39. return this.$store.getters.getDrawerStatus;
  40. },
  41. searchDialogActive() {
  42. return this.$store.getters.getSearchDialogStatus;
  43. }
  44. },
  45. watch: {
  46. drawerAcitve: {
  47. handler: function () {
  48. this.bsd(this.drawerAcitve);
  49. }
  50. },
  51. searchDialogActive: {
  52. handler: function () {
  53. this.bsd(this.searchDialogActive);
  54. }
  55. }
  56. },
  57. methods: {
  58. bsd(status) {
  59. var body = document.querySelector("body");
  60. var scrollTop = window.pageYOffset || document.documentElement.scrollTop;
  61. var scrollLeft = window.pageXOffset || document.documentElement.scrollLeft;
  62. window.onscroll = function () { };
  63. if (status === true) {
  64. if (window.onscroll !== null) {
  65. window.onscroll = function () {
  66. window.scrollTo(scrollLeft, scrollTop);
  67. };
  68. }
  69. } else {
  70. window.onscroll = function () { };
  71. }
  72. }
  73. }
  74. };
  75. </script>
  76. <style lang="scss" scoped>
  77. </style>