Browse Source

Fix to no result carousel & obj clear on nav

master
GJWilliams87 4 years ago
parent
commit
a8c624686e

+ 5
- 0
src/components/property/commercial/commercialCarouselSection.vue View File

133
       this.propertySearch.suburb = place.suburb;
133
       this.propertySearch.suburb = place.suburb;
134
     },
134
     },
135
   },
135
   },
136
+  mounted() {    
137
+    this.propertySearch.city = "All";
138
+    this.propertySearch.suburb = "All";
139
+    this.propertySearch.province = "All";
140
+  }
136
 };
141
 };
137
 </script>
142
 </script>
138
 
143
 

+ 6
- 0
src/components/property/commercial/commercialSearchResults.vue View File

43
       </div>
43
       </div>
44
     </section> -->
44
     </section> -->
45
     <section v-else id="intro" style="margin-bottom:-50px">
45
     <section v-else id="intro" style="margin-bottom:-50px">
46
+      <br/>
46
       <div class="container">
47
       <div class="container">
47
         <div class="row d-flex justify-content-center">
48
         <div class="row d-flex justify-content-center">
48
           <div class="col-md-8">
49
           <div class="col-md-8">
138
     ParamsChanged() {
139
     ParamsChanged() {
139
       return null;
140
       return null;
140
     }
141
     }
142
+  },
143
+  beforeDestroy(){
144
+    this.propertySearch.city = "All";
145
+    this.propertySearch.suburb = "All";
146
+    this.propertySearch.province = "All";    
141
   }
147
   }
142
 };
148
 };
143
 </script>
149
 </script>

+ 5
- 0
src/components/property/residential/residentialCarouselSection.vue View File

153
       this.propertySearch.suburb = place.suburb;
153
       this.propertySearch.suburb = place.suburb;
154
     },
154
     },
155
   },
155
   },
156
+  mounted() {    
157
+    this.propertySearch.city = "All";
158
+    this.propertySearch.suburb = "All";
159
+    this.propertySearch.province = "All";
160
+  }
156
 };
161
 };
157
 </script>
162
 </script>
158
 
163
 

+ 10
- 2
src/components/property/residential/residentialSearchResults.vue View File

12
       :showSort="false"
12
       :showSort="false"
13
     />
13
     />
14
     <section v-else id="intro" style="margin-bottom:-50px">
14
     <section v-else id="intro" style="margin-bottom:-50px">
15
+      <br/>
15
       <div class="container">
16
       <div class="container">
16
         <div class="row d-flex justify-content-center">
17
         <div class="row d-flex justify-content-center">
17
           <div class="col-md-8">
18
           <div class="col-md-8">
29
         :items="1"
30
         :items="1"
30
         :autoplay="true"
31
         :autoplay="true"
31
         :loop="true"
32
         :loop="true"
32
-        id="intro-carousel"
33
+        id="intro-carousel_residential"
33
         style="margin-top:-50px"
34
         style="margin-top:-50px"
34
         :responsive="{ 0: { items: 1, nav: false }, 600: { items: 1, nav: false } }"
35
         :responsive="{ 0: { items: 1, nav: false }, 600: { items: 1, nav: false } }"
35
       >
36
       >
48
 /* eslint-disable */
49
 /* eslint-disable */
49
 import { mapState, mapActions } from "vuex";
50
 import { mapState, mapActions } from "vuex";
50
 import propertyCard from "../propertyCardSearch";
51
 import propertyCard from "../propertyCardSearch";
52
+import carousel from "vue-owl-carousel";
51
 
53
 
52
 export default {
54
 export default {
53
   name: "propertysearch",
55
   name: "propertysearch",
54
   components: {
56
   components: {
55
-    propertyCard
57
+    propertyCard,
58
+     carousel
56
   },
59
   },
57
   data() {
60
   data() {
58
     return {
61
     return {
107
     ParamsChanged() {
110
     ParamsChanged() {
108
       return null;
111
       return null;
109
     }
112
     }
113
+  },
114
+  beforeDestroy(){
115
+    this.propertySearch.city = "All";
116
+    this.propertySearch.suburb = "All";
117
+    this.propertySearch.province = "All";    
110
   }
118
   }
111
 };
119
 };
112
 </script>
120
 </script>

Loading…
Cancel
Save