Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHO-ACTIVITY-PHP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xuqi
9 years ago
Commit
fdc33d9fe120ab94786bc2219c68d0d2c45f7e3c
1 parent
6e6d5f67
sort list
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
80 additions
and
0 deletions
docs/web-data-structure.md
template/www.yohobuy.com/actions/product/index/list.phtml
web-static/sass/product/_list.scss
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Index.php
docs/web-data-structure.md
View file @
fdc33d9
...
...
@@ -553,6 +553,14 @@
]
},
//分类介绍
sortIntro: {
name: '',
enName: '',
desc: '',
img: ''
},
...,//标准页面内容,见上
}
}
...
...
template/www.yohobuy.com/actions/product/index/list.phtml
View file @
fdc33d9
...
...
@@ -60,6 +60,17 @@
</div>
{
{/
shopEntry
}
}
{
{#
sortIntro
}
}
<div
class=
"sort-intro clearfix"
>
<div
class=
"texts pull-left"
>
<p
class=
"name"
>
{
{name
}
}</p>
<p
class=
"en-name"
>
{
{enName
}
}</p>
<p
class=
"desc"
>
{
{description
}
}</p>
</div>
<img
class=
"pull-right img"
src=
"{{img}}"
>
</div>
{
{/
sortIntro
}
}
{
{>
product/standard-content
}
}
{
{>
product/latest-walk
}
}
...
...
web-static/sass/product/_list.scss
View file @
fdc33d9
...
...
@@ -85,4 +85,59 @@
}
}
}
.sort-intro
{
margin-bottom
:
20px
;
.texts
{
width
:
386px
;
height
:
298px
;
padding
:
0
50px
;
border
:
1px
solid
#eaeceb
;
text-align
:
center
;
}
.name
{
font-size
:
30px
;
font-weight
:
bold
;
margin-top
:
60px
;
}
.en-name
{
font-size
:
14px
;
font-weight
:
bold
;
}
.desc
{
margin-top
:
15px
;
color
:
#666
;
margin-top
:
15px
;
font-size
:
12px
;
line-height
:
150%
;
}
.img
{
width
:
480px
;
height
:
300px
;
}
}
}
@media
(
max-width
:
1180px
)
{
.product-list-page
.sort-intro
{
.texts
{
width
:
346px
;
height
:
248px
;
padding
:
0
30px
;
}
.name
{
margin-top
:
30px
;
}
.img
{
width
:
400px
;
height
:
250px
;
}
}
}
\ No newline at end of file
...
...
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Index.php
View file @
fdc33d9
...
...
@@ -424,6 +424,12 @@ class IndexController extends AbstractAction
)
)
),
'sortIntro'
=>
array
(
'name'
=>
'羽绒服'
,
'enName'
=>
'DOWN COAT'
,
'desc'
=>
'羽绒服是冬季必不可少的服饰之一,冬天的街头充斥着各种各样的羽绒服,特别是在北方。时下羽绒服融入了毛领、收腰等时尚元素,更显潮人们的完美身材。'
,
'img'
=>
'http://img13.static.yhbimg.com/adpic/2015/12/22/06/0276abe61367884cea21b779e47141891b.jpg'
),
'filters'
=>
array
(
'checkedConditions'
=>
array
(
'conditions'
=>
array
(
...
...
Please
register
or
login
to post a comment