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
15ddeec4
Commit
15ddeec4
authored
Sep 23, 2022
by
lmf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加尺码弹框
优化产品详情几个弹框模板
parent
ce68fcc0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
23 deletions
+27
-23
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/addto.phtml
+0
-0
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/addto/compare.phtml
+2
-3
app/design/frontend/Joshine/breeze/Magento_Cms/templates/default/home.phtml
+3
-19
app/design/frontend/Joshine/breeze/web/css/_custom.less
+1
-1
app/design/frontend/Joshine/breeze/web/js/breeze/custom.js
+21
-0
No files found.
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/addto.phtml
View file @
15ddeec4
This diff is collapsed.
Click to expand it.
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/addto/compare.phtml
View file @
15ddeec4
...
...
@@ -6,11 +6,9 @@
/** @var $block \Magento\Catalog\Block\Product\View\Addto\Compare */
?>
<?php
$viewModel
=
$block
->
getData
(
'addToCompareViewModel'
);
?>
<?php
if
(
$viewModel
->
isAvailableForCompare
(
$block
->
getProduct
()))
:?>
<
a
href
=
"#"
data
-
post
=
'<?= /* @noEscape */ $block->getPostDataParams() ?>'
data
-
role
=
"add-to-links"
class
="
action
tocompare
"><span><?=
$block->escapeHtml
(__('Add to Compare')) ?></span></a>
<?php endif; ?>
<?php endif; ?>
\ No newline at end of file
app/design/frontend/Joshine/breeze/Magento_Cms/templates/default/home.phtml
View file @
15ddeec4
...
...
@@ -7,13 +7,13 @@
<div
id=
"box"
>
<ul
class=
"list"
>
<li
class=
"current"
>
<a
href=
"
https://www.joshine.com
/on-sale"
>
<a
href=
"/on-sale"
>
<img
src=
"/media/wysiwyg/2_1_.jpg"
alt=
"Joshine Flash Sale"
class=
"box-pc"
>
<img
src=
"/media/wysiwyg/2_M_1_.jpg"
alt=
"Joshine Flash Sale"
class=
"box-moblie"
>
</a>
</li>
<li>
<a
href=
"
https://www.joshine.com
/on-sale"
>
<a
href=
"/on-sale"
>
<img
src=
"/media/wysiwyg/1_1_.jpg"
alt=
""
class=
"box-pc"
>
<img
src=
"/media/wysiwyg/1_M_1_.jpg"
alt=
""
class=
"box-moblie"
>
</a></li>
...
...
@@ -46,7 +46,6 @@
<a
href=
"/shapewear/thongs-bodysuits-shapewear/thongs-bodysuits-shapewear"
><img
src=
"/media/wysiwyg/shopbycategory/6-thongs.png"
alt=
""
/></a>
</div>
<div
class=
"shop-by-cata"
>
<a
href=
"/shapewear/pamaleta-luggage"
><img
src=
"/media/wysiwyg/shopbycategory/7-buttlifter.png"
alt=
""
/></a>
</div>
...
...
@@ -57,23 +56,10 @@
</div>
<?php
/**
* Template for displaying new products widget
*
* @var $block \Magento\Catalog\Block\Product\Widget\NewWidget
*/
// phpcs:disable Magento2.Files.LineLength.MaxExceeded
// phpcs:disable Magento2.Templates.ThisInTemplate.FoundThis
$type
=
'widget-new-grid'
;
$mode
=
'grid'
;
$image
=
'new_products_content_widget_grid'
;
?>
<div
class=
"block widget block-new-products
<?=
/* @noEscape */
$mode
?>
"
>
<div
class=
"block-title"
>
<strong
role=
"heading"
aria-level=
"2"
>
NEW ARRIVALS
</strong>
...
...
@@ -82,8 +68,6 @@ $image = 'new_products_content_widget_grid';
<?=
/* @noEscape */
'<!-- '
.
$image
.
'-->'
?>
<div
class=
"products-
<?=
/* @noEscape */
$mode
?>
<?=
/* @noEscape */
$mode
?>
"
>
<ol
class=
"product-items
<?=
/* @noEscape */
$type
?>
"
>
<?php
$templateType
=
\Magento\Catalog\Block\Product\ReviewRendererInterface
::
SHORT_VIEW
;
$news_ids
=
explode
(
','
,
"366,244,188,193"
);
...
...
@@ -255,7 +239,7 @@ $image = 'new_products_content_widget_grid';
endforeach
;
?>
</div>
<div
class=
"view-more-flashsale"
><a
href=
"
https://www.joshine.com
/flashsale-0422?product_list_order=price_low"
>
View More
</a></div>
<div
class=
"view-more-flashsale"
><a
href=
"/flashsale-0422?product_list_order=price_low"
>
View More
</a></div>
</div>
</div>
...
...
app/design/frontend/Joshine/breeze/web/css/_custom.less
View file @
15ddeec4
...
...
@@ -1540,7 +1540,7 @@ margin-top: 0px;
}
.product-info-price .price-box{
margin-top: -
1
0px;
margin-top: -
3
0px;
}
.product-add-form .box-tocart {
...
...
app/design/frontend/Joshine/breeze/web/js/breeze/custom.js
View file @
15ddeec4
...
...
@@ -43,4 +43,24 @@
},
function
(){
timer
=
setInterval
(
autoPlay
,
3000
);
})
//产品详情调取block
$
(
'#product-intro__freeshipping-more'
).
click
(
function
()
{
$
(
'.mask'
).
removeClass
(
'hide'
);
$
(
'.prompt_cont.f1'
).
css
(
'display'
,
'block'
);
});
$
(
'#product-intro__freeshipping-more-2'
).
click
(
function
()
{
$
(
'.mask'
).
removeClass
(
'hide'
);
$
(
'.prompt_cont.f2'
).
css
(
'display'
,
'block'
);
});
$
(
'#product-intro__freeshipping-more-3'
).
click
(
function
()
{
$
(
'.mask'
).
removeClass
(
'hide'
);
$
(
'.prompt_cont.f3'
).
css
(
'display'
,
'block'
);
});
$
(
'.product-intro-prompt_cancel'
).
click
(
function
()
{
$
(
'.mask'
).
addClass
(
'hide'
);
$
(
'.prompt_cont.f1'
).
css
(
'display'
,
'none'
);
$
(
'.prompt_cont.f2'
).
css
(
'display'
,
'none'
);
$
(
'.prompt_cont.f3'
).
css
(
'display'
,
'none'
);
})
})();
\ No newline at end of file
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