Commit 9351b412 by 王东红

Merge branch 'master' of http://47.99.244.21:9999/root/joshine

parents be5b44c6 7bd07e33
...@@ -91,6 +91,8 @@ ...@@ -91,6 +91,8 @@
margin-top: -10px; margin-top: -10px;
font-weight: 700; font-weight: 700;
margin-left: 60%; margin-left: 60%;
width: 50%;
float: right;
} }
.action.primary.tocart{ .action.primary.tocart{
font-size: 18px; font-size: 18px;
...@@ -102,8 +104,9 @@ ...@@ -102,8 +104,9 @@
} }
@media (max-width: 780px){ @media (max-width: 780px){
#product-intro__freeshipping-more-3{ #product-intro__freeshipping-more-3{
margin-top: -20px; margin-top: 7px;
margin-bottom: 10px; float: right;
width: 20%;
} }
#wishlist{ #wishlist{
display: none; display: none;
......
<?php <?php
$images = $block->getGalleryImages()->getItems(); $images = $block->getGalleryImages()->getItems();
$mainImage = current(array_filter($images, function ($img) use ($block) { $mainImage = null;
return $block->isMainImage($img);
}));
if (!empty($images) && empty($mainImage)) { if (!empty($images) && empty($mainImage)) {
$mainImage = $block->getGalleryImages()->getFirstItem(); $mainImage = $block->getGalleryImages()->getFirstItem();
} }
$helper = $block->getData('imageHelper'); $helper = $block->getData('imageHelper');
...@@ -197,8 +196,6 @@ $thumbSizes = $responsiveImageHelper->getSizes('product_page_image_small'); ...@@ -197,8 +196,6 @@ $thumbSizes = $responsiveImageHelper->getSizes('product_page_image_small');
], function ($) { ], function ($) {
$(".thumbnails > a").removeClass("active"); $(".thumbnails > a").removeClass("active");
$(".thumbnails > a:first").addClass("active"); $(".thumbnails > a:first").addClass("active");
var main_img = $(".thumbnails > a:first").attr("name");
$(".main-image").attr("src",main_img);
$(".thumbnails > a").mouseover(function (s) { $(".thumbnails > a").mouseover(function (s) {
var main_img = $(this).attr("name"); var main_img = $(this).attr("name");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment