video playing issue on velocity
This commit is contained in:
parent
8ae86f2fd1
commit
b979fc0c3f
|
|
@ -304,12 +304,12 @@
|
|||
});
|
||||
|
||||
if (this.simpleProduct) {
|
||||
this.config.variant_images[this.simpleProduct].forEach(function(video) {
|
||||
galleryImages.unshift(video)
|
||||
this.config.variant_images[this.simpleProduct].forEach(function(image) {
|
||||
galleryImages.unshift(image)
|
||||
});
|
||||
|
||||
this.config.variant_videos[this.simpleProduct].forEach(function(image) {
|
||||
galleryImages.unshift(image)
|
||||
this.config.variant_videos[this.simpleProduct].forEach(function(video) {
|
||||
galleryImages.unshift(video)
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -318,15 +318,21 @@
|
|||
});
|
||||
|
||||
if (this.simpleProduct) {
|
||||
this.config.variant_images[this.simpleProduct].forEach(function(video) {
|
||||
galleryImages.unshift(video)
|
||||
});
|
||||
|
||||
this.config.variant_videos[this.simpleProduct].forEach(function(image) {
|
||||
this.config.variant_images[this.simpleProduct].forEach(function(image) {
|
||||
galleryImages.unshift(image)
|
||||
});
|
||||
|
||||
this.config.variant_videos[this.simpleProduct].forEach(function(video) {
|
||||
galleryImages.unshift(video)
|
||||
});
|
||||
}
|
||||
|
||||
galleryImages.forEach(function(image){
|
||||
if (image.type == 'video') {
|
||||
image.small_image_url = image.medium_image_url = image.large_image_url = image.original_image_url= image.video_url;
|
||||
}
|
||||
});
|
||||
|
||||
eventBus.$emit('configurable-variant-update-images-event', galleryImages);
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue