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
6fe66039
Commit
6fe66039
authored
Oct 19, 2022
by
lmf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改详情页面弹窗口效果
parent
ce62da86
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
32 deletions
+35
-32
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/addto.phtml
+2
-31
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/addtocart.phtml
+33
-1
No files found.
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/addto.phtml
View file @
6fe66039
...
...
@@ -41,7 +41,7 @@
</style>
<div
style=
"width: 100%"
class=
"product-view-freeshipping"
>
<div
class=
"product-intro__freeshipping product-intro__bg-none"
>
<div
class=
"product-intro__freeshipping-abt action"
data-trigger=
"trigger-freeshipping"
>
<div
class=
"product-intro__freeshipping-abt action"
id=
"freeshipping-button"
>
<div
class=
"product-intro__freeshipping-icon shipping "
><i
class=
"svgicon svgicon-gd-shipping"
></i>
<p>
Fast Delivery
</p>
<span
class=
"svgicon svgicon-gd-more-grey product-intro__freeshipping-more"
></span>
</div>
...
...
@@ -49,7 +49,7 @@
<p>
Estimated to be delivered on
<span
id=
"deliveredTime"
>
11/25/2021 - 12/03/2021
</span>
.
</p>
</div>
</div>
<div
class=
"product-intro__freeshipping-item full-line paddingTop-0 paddingBottom-0 action"
data-trigger=
"trigger-freeshipping-more
"
>
<div
class=
"product-intro__freeshipping-item full-line paddingTop-0 paddingBottom-0 action"
id=
"free-return-button
"
>
<div
class=
"product-intro__freeshipping-icon"
>
<i
class=
"svgicon svgicon-gd-freereturn"
></i><p>
Free Return
&
Exchange
</p>
<span
class=
"svgicon svgicon-gd-more-grey product-intro__freeshipping-more"
></span>
</div>
<div
class=
"product-intro__freeshipping-desc"
>
Learn More
...
...
@@ -263,34 +263,5 @@ if ($description) :
$
(
".desction-right.description.info-desc"
).
html
(
"+"
);
}
})
setTimeout
(
function
(){
$
(
"#product-intro-fast-delivery"
).
show
();
$
(
"#product-intro-free-return"
).
show
();
},
5000
);
});
</script>
<div
data-bind=
"mageInit: {
'Magento_Ui/js/modal/modal':{
'type': 'popup',
'title': '',
'trigger': '[data-trigger=trigger-freeshipping]',
'responsive': true,
'buttons' : []
}}"
>
<div
class=
"content"
style=
"display: none"
id=
"product-intro-fast-delivery"
>
<?php
echo
$block
->
getLayout
()
->
createBlock
(
'Magento\Cms\Block\Block'
)
->
setBlockId
(
'product-intro-fast-delivery'
)
->
toHtml
();
?>
</div>
</div>
<div
data-bind=
"mageInit: {
'Magento_Ui/js/modal/modal':{
'type': 'popup',
'title': '',
'trigger': '[data-trigger=trigger-freeshipping-more]',
'responsive': true,
'buttons' : []
}}"
>
<div
class=
"content"
style=
"display: none"
id=
"product-intro-free-return"
>
<?php
echo
$block
->
getLayout
()
->
createBlock
(
'Magento\Cms\Block\Block'
)
->
setBlockId
(
'product-intro-free-return'
)
->
toHtml
();
?>
</div>
</div>
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/addtocart.phtml
View file @
6fe66039
...
...
@@ -63,6 +63,26 @@
$
(
"#wishlist"
).
html
(
$
(
".product-addto-links > div:first"
).
html
());
/*open*/
$
(
'body'
).
delegate
(
'#product-intro__freeshipping-more-3'
,
'click'
,
function
(
data
)
{
$
(
"#size-chart"
).
show
();
if
(
isMobile
()){
$
(
".lis"
).
slideToggle
(
"slow"
);
}
else
{
$
(
"#areaMask"
).
fadeIn
();
$
(
"#areaLayer"
).
animate
({
"right"
:
0
});
}
});
$
(
'#free-return-button'
).
click
(
function
(
data
)
{
$
(
"#free-return"
).
show
();
if
(
isMobile
()){
$
(
".lis"
).
slideToggle
(
"slow"
);
}
else
{
$
(
"#areaMask"
).
fadeIn
();
$
(
"#areaLayer"
).
animate
({
"right"
:
0
});
}
});
$
(
'#freeshipping-button'
).
click
(
function
(
data
)
{
$
(
"#freeshipping"
).
show
();
if
(
isMobile
()){
$
(
".lis"
).
slideToggle
(
"slow"
);
}
else
{
...
...
@@ -76,6 +96,9 @@
$
(
"#areaLayer"
).
animate
({
"right"
:
"-100%"
});
$
(
'#remen'
).
show
();
$
(
".lis"
).
slideToggle
(
"slow"
);
$
(
"#free-return"
).
hide
();
$
(
"#size-chart"
).
hide
();
$
(
"#freeshipping"
).
hide
();
}
/*close*/
...
...
@@ -106,12 +129,21 @@
<section
id=
"areaLayer"
class=
"express-area-box"
>
<article
id=
"areaBox"
>
<ul
class=
"remen"
id=
"remen"
>
<li
class=
"lastli lastli-left"
>
Size Chart
</li>
<li
class=
"lastli lastli-left"
></li>
<li
class=
"lastli lastli-right"
style=
"cursor:pointer"
>
X
</li>
</ul>
<div
class=
"area-content"
>
<div
id=
"size-chart"
style=
"display: none;"
>
<?php
echo
$block
->
getLayout
()
->
createBlock
(
'Magento\Cms\Block\Block'
)
->
setBlockId
(
'product-intro-size-chart'
)
->
toHtml
();
?>
</div>
<div
id=
"free-return"
style=
"display: none;"
>
<?php
echo
$block
->
getLayout
()
->
createBlock
(
'Magento\Cms\Block\Block'
)
->
setBlockId
(
'product-intro-free-return'
)
->
toHtml
();
?>
</div>
<div
id=
"freeshipping"
style=
"display: none;"
>
<?php
echo
$block
->
getLayout
()
->
createBlock
(
'Magento\Cms\Block\Block'
)
->
setBlockId
(
'product-intro-fast-delivery'
)
->
toHtml
();
?>
</div>
</div>
<ul
id=
"areaList"
class=
"area-list"
style=
"margin-bottom: 500px;"
></ul>
</article>
</section>
...
...
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