Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
joshine
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
joshine
Commits
6bce19f5
Commit
6bce19f5
authored
Sep 27, 2022
by
lmf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
手机版商品详情优化
parent
78c45168
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
4 deletions
+51
-4
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/gallery.phtml
+49
-2
app/design/frontend/Joshine/breeze/web/css/_custom.less
+2
-2
No files found.
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/gallery.phtml
View file @
6bce19f5
...
...
@@ -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>
...
...
app/design/frontend/Joshine/breeze/web/css/_custom.less
View file @
6bce19f5
...
...
@@ -1604,8 +1604,8 @@ footer{
color:#b2b2b2;
}
footer{
padding-top: 1
20
px;
margin-top: -1
4
0px;
padding-top: 1
15
px;
margin-top: -1
2
0px;
background-color: #f6f6f6;
margin-bottom: env(safe-area-inset-bottom);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment