Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

singleResidentialPage.vue 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <div>
  3. <!-- <carouselSection :propertyImages="propertyImages" @Loaded="CarouselDone" /> -->
  4. <main id="main" style="margin-top:20px">
  5. <contentSection :property="property" :propertyImages="propertyImages" @Loaded="ContentDone" />
  6. </main>
  7. <div v-if="Wait" id="preloader"></div>
  8. </div>
  9. </template>
  10. <script>
  11. /* eslint-disable */
  12. import { mapState, mapActions } from "vuex";
  13. import makeOffer from "../../../processFlow/makeOffer";
  14. import carouselSection from "./carouselSection";
  15. import contentSection from "./contentSection";
  16. export default {
  17. name: "property",
  18. components: {
  19. makeOffer,
  20. carouselSection,
  21. contentSection
  22. },
  23. data() {
  24. return {
  25. index: null,
  26. date: new Date(),
  27. boolLoaded: false,
  28. wait: false,
  29. carouselLoaded: false,
  30. contentloaded: false
  31. };
  32. },
  33. async mounted() {
  34. this.wait = true;
  35. this.carouselLoaded = false;
  36. this.contentloaded = false;
  37. this.clearPropertyImages();
  38. await this.getDisplayProperty(this.$route.params.id);
  39. // await this.getPropertyImages(this.$route.params.id);
  40. // setTimeout(() => {
  41. // if (this.propertyImages.length > 0) {
  42. // this.boolLoaded = true;
  43. // }
  44. // }, 100);
  45. //this.mayEditProperty(this.$route.params.id);
  46. },
  47. computed: {
  48. ...mapState("property", ["property", "propertyImages"]),
  49. Wait() {
  50. if (this.wait && !this.carouselLoaded && !this.contentloaded) {
  51. return true;
  52. }
  53. return false;
  54. }
  55. },
  56. methods: {
  57. ...mapActions("property", ["getDisplayProperty", "clearPropertyImages"]),
  58. ...mapActions("propertyEdit", ["mayEditProperty"]),
  59. formatPrice(value) {
  60. const val = (value / 1).toFixed(2);
  61. return val.toString().replace(/\B(?=(\d{3})+(?!\d))/g, " ");
  62. },
  63. formatAddress(value) {
  64. if (value !== "") {
  65. return `${value}<br/>`;
  66. }
  67. return "";
  68. },
  69. CarouselDone() {
  70. this.carouselLoaded = true;
  71. },
  72. ContentDone() {
  73. this.contentloaded = true;
  74. }
  75. },
  76. beforeDestroy() {
  77. this.clearPropertyImages();
  78. }
  79. };
  80. </script>
  81. <style lang="scss" scoped></style>