Kaynağa Gözat

Videos Fix

master
30117125 4 yıl önce
ebeveyn
işleme
059717b9cc

+ 9
- 3
src/components/property/commercial/singleView/contentSection.vue Dosyayı Görüntüle

@@ -7,7 +7,7 @@
7 7
             <iframe
8 8
               v-if="property.video !== null"
9 9
               width="100%"
10
-              src="https://www.youtube.com/embed/watch_popup?v=qKgHJYzWtVA"
10
+              :src="'https://www.youtube.com/embed/' + property.video"
11 11
               frameborder="0"
12 12
               allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
13 13
               allowfullscreen
@@ -130,12 +130,12 @@
130 130
             style="margin-bottom:-6px"
131 131
             class="mt-3"
132 132
           ></iframe>
133
-
134 133
           <h4 v-if="property.video !== null" class="mt-5">Video</h4>
135 134
           <iframe
136 135
             v-if="property.video !== null"
137 136
             width="100%"
138
-            src="https://www.youtube.com/embed/watch_popup?v=qKgHJYzWtVA"
137
+            height="500px"
138
+            :src="'https://www.youtube.com/embed/' + property.video"
139 139
             frameborder="0"
140 140
             allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
141 141
             allowfullscreen
@@ -178,6 +178,12 @@ export default {
178 178
   },
179 179
   created() {},
180 180
   mounted() {
181
+    if (this.property.video === "") {
182
+      this.property.video = null;
183
+    }
184
+    if (this.property.virtualTour === "") {
185
+      this.property.virtualTour = null;
186
+    }
181 187
     this.$emit("Loaded", true);
182 188
   }
183 189
 };

+ 10
- 3
src/components/property/residential/singleView/contentSection.vue Dosyayı Görüntüle

@@ -7,7 +7,7 @@
7 7
             <iframe
8 8
               v-if="property.video != null"
9 9
               width="100%"
10
-              src="https://www.youtube.com/embed/watch_popup?v=qKgHJYzWtVA"
10
+              :src="'https://www.youtube.com/embed/' + property.video"
11 11
               frameborder="0"
12 12
               allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
13 13
               allowfullscreen
@@ -128,11 +128,11 @@
128 128
               </div>
129 129
             </div>
130 130
           </div>
131
-
132 131
           <h4 v-if="property.virtualTour != null" style="margin-top:150px">Virtual Tour</h4>
133 132
           <iframe
134 133
             v-if="property.virtualTour != null"
135 134
             width="100%"
135
+            height="500px"
136 136
             :src="property.virtualTour"
137 137
             frameborder="0"
138 138
             allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
@@ -145,7 +145,8 @@
145 145
           <iframe
146 146
             v-if="property.video != null"
147 147
             width="100%"
148
-            src="https://www.youtube.com/embed/watch_popup?v=qKgHJYzWtVA"
148
+            height="500px"
149
+            :src="'https://www.youtube.com/embed/' + property.video"
149 150
             frameborder="0"
150 151
             allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
151 152
             allowfullscreen
@@ -190,6 +191,12 @@ export default {
190 191
     //this.getListsForPropertyEdit(this.property.id);
191 192
   },
192 193
   async mounted() {
194
+    if (this.property.video === "") {
195
+      this.property.video = null;
196
+    }
197
+    if (this.property.virtualTour === "") {
198
+      this.property.virtualTour = null;
199
+    }
193 200
     this.currentUrl = window.location.origin + this.$route.fullPath;
194 201
   },
195 202
   data() {

Loading…
İptal
Kaydet