Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Lynnic
9 years ago
Commit
91b9ef891f17920357b977eb1741a2c04d2724f4
1 parent
890ddf76
修改商品材质数据结构、页面结构、样式
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
24 deletions
docs/data-structure.md
static/sass/product/_product-description.scss
template/m.yohobuy.com/partials/product/product_description.phtml
docs/data-structure.md
View file @
91b9ef8
...
...
@@ -1186,9 +1186,15 @@
'materials' : {
'title' : '商品材质',
'enTitle' : '',
'img' : '',
'desc' : '用各种洗涤剂',//remark
list:[
{
'img' : '',
'desc' : '用各种洗涤剂',//remark
}
...
]
},
'washTips' : {
'list' : [
{
...
...
static/sass/product/_product-description.scss
View file @
91b9ef8
...
...
@@ -18,17 +18,22 @@
}
.materials
{
.detail
{
img
{
display
:
block
;
overflow
:
hidden
;
width
:
pxToRem
(
90px
);
height
:
pxToRem
(
120px
);
padding-right
:
pxToRem
(
20px
);
float
:
left
;
}
.material-desc
{
font-size
:
pxToRem
(
24px
);
overflow
:
hidden
;
.material-item
{
margin
:
pxToRem
(
10px
)
0
;
// width: 100%;
border-bottom
:
1px
solid
$borderC
;
img
{
display
:
block
;
overflow
:
hidden
;
width
:
pxToRem
(
90px
);
height
:
pxToRem
(
120px
);
padding-right
:
pxToRem
(
20px
);
float
:
left
;
}
.material-desc
{
font-size
:
pxToRem
(
24px
);
overflow
:
hidden
;
}
}
}
.material-type
{
...
...
template/m.yohobuy.com/partials/product/product_description.phtml
View file @
91b9ef8
...
...
@@ -74,12 +74,7 @@
{
{#list
}
}
{
{#if
@first
}
}
<div
class=
"swiper-slide first-group"
>
<!--
{
{#params
}
}
{
{#if
@first
}
{
{else
}
}
<img
class=
"lazy avatar"
data-original=
"{{param}}"
alt=
""
>
{
{/if
}
}
{
{/params
}
}
-->
</div>
{
{else
}
}
<div
class=
"swiper-slide"
>
...
...
@@ -106,15 +101,20 @@
<span
class=
"en-title"
>
{
{enTitle
}
}</span>
</h
1
>
<div
class=
"detail"
>
<img
class=
"lazy"
data-original=
"{{img}}"
alt=
""
>
<p
class=
"material-desc"
>
{
{desc
}
}
</p>
{
{#list
}
}
<div
class=
"material-item"
>
<img
class=
"lazy"
data-original=
"{{img}}"
alt=
""
>
<p
class=
"material-desc"
>
{
{desc
}
}
</p>
</div>
{
{/list
}
}
</div>
<img
class=
"lazy material-type"
data-original=
"{{materialType}}"
alt=
""
>
</div>
{
{/materials
}
}
{
{#washTips
}
}
<div
class=
"icons-wrapper washTips page-block"
>
<ul
class=
"icons-list clearfix"
>
...
...
Please
register
or
login
to post a comment