Commit 6bce19f5 by lmf

手机版商品详情优化

parent 78c45168
......@@ -76,9 +76,10 @@ $thumbSizes = $responsiveImageHelper->getSizes('product_page_image_small');
</a>
</div>
<div class="thumbnails <?php echo $navType ? '' : 'hidden' ?>">
<div class="thumbnails <?php echo $navType ? '' : 'hidden' ?>" style="display: none;">
<?php if (count($images) > 1) : // empty parent wrapper may be used at configurable product page ?>
<?php foreach ($images as $image) : ?>
<?php
foreach ($images as $image) : ?>
<?php
$classes = array_filter([
'item',
......@@ -102,6 +103,14 @@ $thumbSizes = $responsiveImageHelper->getSizes('product_page_image_small');
<?php endforeach ?>
<?php endif ?>
</div>
<div class="thumbnails-2" style="display: none;">
<ul class="des">
<?php
for($i=1;$i<count($images)+1;$i++) : ?>
<li><?= $i; ?></li>
<?php endfor ?>
</ul>
</div>
</div>
<script type="text/x-magento-init">
......@@ -134,6 +143,44 @@ $thumbSizes = $responsiveImageHelper->getSizes('product_page_image_small');
border-radius: 50%;
background-color: #fff;
}
@media (min-width: 768px) {
.breeze-gallery .thumbnails {
display: block !important;
}
}
@media (max-width: 768px) {
.breeze-gallery .thumbnails-2 {
display: block !important;
TEXT-ALIGN: center;
margin-top: -100px;
z-index: 999;
}
.thumbnails-2 > ul {
display: flex;
flex-flow: row nowrap;
justify-content: center;
}
.thumbnails-2 > ul li {
list-style: none;
text-align: center;
height: 15px;
font-size: 0px;
color: #000;
font-weight: 700;
background-color: #000;
width: 15px;
border-radius: 50%;
margin: 2px;
}
.active{
background-color: #fff;
color: #fff;
}
}
</style>
<script>
......
......@@ -1604,8 +1604,8 @@ footer{
color:#b2b2b2;
}
footer{
padding-top: 120px;
margin-top: -140px;
padding-top: 115px;
margin-top: -120px;
background-color: #f6f6f6;
margin-bottom: env(safe-area-inset-bottom);
}
......
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