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.

resortPageNew.vue 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <div>
  3. <carouselSection v-if="!wait" :resortImages="resort.images" />
  4. <main id="main" style="margin-top:-20px;">
  5. <section>
  6. <div class="container wider">
  7. <div class="row" id="resort-profile">
  8. <div class="col-md-3">
  9. <img src="img/listings/property1/property1-gallery.jpg" class="img-fluid" alt />
  10. <div class="row no-gutters">
  11. <div class="col-6">
  12. <img src="img/listings/property1/property1-gallery.jpg" class="img-fluid" alt />
  13. </div>
  14. <div class="col-6">
  15. <img src="img/listings/property1/property1-gallery.jpg" class="img-fluid" alt />
  16. </div>
  17. </div>
  18. <gallerySection :images="resort.images" />
  19. <FilterComponent :hideTop="true" />
  20. </div>
  21. <div class="col-md-9 resort-profile" style="margin-top:15px; margin-bottom:15px;">
  22. <h2>{{ resort.prName }}</h2>
  23. <WeekList :resortCode="resortCode" />
  24. <p v-if="resort.description && resort.description !== ''">{{ resort.description }}</p>
  25. <br v-if="resort.description && resort.description !== ''" />
  26. <p>{{ resort.prNotes }}</p>
  27. <div class="d-flex mt-3">
  28. <iframe
  29. width="100%"
  30. height="200"
  31. id="gmap_canvas"
  32. :src="
  33. 'https://maps.google.com/maps?q=' +
  34. resort.prLatitude +
  35. ',' +
  36. resort.prLongitude +
  37. '&hl=en&z=14&amp;output=embed'
  38. "
  39. frameborder="0"
  40. scrolling="no"
  41. marginheight="0"
  42. marginwidth="0"
  43. ></iframe>
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. </section>
  49. </main>
  50. <div v-if="wait" id="preloader"></div>
  51. </div>
  52. </template>
  53. <script>
  54. /* eslint-disable */
  55. import { mapState, mapActions } from "vuex";
  56. import WeekList from "../buy/weekListComponent.vue";
  57. import FilterComponent from "../searchTimeshare.vue";
  58. import ResortImages from "./resortImage.vue";
  59. import gallerySection from "./gallerySection";
  60. import carouselSection from "./carouselSection";
  61. export default {
  62. components: {
  63. carouselSection,
  64. WeekList,
  65. FilterComponent,
  66. ResortImages,
  67. gallerySection,
  68. },
  69. data() {
  70. return {
  71. wait: false,
  72. };
  73. },
  74. props: {
  75. resortCode: {},
  76. },
  77. methods: {
  78. ...mapActions("resort", ["getResortData"]),
  79. routerGoTo(goto) {
  80. this.$router.push(goto);
  81. },
  82. },
  83. computed: {
  84. ...mapState("resort", ["resort"]),
  85. },
  86. mounted() {
  87. this.wait = true;
  88. this.getResortData(this.resortCode).then((fulfilled) => {
  89. this.wait = false;
  90. });
  91. // .then(() => {
  92. // setTimeout(() => (this.boolLoaded = true), 2000);
  93. // });
  94. },
  95. };
  96. </script>
  97. <style lang="scss" scoped>
  98. .wider {
  99. width: 1600px;
  100. }
  101. </style>