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
unknown
9 years ago
Commit
7360d65dab7dca69d2fc114a4758465cf56f85e7
1 parent
7fb9ac27
男首数据结构、模板修改
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
126 additions
and
104 deletions
template/www.yohobuy.com/actions/index/boys/index.phtml
web-static/js/home/home.js
web-static/sass/home/_index.scss
yohobuy/www.yohobuy.com/application/controllers/Boys.php
template/www.yohobuy.com/actions/index/boys/index.phtml
View file @
7360d65
{
{>
layout/header
}
}
<div
class=
"home-page yoho-page"
>
{
{#
boy
}
}
{
{!
头部banner
}
}
{
{#
slide
}
}
<div
class=
"slide-container"
>
{
{#if
bigSlide
}
}
<div
class=
"big-slide"
>
<ul>
{
{#
bigSlide
}
}
...
...
@@ -22,7 +24,6 @@
</a>
</div>
</div>
{
{/if
}
}
{
{#if
smallSlide
}
}
<div
class=
"small-slide"
>
...
...
@@ -37,6 +38,9 @@
</div>
{
{/if
}
}
</div>
{
{/
slide
}
}
{
{!
新品速报
}
}
{
{#
newReport
}
}
<div
class=
"new-report clearfix"
>
{
{>
index/floor_header
}
}
...
...
@@ -46,7 +50,7 @@
{
{#unless
@last
}
}
<li>
<a
href=
"{{href}}"
>
<img
src
=
"{{img}}"
alt=
""
>
<img
class=
"lazy"
data-original
=
"{{img}}"
alt=
""
>
</a>
</li>
{
{/unless
}
}
...
...
@@ -57,13 +61,15 @@
{
{#if
@last
}
}
<div
class=
"last-item"
>
<a
href=
"{{href}}"
>
<img
src
=
"{{img}}"
alt=
""
>
<img
class=
"lazy"
data-original
=
"{{img}}"
alt=
""
>
</a>
</div>
{
{/if
}
}
{
{/
list
}
}
</div>
{
{/
newReport
}
}
{
{!
优选品牌
}
}
{
{#
preferenceBrand
}
}
<div
class=
"preference-brand"
>
{
{>
index/floor_header
}
}
...
...
web-static/js/home/home.js
View file @
7360d65
...
...
@@ -5,13 +5,14 @@
*/
var
$
=
require
(
'jquery'
),
Handlebars
=
require
(
'yoho.handlebars'
);
Handlebars
=
require
(
'yoho.handlebars'
),
lazyload
=
require
(
'yoho.lazyload'
);
require
(
'../common/linkage-slider'
);
require
(
'../common/slider2'
);
require
(
'../common/newArrivls'
);
lazyload
(
$
(
'img.lazy'
));
$
(
'.slide-container'
).
linkageSlider
();
$
(
'.img-brand'
).
slider2
();
...
...
web-static/sass/home/_index.scss
View file @
7360d65
...
...
@@ -118,6 +118,8 @@
.new-report
{
img
{
display
:
block
;
width
:
100%
;
height
:
100%
;
}
.report-list
{
float
:
left
;
...
...
@@ -133,6 +135,7 @@
width
:
282px
;
height
:
504px
;
}
}
}
...
...
yohobuy/www.yohobuy.com/application/controllers/Boys.php
View file @
7360d65
...
...
@@ -265,113 +265,125 @@ class BoysController extends AbstractAction
$data
=
array
(
'headerdata'
=>
$headerdata
,
'boysHomePage'
=>
true
,
'boy'
=>
array
(
'bigSlide'
=>
array
(
array
(
'href'
=>
'/?gender=1,3'
,
'img'
=>
'http://img10.static.yhbimg.com/taobaocms/2015/11/26/12/01c3b99f554ad50d9e5a9900719715c94c.jpg'
),
array
(
'href'
=>
'/?gender=1,3'
,
'img'
=>
'http://img12.static.yhbimg.com/taobaocms/2015/11/27/09/02a4f1c10e1e81574520e5c0239741a076.jpg'
)
),
'smallSlide'
=>
array
(
array
(
'href'
=>
'http://sale.yohobuy.com/?specialsale_id=13&gender=1,3'
,
'img'
=>
'http://img13.static.yhbimg.com/taobaocms/2015/11/26/12/024a810cfa89d67569c6c3bacedba8869a.jpg?imageMogr2/thumbnail/138x54/extent/138x54/background/d2hpdGU=/position/center/quality/90'
),
array
(
'href'
=>
'http://sale.yohobuy.com/?specialsale_id=13&gender=1,3'
,
'img'
=>
'http://img10.static.yhbimg.com/taobaocms/2015/11/27/09/015b6a29ee526edeaacd13f4a7c81475f0.jpg?imageMogr2/thumbnail/138x54/extent/138x54/background/d2hpdGU=/position/center/quality/90'
'boy'
=>
array
(
array
(
'slide'
=>
array
(
'bigSlide'
=>
array
(
array
(
'href'
=>
'/?gender=1,3'
,
'img'
=>
'http://img10.static.yhbimg.com/taobaocms/2015/11/26/12/01c3b99f554ad50d9e5a9900719715c94c.jpg'
),
array
(
'href'
=>
'/?gender=1,3'
,
'img'
=>
'http://img12.static.yhbimg.com/taobaocms/2015/11/27/09/02a4f1c10e1e81574520e5c0239741a076.jpg'
)
),
'smallSlide'
=>
array
(
array
(
'href'
=>
'http://sale.yohobuy.com/?specialsale_id=13&gender=1,3'
,
'img'
=>
'http://img13.static.yhbimg.com/taobaocms/2015/11/26/12/024a810cfa89d67569c6c3bacedba8869a.jpg?imageMogr2/thumbnail/138x54/extent/138x54/background/d2hpdGU=/position/center/quality/90'
),
array
(
'href'
=>
'http://sale.yohobuy.com/?specialsale_id=13&gender=1,3'
,
'img'
=>
'http://img10.static.yhbimg.com/taobaocms/2015/11/27/09/015b6a29ee526edeaacd13f4a7c81475f0.jpg?imageMogr2/thumbnail/138x54/extent/138x54/background/d2hpdGU=/position/center/quality/90'
)
)
)
),
'newReport'
=>
array
(
array
(
'newReport'
=>
array
(
'name'
=>
'最新速报 NEW!'
,
'list'
=>
array
(
array
(
'href'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/yhb-img01/2015/11/27/03/0140fd98fd1c15c206d198d458e1c8e96f.jpg?imageView/1/w/377/h/504'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/yhb-img01/2015/11/27/03/0140fd98fd1c15c206d198d458e1c8e96f.jpg?imageView/1/w/377/h/504'
'list'
=>
array
(
array
(
'href'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/yhb-img01/2015/11/27/03/0140fd98fd1c15c206d198d458e1c8e96f.jpg?imageView/1/w/377/h/504'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/03/01b2bd814ed65013e06790a301a0eb6408.jpg?imageView/1/w/185/h/248'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/yhb-img01/2015/11/27/03/0140fd98fd1c15c206d198d458e1c8e96f.jpg?imageView/1/w/377/h/504'
)
)
)
),
'preferenceBrand'
=>
array
(
'name'
=>
'优选品牌 BRAND'
,
'imgBrand'
=>
array
(
array
(
'href'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/taobaocms/2015/11/30/01/01ebe6968476da9e79ddddfd28f60496c7.jpg'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/taobaocms/2015/11/30/01/01ebe6968476da9e79ddddfd28f60496c7.jpg'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/taobaocms/2015/11/30/01/01ebe6968476da9e79ddddfd28f60496c7.jpg'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/06/0124c4e16548b0d7aff4f0fa4ad7b13481.jpg?imageView/1/w/1150/h/450'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/06/0124c4e16548b0d7aff4f0fa4ad7b13481.jpg?imageView/1/w/1150/h/450'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/06/0124c4e16548b0d7aff4f0fa4ad7b13481.jpg?imageView/1/w/1150/h/450'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img10.static.yhbimg.com/goodsimg/2015/01/30/05/01524c049077911258735906dafd6a4b45.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img10.static.yhbimg.com/goodsimg/2015/01/30/05/01524c049077911258735906dafd6a4b45.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img10.static.yhbimg.com/goodsimg/2015/01/30/05/01524c049077911258735906dafd6a4b45.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90'
array
(
'preferenceBrand'
=>
array
(
'name'
=>
'优选品牌 BRAND'
,
'imgBrand'
=>
array
(
array
(
'href'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/taobaocms/2015/11/30/01/01ebe6968476da9e79ddddfd28f60496c7.jpg'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/taobaocms/2015/11/30/01/01ebe6968476da9e79ddddfd28f60496c7.jpg'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/taobaocms/2015/11/30/01/01ebe6968476da9e79ddddfd28f60496c7.jpg'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/06/0124c4e16548b0d7aff4f0fa4ad7b13481.jpg?imageView/1/w/1150/h/450'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/06/0124c4e16548b0d7aff4f0fa4ad7b13481.jpg?imageView/1/w/1150/h/450'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/yhb-img01/2015/11/30/06/0124c4e16548b0d7aff4f0fa4ad7b13481.jpg?imageView/1/w/1150/h/450'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img10.static.yhbimg.com/goodsimg/2015/01/30/05/01524c049077911258735906dafd6a4b45.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img10.static.yhbimg.com/goodsimg/2015/01/30/05/01524c049077911258735906dafd6a4b45.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90'
),
array
(
'href'
=>
''
,
'img'
=>
'http://img10.static.yhbimg.com/goodsimg/2015/01/30/05/01524c049077911258735906dafd6a4b45.jpg?imageMogr2/thumbnail/378x504/extent/378x504/background/d2hpdGU=/position/center/quality/90'
)
)
)
),
'recommend'
=>
array
(
$tpldata
,
$tpldata
,
$tpldata
),
'newArrivls'
=>
array
(
'name'
=>
'最新上架 NEW ARRIVALS'
,
'navs'
=>
array
(
array
(
'id'
=>
''
,
'href'
=>
''
,
'name'
=>
'MORE'
array
(
'recommend'
=>
array
(
$tpldata
,
$tpldata
,
$tpldata
)
),
array
(
'newArrivls'
=>
array
(
'name'
=>
'最新上架 NEW ARRIVALS'
,
'navs'
=>
array
(
array
(
'id'
=>
''
,
'href'
=>
''
,
'name'
=>
'MORE'
)
)
)
)
...
...
Please
register
or
login
to post a comment