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.

propertySearchPage.vue 7.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. <template>
  2. <!-- eslint-disable max-len -->
  3. <div class="container">
  4. <br />
  5. <div class="container col-md-12">
  6. <div class="col-sm-12">
  7. <div class="about-img-box">
  8. <img
  9. v-if="propertyUsageType === 'Residential'"
  10. src="img/Pretoria-South-Africa.jpg"
  11. alt="Property Listing"
  12. class="img-fluid"
  13. style="width:800px;height:400px; border-radius:10px"
  14. />
  15. <img
  16. v-else
  17. src="img/Johannesburg-south-africa-1.jpg"
  18. alt="Property Listing"
  19. class="img-fluid"
  20. style="width:800px;height:400px; border-radius:10px"
  21. />
  22. </div>
  23. <div class="sinse-box" style="opacity:0.7; border: white solid 3px; border-radius: 15px">
  24. <h3 class="sinse-title">Property Listing</h3>
  25. </div>
  26. </div>
  27. <br />
  28. <div class="row">
  29. <div class="col-md-2 offset-4">
  30. <button type="button" @click="SetType('Residential')" class="btn btn-b-n">Residential</button>
  31. </div>
  32. <div class="col-md-2">
  33. <button type="button" @click="SetType('Commercial')" class="btn btn-b-n">Commercial</button>
  34. </div>
  35. </div>
  36. <br />
  37. <div class="col-md-10 offset-1">
  38. <ul class="nav nav-pills-a nav-pills mb-3 section-t3" id="pills-tab" role="tablist">
  39. <li class="nav-item">
  40. <a
  41. class="nav-link active"
  42. id="pills-video-tab"
  43. data-toggle="pill"
  44. href="#pills-video"
  45. role="tab"
  46. aria-controls="pills-video"
  47. aria-selected="true"
  48. v-on:click="SetSalesType('Sale')"
  49. >For Sale</a>
  50. </li>
  51. <li class="nav-item">
  52. <a
  53. class="nav-link"
  54. id="pills-plans-tab"
  55. data-toggle="pill"
  56. href="#pills-plans"
  57. role="tab"
  58. aria-controls="pills-plans"
  59. aria-selected="false"
  60. v-on:click="SetSalesType('Rent')"
  61. >To Rent</a>
  62. </li>
  63. </ul>
  64. </div>
  65. <br />
  66. <div class="row">
  67. <autoComplete class="col-md-11 offset-1" :items="suburbList" @selection="SelectedFilter" />
  68. </div>
  69. <br />
  70. <div class="row">
  71. <div class="col-md-10 offset-1">
  72. <button
  73. type="button"
  74. class="input-group-text fa fa-search"
  75. style="color: #60CBEB"
  76. @click="SearchClick"
  77. >Search</button>
  78. </div>
  79. </div>
  80. <div class="row">
  81. <div class="col-md-12">
  82. <h1 class="my-4" v-if="propertyUsageType === 'Residential'">About Residential Properties</h1>
  83. <h1 class="my-4" v-else>About Commercial Properties</h1>
  84. </div>
  85. <div class="container col-md-6 text-left" v-if="propertyUsageType === 'Residential'">
  86. <p>
  87. Uni-Vate Properties understands the necessity in property-seekers to find that perfect
  88. fit; a home that meets, and exceeds the individual's needs. That is why, our dedicated
  89. team sources a range of property types, whether that home is a rental option near a
  90. University for a student just starting out, or a family home fit for entertaining.
  91. </p>
  92. <p>
  93. Looking to sell your residential property, instead? Uni-Vate Properties prides itself on
  94. professionalism and the right expertise, to help you secure the best possible deal for
  95. your home.
  96. </p>
  97. <p>
  98. Wish to RENT your property?
  99. <router-link to="/property/new/Residential/Rental">Click Here</router-link>
  100. </p>
  101. <p>
  102. Wish to SELL your property?
  103. <router-link to="/property/new/Residential/Sale">Click Here</router-link>
  104. </p>
  105. </div>
  106. <div class="container col-md-6 text-left" v-else>
  107. <p>
  108. Commercial properties are characteristically any larger properties that generate profit
  109. through leasing or rental activities. These properties are typically used to conduct
  110. business and provide companies with cut-and-dry leasing agreements, which keep their
  111. involvement in the maintenance of the property to a minimum, so they may focus on the
  112. growth of their company.
  113. </p>
  114. <p>
  115. Uni-Vate Properties seeks out professional, clean spaces for such companies and acts as
  116. mediator between the landlord/-lady and the tenants. Uni-Vate Properties provides
  117. value-adding service to clients and conducts business with a high standard and
  118. integrity.
  119. </p>
  120. <p>
  121. Wish to RENT your property?
  122. <router-link to="/property/new/Commercial/Rental">Click Here</router-link>
  123. </p>
  124. <p>
  125. Wish to SELL your property?
  126. <router-link to="/property/new/Commercial/Sale">Click Here</router-link>
  127. </p>
  128. </div>
  129. <div class="col-md-4">
  130. <p>
  131. <img
  132. v-if="propertyUsageType === 'Residential'"
  133. class="img-fluid"
  134. src="./../../../public/img/residential.jpg"
  135. alt="About Resale"
  136. style="border-radius:10px"
  137. />
  138. <img
  139. v-else
  140. class="img-fluid"
  141. src="./../../../public/img/commercial.jpg"
  142. alt="About Resale"
  143. style="border-radius:10px"
  144. />
  145. </p>
  146. </div>
  147. </div>
  148. <br />
  149. </div>
  150. </div>
  151. </template>
  152. <script>
  153. import { mapState, mapActions } from "vuex";
  154. import autoComplete from "../shared/autoComplete.vue";
  155. export default {
  156. name: "propertysearch",
  157. components: {
  158. autoComplete,
  159. },
  160. data() {
  161. return {
  162. propertyUsageType: "Residential",
  163. salesType: "Sale",
  164. searchText: "",
  165. };
  166. },
  167. computed: {
  168. ...mapState("propertySearch", ["suburbs", "suburbList", "propertySearch"]),
  169. },
  170. methods: {
  171. ...mapActions("propertySearch", ["applyFilter"]),
  172. SetType(item) {
  173. this.propertyUsageType = item;
  174. localStorage.propertySearchUsageType = item;
  175. },
  176. SearchClick() {
  177. const item = this.suburbs.find((s) => s.display === this.searchText);
  178. this.propertySearch.province = item.province;
  179. this.propertySearch.city = item.city;
  180. this.propertySearch.suburb = item.suburb;
  181. this.propertySearch.propertyUsageType = this.propertyUsageType;
  182. this.propertySearch.salesType = this.salesType;
  183. this.$router.push("/property/propertySearch/results");
  184. },
  185. Filter() {
  186. this.applyFilter(this.searchText);
  187. },
  188. SetSalesType(value) {
  189. this.salesType = value;
  190. },
  191. SelectedFilter(item) {
  192. this.searchText = item;
  193. },
  194. },
  195. mounted() {
  196. if (this.$route.params.propertyUsageType) {
  197. this.propertyUsageType = this.$route.params.propertyUsageType;
  198. } else if (localStorage.propertySearchUsageType) {
  199. this.propertyUsageType = localStorage.propertySearchUsageType;
  200. } else {
  201. this.propertyUsageType = "Residential";
  202. }
  203. },
  204. };
  205. </script>