diff --git a/core/pages/Product.vue b/core/pages/Product.vue index e8dc355a74..80a8598aa3 100644 --- a/core/pages/Product.vue +++ b/core/pages/Product.vue @@ -154,7 +154,7 @@ export default { }, offlineImage () { return { - src: this.getThumbnail(this.product.image, 570, 569), + src: this.getThumbnail(this.product.image, 310, 300), error: this.getThumbnail(this.product.image, 310, 300), loading: this.getThumbnail(this.product.image, 310, 300) } @@ -165,7 +165,8 @@ export default { for (let mediaItem of this.product.media_gallery) { if (mediaItem.image) { images.push({ - 'path': this.getThumbnail(mediaItem.image, 600, 744) + 'src': this.getThumbnail(mediaItem.image, 600, 744), + 'loading': this.getThumbnail(this.product.image, 310, 300) }) } } @@ -178,14 +179,16 @@ export default { Object.keys(grupedByAttribute).forEach((confChild) => { if (grupedByAttribute[confChild][0].image) { images.push({ - 'path': this.getThumbnail(grupedByAttribute[confChild][0].image, 600, 744), + 'src': this.getThumbnail(grupedByAttribute[confChild][0].image, 600, 744), + 'loading': this.getThumbnail(this.product.image, 310, 300), 'id': confChild }) } }) } else { images.push({ - 'path': this.getThumbnail(this.product.image, 600, 744) + 'src': this.getThumbnail(this.product.image, 600, 744), + 'loading': this.getThumbnail(this.product.image, 310, 300) }) } return images diff --git a/src/themes/default/components/core/ProductGallery.vue b/src/themes/default/components/core/ProductGallery.vue index 24897d69de..270199b210 100644 --- a/src/themes/default/components/core/ProductGallery.vue +++ b/src/themes/default/components/core/ProductGallery.vue @@ -7,7 +7,7 @@ close
-
+
- +
- +
@@ -42,8 +42,8 @@
@@ -69,14 +69,6 @@ export default { return { loaded: true } - }, - methods: { - isLoaded () { - this.loaded = true - } - }, - created () { - this.$Lazyload.$on('loaded', this.isLoaded) } } @@ -84,6 +76,7 @@ export default {