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
633987ca
Commit
633987ca
authored
Sep 29, 2022
by
王东红
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://47.99.244.21:9999/root/joshine
parents
be3bb977
be2586fd
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
115 additions
and
89 deletions
+115
-89
app/design/frontend/Joshine/breeze/Magento_Catalog/layout/default_head_blocks.xml
+0
-13
app/design/frontend/Joshine/breeze/Magento_Catalog/requirejs-config.js
+7
-4
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/addto.phtml
+69
-0
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/addtocart.phtml
+22
-1
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/attribute.phtml
+3
-66
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/gallery.phtml
+10
-5
app/design/frontend/Joshine/breeze/Magento_Catalog/web/js/smartphoto.js
+0
-0
app/design/frontend/Joshine/breeze/web/css/_custom.less
+4
-0
No files found.
app/design/frontend/Joshine/breeze/Magento_Catalog/layout/default_head_blocks.xml
deleted
100644 → 0
View file @
be3bb977
<?xml version="1.0"?>
<!--
/**
* @author JaJuMa GmbH <info@jajuma.de>
* @copyright Copyright (c) 2020 JaJuMa GmbH <https://www.jajuma.de>. All rights reserved.
* @license http://opensource.org/licenses/mit-license.php MIT License
*/
-->
<page
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"urn:magento:framework:View/Layout/etc/page_configuration.xsd"
>
<head>
<css
src=
"css/smartphoto.min.css"
rel=
"stylesheet"
type=
"text/css"
/>
</head>
</page>
app/design/frontend/Joshine/breeze/Magento_Catalog/requirejs-config.js
View file @
633987ca
var
config
=
{
map
:
{
'*'
:
{
smartphoto
:
'Magento_Catalog/js/smartphoto.min'
paths
:
{
'smartphoto'
:
'Magento_Catalog/js/smartphoto.min'
},
shim
:
{
'smartphoto'
:
{
deps
:
[
'jquery'
]
}
}
}
};
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/addto.phtml
View file @
633987ca
...
...
@@ -173,3 +173,72 @@
}
</style>
</div>
<style>
.joshine-desction
{
width
:
100%
;
}
.joshine-desction
.desction-left
{
width
:
90%
;
flot
:
left
;
font-size
:
small
;
font-weight
:
bolder
;
color
:
#000
;
}
.joshine-desction
.desction-right
{
width
:
10%
;
float
:
right
;
text-align
:
end
;
font-size
:
larger
;
color
:
#000
;
font-weight
:
600
;
}
.joshine-desction
.desction-info
{
padding
:
10px
;
margin
:
10px
;
font-size
:
small
;
}
</style>
<?php
$short_description
=
$this
->
helper
(
Magento\Catalog\Helper\Output
::
class
)
->
productAttribute
(
$block
->
getShortDescription
(),
$block
->
getProduct
()
->
getShortDescription
(),
'short_description'
);
$description
=
$this
->
helper
(
Magento\Catalog\Helper\Output
::
class
)
->
productAttribute
(
$block
->
getProduct
(),
$block
->
getProduct
()
->
getDescription
(),
'description'
);
?>
<div
class=
"joshine-desction"
>
<div
id=
"accordion"
data-mage-init=
'{
"accordion":{
"active": [1, 2],
"collapsible": true,
"openedState": "active",
"multipleCollapsible": true
}}'
>
<div
data-role=
"collapsible"
>
<div
data-role=
"trigger"
>
<a
class=
"desction-left info-desc"
href=
"#"
>
Description
</a>
<a
class=
"desction-right info-desc"
href=
"#"
>
+
</a>
</div>
</div>
<div
data-role=
"content"
>
<div
class=
"desction-info"
>
<?php
echo
$short_description
.
"<br />"
.
$description
;
?>
</div>
</div>
</div>
</div>
<script>
require
([
'jquery'
],
function
(
$
)
{
$
(
".info-desc"
).
click
(
function
()
{
$
(
".desction-right"
).
html
(
"-"
);
})
});
</script>
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/addtocart.phtml
View file @
633987ca
...
...
@@ -42,12 +42,27 @@
margin-top
:
-20px
;
margin-bottom
:
10px
;
}
#wishlist
{
display
:
none
;
}
}
@media
(
min-width
:
780px
)
{
#wishlist
{
width
:
10%
;
float
:
left
;
padding
:
3px
;
display
:
block
;
}
.product-addto-links
{
display
:
none
;
}
}
</style>
<?php
$_product
=
$block
->
getProduct
();
?>
<?php
$buttonTitle
=
__
(
'ADD TO CART'
);
?>
<?php
if
(
$_product
->
isSaleable
())
:?>
<
div
class
="
box
-
tocart
">
<div id="
wishlist
"></div>
<div class="
fieldset
">
<?php if (
$block->shouldRenderQuantity
()) :?>
<div class="
field
qty
">
...
...
@@ -91,5 +106,11 @@
max-width
:
100%
;
font-weight
:
600
;
}
</style>
<script>
require
([
'jquery'
],
function
(
$
)
{
$
(
"#wishlist"
).
html
(
$
(
".product-addto-links > div:first"
).
html
());
});
</script>
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/attribute.phtml
View file @
633987ca
...
...
@@ -45,84 +45,21 @@ if ($_attributeType && $_attributeType == 'text') {
}
?>
<style>
.joshine-desction
{
width
:
100%
;
}
.joshine-desction
.desction-left
{
width
:
90%
;
flot
:
left
;
font-size
:
small
;
font-weight
:
bolder
;
color
:
#000
;
}
.joshine-desction
.desction-right
{
width
:
10%
;
float
:
right
;
text-align
:
end
;
font-size
:
larger
;
color
:
#000
;
font-weight
:
600
;
}
.joshine-desction
.desction-info
{
padding
:
10px
;
margin
:
10px
;
font-size
:
small
;
}
</style>
<?php
if
(
$_attributeValue
)
:?>
<?
php
//print_r($_attributeAddAttribute);
?>
<
div
class
="
product
attribute
<?=
$block
->
escapeHtmlAttr
(
$_className
)
?>
">
<?php
if
(
$renderLabel
)
:?>
<
strong
class
="
type
"><?=
$block->escapeHtml
(
$_attributeLabel
) ?></strong>
<?php endif; ?>
<div class="
value
" <?= /* @noEscape */
$_attributeAddAttribute
?>>
<!--商品描述部分-->
<?php if(
$_attributeAddAttribute
== 'itemprop="
description
"'): ?>
<div class="
joshine
-
desction
">
<div id="
accordion
" data-mage-init='{
"
accordion
":{
"
active
": [1, 2],
"
collapsible
": true,
"
openedState
": "
active
",
"
multipleCollapsible
": true
}}'>
<div data-role="
collapsible
">
<div data-role="
trigger
">
<a class="
desction
-
left
info
-
desc
" href="
#">Description</a>
<
a
class
="
desction
-
right
info
-
desc
" href="
#">+</a>
</
div
>
</
div
>
<
div
data
-
role
=
"content"
>
<
div
class
="
desction
-
info
">
<?= /* @noEscape */
$_attributeValue
?>
<?= /* @noEscape */
$this->helper
(Magento\Catalog\Helper\Output::class)->productAttribute(
$block->getProduct
(),
$block->getProduct
()->getDescription(),
'description'
) ?>
</div>
</div>
</div>
</div>
<?php else:?>
<?php if(
$_attributeAddAttribute
!= 'itemprop="
description
"'): ?>
<?= /* @noEscape */
$_attributeValue
?>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<script>
require([
'jquery'
], function ($) {
$("
.
info
-
desc
").click(function () {
$("
.
desction
-
right
").html("
-
");
})
});
</script>
...
...
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/gallery.phtml
View file @
633987ca
...
...
@@ -34,9 +34,6 @@ $thumbSizes = $responsiveImageHelper->getSizes('product_page_image_small');
}
}
@media
(
max-width
:
768px
){
.breeze-gallery
.thumbnails
,
.breeze-gallery
.prev
,
.breeze-gallery
.next
{
display
:
none
;
}
.main-image-wrapper
>
img
{
display
:
none
;
}
...
...
@@ -52,6 +49,12 @@ $thumbSizes = $responsiveImageHelper->getSizes('product_page_image_small');
margin-left
:
2px
;
height
:
auto
;
}
.main-image-wrapper
.mobile-pic
>
a
>
img
{
max-width
:
80%
;
}
.breeze-gallery
.thumbnails
,
.breeze-gallery
.prev
,
.breeze-gallery
.next
{
display
:
none
;
}
}
</style>
...
...
@@ -190,8 +193,11 @@ $thumbSizes = $responsiveImageHelper->getSizes('product_page_image_small');
</style>
<script>
require
([
'jquery'
,
'smartphoto'
'jquery'
],
function
(
$
)
{
$
(
".thumbnails > a"
).
removeClass
(
"active"
);
$
(
".thumbnails > a:first"
).
addClass
(
"active"
);
$
(
".thumbnails > a"
).
mouseover
(
function
(
s
)
{
var
main_img
=
$
(
this
).
attr
(
"name"
);
$
(
".main-image"
).
attr
(
"src"
,
main_img
);
...
...
@@ -226,7 +232,6 @@ $thumbSizes = $responsiveImageHelper->getSizes('product_page_image_small');
}
$
(
".main-image"
).
attr
(
"src"
,
sd
);
});
$
(
".js-smartPhoto"
).
SmartPhoto
();
});
</script>
app/design/frontend/Joshine/breeze/Magento_Catalog/web/js/smartphoto.
min.
js
→
app/design/frontend/Joshine/breeze/Magento_Catalog/web/js/smartphoto.js
View file @
633987ca
File moved
app/design/frontend/Joshine/breeze/web/css/_custom.less
View file @
633987ca
...
...
@@ -1842,6 +1842,10 @@ background-color: #000;
display: block !important;
}
//产品色块选中错位处理
#product-options-wrapper .swatch-option.image:hover{
border: none;
}
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