Kaynağa Gözat

Fix to no result carousel & obj clear on nav

master
GJWilliams87 4 yıl önce
ebeveyn
işleme
a8c624686e

+ 5
- 0
src/components/property/commercial/commercialCarouselSection.vue Dosyayı Görüntüle

@@ -133,6 +133,11 @@ export default {
133 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 142
 </script>
138 143
 

+ 6
- 0
src/components/property/commercial/commercialSearchResults.vue Dosyayı Görüntüle

@@ -43,6 +43,7 @@
43 43
       </div>
44 44
     </section> -->
45 45
     <section v-else id="intro" style="margin-bottom:-50px">
46
+      <br/>
46 47
       <div class="container">
47 48
         <div class="row d-flex justify-content-center">
48 49
           <div class="col-md-8">
@@ -138,6 +139,11 @@ export default {
138 139
     ParamsChanged() {
139 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 149
 </script>

+ 5
- 0
src/components/property/residential/residentialCarouselSection.vue Dosyayı Görüntüle

@@ -153,6 +153,11 @@ export default {
153 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 162
 </script>
158 163
 

+ 10
- 2
src/components/property/residential/residentialSearchResults.vue Dosyayı Görüntüle

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

Loading…
İptal
Kaydet