您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

contentSection.vue 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. <template>
  2. <section>
  3. <div class="container">
  4. <div class="row" id="resort-profile">
  5. <div class="col-md-4">
  6. <div class="resPortfolioSection" style="margin-top:-5px">
  7. <iframe
  8. v-if="property.video !== null"
  9. width="100%"
  10. src="https://www.youtube.com/embed/watch_popup?v=qKgHJYzWtVA"
  11. frameborder="0"
  12. allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
  13. allowfullscreen
  14. style="margin-bottom:-6px"
  15. ></iframe>
  16. <div v-for="(image, i) in propertyImages" @click="index = i" :key="i">
  17. <div v-if="i < 3">
  18. <img
  19. v-if="i === 0"
  20. style="width:100%; height:201px;object-fit: cover"
  21. :src="image"
  22. />
  23. <div v-else-if="i !== 0">
  24. <img
  25. v-if="i % 2 === 0"
  26. style="width:50%; height:140px; float:right;"
  27. :src="image"
  28. />
  29. <img v-else style="width:50%; height:140px; float:left" :src="image" />
  30. </div>
  31. </div>
  32. </div>
  33. <gallery :images="propertyImages" :index="index" @close="index = null"></gallery>
  34. </div>
  35. <div class="panel-left p-5" style="margin-top:140px;">
  36. <h2>Property Detial</h2>
  37. <p v-if="property.showAddress">{{ property.streetNumber }} {{ property.streetName }}</p>
  38. <p>{{ property.city }}, {{ property.suburb }}</p>
  39. <div v-if="property.displayData.length > 0">
  40. <div v-for="(data, i) in property.displayData" :key="i">
  41. <div v-for="field in data.values" :key="field.id">
  42. <p v-if="field.name === 'Floor Size'">{{ field.value }}M<sup>2</sup></p>
  43. </div>
  44. </div>
  45. </div>
  46. <!-- <div v-for="field in property.displayData[0].values" :key="field.id">
  47. <p v-if="field.name === 'Floor Size'">{{ field.value }}M<sup>2</sup></p>
  48. <p v-if="field.name === 'Rates & Taxes'">
  49. Rates & Taxes: R{{ field.value | toCurrency }}
  50. </p>
  51. </div> -->
  52. <p>{{ property.shortDescription }}</p>
  53. <p>{{ property.price | toCurrency }}</p>
  54. <div class="btn-white-border"><i class="fa fa-search"></i>BOOK A VIEWING</div>
  55. </div>
  56. <div class="panel-left px-5 pb-5 text-center">
  57. <h4 class="text-white">Share this Property</h4>
  58. <a
  59. href="http://www.facebook.com/sharer.php?u=https://www.univateproperties.co.za/"
  60. target="_blank"
  61. ><img src="img/icon-facebook.svg" alt="Share on Facebook" class="col-3 p-1 mx-1"
  62. /></a>
  63. <a
  64. href="mailto:?Subject=Simple Share Buttons&amp;Body=I%20saw%20this%20and%20thought%20of%20you!%20 https://www.univateproperties.co.za/"
  65. ><img src="/img/icon-email.svg" alt="Share on email" class="col-3 p-1 mx-1"
  66. /></a>
  67. <a
  68. href="whatsapp://send?text=Have a look at this property: https://www.univateproperties.co.za"
  69. data-action="share/whatsapp/share"
  70. target="_blank"
  71. >
  72. <img src="img/icon-whatsapp.svg" alt="Share on whatsapp" class="col-3 p-1 mx-1"
  73. /></a>
  74. </div>
  75. </div>
  76. <div class="col-md-8 p-5 resort-profile">
  77. <h2 v-if="property.showAddress">
  78. <div style="display:inline" v-if="property.propertyName !== null">
  79. {{ property.propertyName }} /
  80. </div>
  81. {{ property.streetNumber }} {{ property.streetName }}
  82. </h2>
  83. <h2 v-else>{{ property.propertyName }}</h2>
  84. <p>{{ property.shortDescription }}</p>
  85. <h4>Property Features</h4>
  86. <div v-if="property.displayData.length > 0">
  87. <div v-for="(data, i) in property.displayData" :key="i" class="row my-3">
  88. <div v-for="(field, j) in data.values" :key="j" class="col-md-6">
  89. <div v-if="field.value.toUpperCase() != 'YES'">
  90. <i class="fa fa-check-circle"></i> {{ field.value }} {{ field.name }}
  91. </div>
  92. <div v-else><i class="fa fa-check-circle"></i> {{ field.name }}</div>
  93. </div>
  94. </div>
  95. </div>
  96. <div class="mt-5" v-html="property.description"></div>
  97. <router-link
  98. style="float:right"
  99. class="btn-solid-blue mt-3"
  100. :to="{ name: 'EnquireNow', params: { id: $route.params.id } }"
  101. >MORE INFO...</router-link
  102. >
  103. <h4 v-if="property.video !== null" class="mt-5">Video Tour</h4>
  104. <iframe
  105. v-if="property.video !== null"
  106. width="100%"
  107. src="https://www.youtube.com/embed/watch_popup?v=qKgHJYzWtVA"
  108. frameborder="0"
  109. allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
  110. allowfullscreen
  111. style="margin-bottom:-6px"
  112. class="mt-3"
  113. ></iframe>
  114. <!-- <div>
  115. <table class="table table-striped">
  116. <thead>
  117. <tr>
  118. <th scope="col">Reference</th>
  119. <th scope="col">Unit</th>
  120. <th scope="col">Location</th>
  121. <th scope="col">Kitchen</th>
  122. <th scope="col">Extras</th>
  123. <th scope="col"></th>
  124. </tr>
  125. </thead>
  126. <tbody>
  127. <tr>
  128. <td>#{{ property.id }}</td>
  129. <td>#{{ property.unit }}</td>
  130. <td>Second Floor</td>
  131. <td>yes</td>
  132. <td v-if="property.displayData && property.displayData.length > 0">
  133. <div class="row" v-for="(feat, i) in property.displayData[0].values" :key="i">
  134. <div class="col" v-if="feat.value.toUpperCase() !== 'NO'">
  135. <div></div>
  136. {{ feat.name }} ({{ feat.value }})
  137. </div>
  138. </div>
  139. </td>
  140. <td>
  141. </td>
  142. </tr>
  143. </tbody>
  144. </table>
  145. </div> -->
  146. <!-- <div class="d-flex mt-3">
  147. <iframe
  148. width="100%"
  149. height="200"
  150. id="gmap_canvas"
  151. src=""
  152. frameborder="0"
  153. scrolling="no"
  154. marginheight="0"
  155. marginwidth="0"
  156. ></iframe>
  157. </div>-->
  158. </div>
  159. </div>
  160. </div>
  161. </section>
  162. </template>
  163. <script>
  164. /* eslint-disable */
  165. import gallery from "../../../shared/gallerySlideShow";
  166. export default {
  167. components: {
  168. gallery
  169. },
  170. props: {
  171. property: {},
  172. propertyImages: {}
  173. },
  174. mounted() {
  175. console.log(this.property);
  176. },
  177. data() {
  178. return {
  179. index: null,
  180. date: new Date()
  181. };
  182. }
  183. };
  184. </script>
  185. <style lang="scss" scoped>
  186. /* Extra small devices (phones, 600px and down) */
  187. @media only screen and (max-width: 575px) {
  188. .resPortfolioSection {
  189. margin-bottom: 100px;
  190. }
  191. }
  192. /* Small devices (portrait tablets and large phones, 600px and up) */
  193. @media only screen and (min-width: 576px) {
  194. .resPortfolioSection {
  195. margin-bottom: 140px;
  196. }
  197. }
  198. /* Medium devices (landscape tablets, 768px and up) */
  199. @media only screen and (min-width: 768px) {
  200. .resPortfolioSection {
  201. margin-bottom: 50px;
  202. }
  203. }
  204. /* Large devices (laptops/desktops, 992px and up) */
  205. @media only screen and (min-width: 992px) {
  206. .resPortfolioSection {
  207. margin-bottom: 60px;
  208. }
  209. }
  210. /* Extra large devices (large laptops and desktops, 1200px and up) */
  211. @media only screen and (min-width: 1200px) {
  212. .resPortfolioSection {
  213. margin-bottom: 80px;
  214. }
  215. }
  216. </style>