Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

resortPage.vue 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <div>
  3. <!-- <carouselSection v-if="boolLoaded" :resortImages="resort.images" /> -->
  4. <main id="main" style="margin-top:-20px">
  5. <contentSection :resortCode="resortCode" />
  6. </main>
  7. </div>
  8. </template>
  9. <script>
  10. /* eslint-disable */
  11. import carouselSection from "./carouselSection";
  12. import { mapState, mapActions } from "vuex";
  13. import contentSection from "./contentSection";
  14. export default {
  15. components: {
  16. carouselSection,
  17. contentSection
  18. },
  19. data() {
  20. return {
  21. boolLoaded: false
  22. };
  23. },
  24. props: {
  25. resortCode: {}
  26. },
  27. async created() {
  28. this.getResortData(this.resortCode);
  29. // .then(() => {
  30. // setTimeout(() => (this.boolLoaded = true), 2000);
  31. // });
  32. },
  33. computed: {
  34. ...mapState("resort", ["resort", "description", "images", "layout"]),
  35. mapUrl() {
  36. return this.resort
  37. ? `http://maps.google.com/maps?q=${this.resort.prLatitude},${this.resort.prLongitude}&z=15&output=embed`
  38. : "";
  39. }
  40. },
  41. methods: {
  42. ...mapActions("resort", ["getResortData"]),
  43. routerGoTo(goto) {
  44. this.$router.push(goto);
  45. }
  46. }
  47. };
  48. </script>
  49. <style lang="scss" scoped></style>