Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
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
Plain Diff
Browse Files
Authored by
梁志锋
9 years ago
Commit
f2e969821fc34609236046c915106ed001552ab8
2 parents
a245a9f5
3ceb824c
update files
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
279 additions
and
1867 deletions
library/Action/AbstractAction.php
library/Plugin/FloorProcess.php
template/m.yohobuy.com/actions/index/boys/index.phtml
template/m.yohobuy.com/actions/index/lifestyle/index.phtml
template/m.yohobuy.com/partials/common/good_info.phtml
template/m.yohobuy.com/partials/good.phtml
yohobuy/m.yohobuy.com/application/controllers/Boys.php
yohobuy/m.yohobuy.com/application/controllers/Girls.php
yohobuy/m.yohobuy.com/application/controllers/Kids.php
yohobuy/m.yohobuy.com/application/controllers/Lifestyle.php
library/Action/AbstractAction.php
View file @
f2e9698
...
...
@@ -167,18 +167,6 @@ class AbstractAction extends Controller_Abstract
return
$this
->
request
->
getCookie
(
$name
,
$default
);
}
/**
* 返回顶部软件下载有关数据
* @return array 下载有关数据
*/
protected
function
getHeaderDownload
()
{
return
array
(
'img'
=>
'http://img11.static.yhbimg.com/adpic/2015/02/28/18/01d83bfad41c8fca8fd1ad334216d7d733.jpg?imageView/2/w/640/h/480'
,
'url'
=>
'http://www.baidu.com'
);
}
/*
* 设置网站SEO的标题
*
...
...
@@ -336,4 +324,30 @@ class AbstractAction extends Controller_Abstract
));
}
/**
* 设置首页以及频道页顶部信息
*
* @return void
*/
protected
function
setHomeChannelHeader
()
{
$header
[
'searchUrl'
]
=
''
;
$this
->
_view
->
assign
(
'homeHeader'
,
$header
);
}
/**
* 返回顶部软件下载有关数据
* @return array 下载有关数据
*/
protected
function
setHeaderDownload
()
{
$download
=
array
(
'img'
=>
'http://img11.static.yhbimg.com/adpic/2015/02/28/18/01d83bfad41c8fca8fd1ad334216d7d733.jpg?imageView/2/w/640/h/480'
,
'url'
=>
'http://www.baidu.com'
);
$this
->
_view
->
assign
(
'headerDownload'
,
$download
);
}
}
...
...
library/Plugin/FloorProcess.php
View file @
f2e9698
...
...
@@ -9,11 +9,36 @@ class FloorProcess
{
/**
* 处理首页内容
* @param $data
* @param $type 类型 默认1:男首页 2:女首页 3:kids 4:lifestyle
*/
public
static
function
getContent
(
$data
,
$type
=
1
)
{
$result
=
array
();
if
(
empty
(
$data
[
'list'
])){
return
$result
;
}
foreach
(
$data
[
'list'
]
as
$v
){
$fun
=
$v
[
'template_name'
];
$data
=
self
::
$fun
(
$v
[
'data'
],
$type
);
if
(
empty
(
$data
)){
continue
;
}
$result
[]
=
$data
;
}
return
$result
;
}
/**
* 焦点图数据处理方法
* @param array $data 焦点图数据
* @param $type 类型 默认1:男首页 2:女首页 3:kids 4:lifestyle
* @return array 处理之后的焦点图数据
*/
p
ublic
static
function
focus
(
$data
)
p
rivate
static
function
focus
(
$data
,
$type
)
{
$result
=
array
();
...
...
@@ -23,15 +48,16 @@ class FloorProcess
}
$result
[
'list'
]
=
$data
;
return
$result
;
return
array
(
'bannerTop'
=>
$result
)
;
}
/**
* 图标列表数据处理方法
* @param array $data 图标列表数据
* @param $type 类型 默认1:男首页 2:女首页 3:kids 4:lifestyle
* @return array 处理之后的图标列表数据
*/
p
ublic
static
function
app_icon_list
(
$data
)
p
rivate
static
function
app_icon_list
(
$data
,
$type
)
{
$result
=
array
();
...
...
@@ -41,15 +67,16 @@ class FloorProcess
}
$result
[
'list'
]
=
$data
;
return
$result
;
return
array
(
'iconsEnter'
=>
$result
)
;
}
/**
* 单图片数据处理方法
* @param array $data 单图片数据
* @param $type 类型 默认1:男首页 2:女首页 3:kids 4:lifestyle
* @return array 处理之后的单图片数据
*/
p
ublic
static
function
single_image
(
$data
)
p
rivate
static
function
single_image
(
$data
,
$type
)
{
$result
=
array
();
...
...
@@ -58,15 +85,16 @@ class FloorProcess
}
$result
[
'list'
]
=
$data
;
return
$result
;
return
array
(
'singleImage'
=>
$result
)
;
}
/**
* 带标题的12个小图推荐数据处理方法
* @param array $data 带标题的12个小图推荐数据
* @param $type 类型 默认1:男首页 2:女首页 3:kids 4:lifestyle
* @return array 处理之后的带标题的12个小图推荐数据
*/
p
ublic
static
function
recommend_content_five
(
$data
)
p
rivate
static
function
recommend_content_five
(
$data
,
$type
)
{
$result
=
array
();
...
...
@@ -79,19 +107,20 @@ class FloorProcess
unset
(
$data
[
'title'
]);
$result
=
$data
;
return
$result
;
return
array
(
'hotCategory'
=>
$result
)
;
}
/**
* 推荐品牌数据处理方法
* @param array $data 推荐品牌数据
* @param $type 类型 默认1:男首页 2:女首页 3:kids 4:lifestyle
* @return array 处理之后的推荐品牌数据
*/
p
ublic
static
function
app_hot_brands
(
$data
)
p
rivate
static
function
app_hot_brands
(
$data
,
$type
)
{
$result
=
array
();
$data
[
'is_show_name'
]
=
$data
[
'is_show_name'
]
==
'Y'
?
1
:
0
;
$data
[
'is_show_name'
]
=
(
isset
(
$data
[
'is_show_name'
])
&&
$data
[
'is_show_name'
]
==
'Y'
)
?
1
:
0
;
$data
[
'name'
]
=
$data
[
'title'
][
'title'
];
unset
(
$data
[
'title'
]);
foreach
(
$data
[
'list'
]
as
&
$one
)
{
...
...
@@ -100,15 +129,16 @@ class FloorProcess
}
$result
=
$data
;
return
$result
;
return
array
(
'hotBrands'
=>
$result
)
;
}
/**
* 潮人·搭配数据处理方法
* @param array $data 潮人·搭配数据
* @param $type 类型 默认1:男首页 2:女首页 3:kids 4:lifestyle
* @return array 处理之后的潮人·搭配数据
*/
p
ublic
static
function
trendsetter_collocation
(
$data
)
p
rivate
static
function
trendsetter_collocation
(
$data
,
$type
)
{
$result
=
array
();
...
...
@@ -122,15 +152,16 @@ class FloorProcess
}
$result
=
$data
;
return
$result
;
return
array
(
'trendColloaction'
=>
$result
)
;
}
/**
* 潮品·话题数据处理方法
* @param array $data 潮品·话题数据
* @param $type 类型 默认1:男首页 2:女首页 3:kids 4:lifestyle
* @return array 处理之后的潮品·话题数据
*/
p
ublic
static
function
trendgoods_topic
(
$data
)
p
rivate
static
function
trendgoods_topic
(
$data
,
$type
)
{
$result
=
array
();
...
...
@@ -140,15 +171,16 @@ class FloorProcess
}
$result
=
$data
;
return
$result
;
return
array
(
'trendTopics'
=>
$result
)
;
}
/**
* 一张大图一个大的推荐和4个小图推荐数据处理方法
* @param array $data 一张大图一个大的推荐和4个小图推荐数据
* @param $type 类型 默认1:男首页 2:女首页 3:kids 4:lifestyle
* @return array 处理之后的一张大图一个大的推荐和4个小图推荐数据
*/
p
ublic
static
function
recommend_content_one
(
$data
)
p
rivate
static
function
recommend_content_one
(
$data
,
$type
)
{
$result
=
array
();
...
...
@@ -165,15 +197,16 @@ class FloorProcess
}
$result
=
$data
;
return
$result
;
return
array
(
'goodsCategory'
=>
$result
)
;
}
/**
* 一张大图和6个小图推荐数据处理方法
* @param array $data 一张大图和6个小图推荐数据
* @param $type 类型 默认1:男首页 2:女首页 3:kids 4:lifestyle
* @return array 处理之后的一张大图和6个小图推荐数据
*/
p
ublic
static
function
recommend_content_two
(
$data
)
p
rivate
static
function
recommend_content_two
(
$data
,
$type
)
{
$result
=
array
();
...
...
@@ -197,9 +230,10 @@ class FloorProcess
/**
* 小图片数据处理方法
* @param array $data 小图片数据
* @param $type 类型 默认1:男首页 2:女首页 3:kids 4:lifestyle
* @return array 处理之后的小图片数据
*/
p
ublic
static
function
small_pic
(
$data
)
p
rivate
static
function
small_pic
(
$data
,
$type
)
{
$result
=
array
();
...
...
@@ -209,23 +243,37 @@ class FloorProcess
}
$result
=
$data
;
return
$result
;
return
array
(
'small_pic'
=>
$result
)
;
}
/**
* 也许喜欢数据处理方法
* @param array $data 也许喜欢数据
* @param $type 类型 默认1:男首页 2:女首页 3:kids 4:lifestyle
* @return array 处理之后的也许喜欢数据
*/
p
ublic
static
function
maybeLike
(
$data
)
p
rivate
static
function
maybeLike
(
$data
,
$type
)
{
$result
=
array
();
foreach
(
$data
as
&
$one
)
{
$one
[
'img'
]
=
Helpers
::
getImageUrl
(
$one
[
'src'
],
235
,
314
,
1
);
unset
(
$one
[
'src'
]);
$result
=
array
(
'goods'
=>
array
());
foreach
(
$data
as
$one
)
{
$product
=
array
();
$product
[
'id'
]
=
$one
[
'brand_id'
];
$product
[
'thumb'
]
=
Helpers
::
getImageUrl
(
$one
[
'default_images'
],
235
,
314
,
1
);
$product
[
'price'
]
=
$one
[
'market_price'
];
$product
[
'salePrice'
]
=
$one
[
'sales_price'
];
// 处理tags
$product
[
'tags'
]
=
array
();
foreach
(
$one
[
'tags'
]
as
$val
)
{
$product
[
'tags'
][
$val
]
=
1
;
}
$product
[
'is_soon_sold_out'
]
=
$one
[
'is_soon_sold_out'
];
$product
[
'name'
]
=
$one
[
'product_name'
];
$product
[
'url'
]
=
$one
[
'product_skn'
];
$result
[
'goods'
][]
=
$product
;
}
$result
=
$data
;
return
$result
;
}
...
...
template/m.yohobuy.com/actions/index/boys/index.phtml
View file @
f2e9698
...
...
@@ -13,15 +13,15 @@
{
{>
common/content
}
}
{
{!
商品列表
}
}
{
{#
twoColumnGoods
}
}
{
{>
common/two_column_goods
}
}
{
{/
twoColumnGoods
}
}
{
{!
底部banner
}
}
{
{#
bannerBottom
}
}
{
{>
common/banner_bottom
}
}
{
{/
bannerBottom
}
}
{
{!
商品列表
}
}
{
{#
twoColumnGoods
}
}
{
{>
common/two_column_goods
}
}
{
{/
twoColumnGoods
}
}
{
{!
底部banner
}
}
{
{#
bannerBottom
}
}
{
{>
common/banner_bottom
}
}
{
{/
bannerBottom
}
}
<div
class=
"overlay"
></div>
</div>
...
...
template/m.yohobuy.com/actions/index/lifestyle/index.phtml
View file @
f2e9698
{
{>
layout/header
}
}
<div
class=
"mobile-wrap lifestyle-wrap"
>
{
{#
headerDownload
}
}
{
{>
common/header_download
}
}
{
{/
headerDownload
}
}
{
{!
首页header
}
}
{
{#
homeHeader
}
}
{
{>
common/home_header
}
}
...
...
template/m.yohobuy.com/partials/common/good_info.phtml
0 → 100644
View file @
f2e9698
<div class="good-info" data-id="{{id}}">
<div class="tag-container clearfix">
{{# tags}}
{{# is_new}}
<p class="good-tag new-tag">NEW</p>
{{/ is_new}}
{{# is_advance}}
<p class="good-tag renew-tag">再到着</p>
{{/ is_advance}}
{{# is_discount}}
<p class="good-tag sale-tag">SALE</p>
{{/ is_discount}}
{{# is_yohoood}}
<div class="good-tag yohood-tag"></div>
{{/ is_yohoood}}
{{# is_limited}}
<p class="good-tag limit-tag">限量商品</p>
{{/ is_limited}}
{{/ tags}}
</div>
<div class="good-detail-img">
<a class="good-islike {{# is_like}}good-like{{/ is_like}} iconfont" href="{{likeUrl}}"></a>
<a class="good-thumb" href="{{url}}">
<img class="lazy" data-original="{{thumb}}">
</a>
{{# is_soon_sold_out}}
<p class="few-tag">即将售罄</p>
{{/ is_soon_sold_out}}
</div>
<div class="good-detail-text">
<div class="name">
<a href="{{url}}">{{product_name}}</a>
</div>
<div class="price">
<span class="sale-price {{^market_price}}no-price{{/market_price}}">¥{{sales_price}}</span>
{{#market_price}}
<span class="market-price">¥{{.}}</span>
{{/market_price}}
</div>
</div>
</div>
\ No newline at end of file
...
...
template/m.yohobuy.com/partials/good.phtml
View file @
f2e9698
<div class="good-info" data-id="{{id}}">
<div class="tag-container clearfix">
{{# tags}}
{{# is
N
ew}}
{{# is
_n
ew}}
<p class="good-tag new-tag">NEW</p>
{{/ isNew}}
{{# isReNew}}
{{/ is_new}}
{{# is_advance}}
<p class="good-tag renew-tag">再到着</p>
{{/ isReNew}}
{{# isSale}}
{{/ is_advance}}
{{# is_discount}}
<p class="good-tag sale-tag">SALE</p>
{{/ isSale}}
{{# isNewFestival}}
<p class="good-tag new-festival-tag">新品节</p>
{{/ isNewFestival}}
{{# isLimit}}
{{/ is_discount}}
{{# is_yohoood}}
<div class="good-tag yohood-tag"></div>
{{/ is_yohoood}}
{{# is_limited}}
<p class="good-tag limit-tag">限量商品</p>
{{/ is
Limit
}}
{{/ is
_limited
}}
{{/ tags}}
</div>
<div class="good-detail-img">
<a class="good-thumb" href="{{url}}">
<img class="lazy" data-original="{{thumb}}">
</a>
{{# is
Few
}}
{{# is
_soon_sold_out
}}
<p class="few-tag">即将售罄</p>
{{/ is
Few
}}
{{/ is
_soon_sold_out
}}
</div>
<div class="good-detail-text">
<div class="name">
...
...
yohobuy/m.yohobuy.com/application/controllers/Boys.php
View file @
f2e9698
<?php
use
Action\AbstractAction
;
use
LibModels\Wap\Home\IndexData
as
Index
;
use
LibModels\Wap\Home\IndexData
;
use
Plugin\FloorProcess
;
/**
* 男生首页
*/
class
BoysController
extends
AbstractAction
{
public
function
indexAction
()
{
// 频道数据
$channelData
=
Index
::
getUserChannelData
(
0
,
'1,3'
,
'201504091403001'
);
echo
'<pre>'
;
print_r
(
$channelData
);
$this
->
_view
->
assign
(
'title'
,
'YOHO!有货'
);
$this
->
_view
->
display
(
'index'
,
compact
(
'channelData'
));
$data
=
array
(
'headerDownload'
=>
array
(
'img'
=>
"http://img11.static.yhbimg.com/adpic/2015/02/28/18/01d83bfad41c8fca8fd1ad334216d7d733.jpg?imageView/2/w/640/h/480"
,
'url'
=>
'http://www.baidu.com'
),
'homeHeader'
=>
array
(
'searchUrl'
=>
''
),
'sideNav'
=>
array
(
array
(
'textCn'
=>
'男生'
,
'textEn'
=>
'BOYS'
,
'styleClass'
=>
'boys'
,
'url'
=>
''
),
array
(
'textCn'
=>
'女生'
,
'textEn'
=>
'GIRLS'
,
'styleClass'
=>
'girls'
,
'url'
=>
''
),
array
(
'textCn'
=>
'潮童'
,
'textEn'
=>
'KIDS'
,
'styleClass'
=>
'kids'
,
'url'
=>
''
),
array
(
'textCn'
=>
'创意生活'
,
'textEn'
=>
'LIFE STYLE'
,
'styleClass'
=>
'life'
,
'url'
=>
''
),
array
(
'textCn'
=>
'逛'
,
'textEn'
=>
'TRENDFINDER'
,
'styleClass'
=>
'guang'
,
'subNav'
=>
array
(
'list'
=>
array
(
array
(
'textCn'
=>
'逛'
,
'textEn'
=>
'TrendFinder'
,
'back'
=>
true
),
array
(
'textCn'
=>
'查看全部'
,
'url'
=>
''
),
array
(
'textCn'
=>
'只看男生'
,
'textEn'
=>
'Boys'
,
'url'
=>
''
,
'isSelect'
=>
true
),
array
(
'textCn'
=>
'只看女生'
,
'textEn'
=>
'Girls'
,
'url'
=>
''
)
)
)
)
),
'content'
=>
array
(
'bannerTop'
=>
array
(
'list'
=>
array
(
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
)
)
),
'iconsEnter'
=>
array
(
'list'
=>
array
(
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
,
'text'
=>
'新品到着'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
,
'text'
=>
'全球优选'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
,
'text'
=>
'明星潮牌'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
,
'text'
=>
'全部品类'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
,
'text'
=>
'逛'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
,
'text'
=>
'搭配指南'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
,
'text'
=>
'潮品推荐'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
,
'text'
=>
'折扣精选'
)
)
),
'hotCategory'
=>
array
(
'img'
=>
'http://img11.static.yhbimg.com/adpic/2015/02/28/18/01d83bfad41c8fca8fd1ad334216d7d733.jpg?imageView/2/w/640/h/480'
,
'url'
=>
'http://www.baidu.com'
,
'list'
=>
array
(
array
(
'textCn'
=>
'打底衫'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'打底衫'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'打底衫'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'打底衫'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'打底衫'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'打底衫'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'打底衫'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'打底衫'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'打底衫'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
)
)
),
'hotBrandsScroll'
=>
array
(
'name'
=>
'热门品牌'
,
'list'
=>
array
(
array
(
'textCn'
=>
'Moussy'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'Moussy'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'Moussy'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'Moussy'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'Moussy'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'Moussy'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'Moussy'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'Moussy'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'Moussy'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
)
)
),
'hotBrands'
=>
array
(
'name'
=>
'热门品牌'
,
'more'
=>
'www.baidu.com'
,
'brands'
=>
array
(
array
(
'name'
=>
'Front Row Shop'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'name'
=>
'dress lab'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'name'
=>
'DEVIL NUT'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'name'
=>
'casselini'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'name'
=>
'haso'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'name'
=>
'EVISU'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
)
)
),
'trendColloaction'
=>
array
(
'name'
=>
'潮人 ▪ 搭配'
,
'more'
=>
''
,
'leftspan'
=>
array
(
'url'
=>
''
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
),
'rightspan'
=>
array
(
'url'
=>
''
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
),
'recommendlist'
=>
array
(
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
)
)
),
'trendTopics'
=>
array
(
'name'
=>
'潮品 ▪ 话题'
,
'more'
=>
''
,
'list'
=>
array
(
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'title'
=>
'现代裁剪'
,
'time'
=>
'2月13日 12:34'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'title'
=>
'现代裁剪'
,
'time'
=>
'2月13日 12:34'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'title'
=>
'现代裁剪'
,
'time'
=>
'2月13日 12:34'
)
)
),
'goodsCategory'
=>
array
(
'name'
=>
'经典裤装'
,
'more'
=>
''
,
'banner'
=>
array
(
'list'
=>
array
(
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
)
)
),
'list'
=>
array
(
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'手表'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'烛台'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'围巾'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'盘子'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'耳机'
)
)
),
'goodsCategory'
=>
array
(
'name'
=>
'时尚鞋履'
,
'more'
=>
''
,
'banner'
=>
array
(
'list'
=>
array
(
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
)
)
),
'list'
=>
array
(
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'手表'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'烛台'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'围巾'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'盘子'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'耳机'
)
)
),
'goodsCategory'
=>
array
(
'name'
=>
'潮人配饰'
,
'more'
=>
''
,
'banner'
=>
array
(
'list'
=>
array
(
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
)
)
),
'list'
=>
array
(
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'手表'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'烛台'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'围巾'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'盘子'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'耳机'
)
)
),
'bannerCenter'
=>
array
(
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg'
,
'url'
=>
''
),
'creativeLife'
=>
array
(
'name'
=>
'创意生活'
,
'more'
=>
''
,
'url'
=>
''
,
'banner'
=>
'http://img10.static.yhbimg.com/yhb-img01/2015/07/09/18/0119ffceddb0819d36d74b408bd743b4a9.jpg?imageView/2/w/640/h/640'
,
'classify'
=>
array
(
array
(
'url'
=>
''
,
'img'
=>
'http://img13.static.yhbimg.com/goodsimg/2015/04/10/05/029bef1041343ea2e31dc0423f2f176589.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'手表'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img12.static.yhbimg.com/goodsimg/2015/07/07/09/02271a775d17649860abec4387b4559e26.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'烛台'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img12.static.yhbimg.com/goodsimg/2015/05/19/07/02a269d20ed44803eee33e255fe88d7873.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'围巾'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img13.static.yhbimg.com/goodsimg/2015/06/01/07/02fe94083352435ce53b5d90812cc5bdbd.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'盘子'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img12.static.yhbimg.com/goodsimg/2015/07/08/07/028db8a2afbe4ecbf37bebc7e98e8e1e80.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'耳机'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img13.static.yhbimg.com/goodsimg/2015/04/22/02/02a1b688b6dafd786f391e0624aea1e93b.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'生活'
)
)
),
'plusStar'
=>
array
(
'name'
=>
'PLUS 全球优选'
,
'url'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/yhb-img01/2015/07/13/15/014f7ba48071160053ac3b8f045b9fc264.jpg?imageView/2/w/640/h/640'
),
'bannerCenter'
=>
array
(
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg'
,
'url'
=>
''
),
'plusStar'
=>
array
(
'name'
=>
'STAR 明星潮牌'
,
'url'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/yhb-img01/2015/07/13/15/014f7ba48071160053ac3b8f045b9fc264.jpg?imageView/2/w/640/h/640'
),
'bannerCenter'
=>
array
(
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg'
,
'url'
=>
''
),
'maybeLike'
=>
array
(
'goods'
=>
array
(
array
(
'id'
=>
1
,
'thumb'
=>
'http://img11.static.yhbimg.com/goodsimg/2015/03/02/07/01ebfb219e22770ffb0c2c3a2cbb2b4bef.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'GAWS DIGI 丛林数码印花拼接卫衣'
,
'isLike'
=>
false
,
'price'
=>
1268
,
'salePrice'
=>
589
,
'isSale'
=>
true
,
'isFew'
=>
true
,
'isNew'
=>
false
,
'url'
=>
''
),
array
(
'id'
=>
2
,
'thumb'
=>
'http://img13.static.yhbimg.com/goodsimg/2015/03/03/08/023d70c59e81ccbfb39404487aaf642da2.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'CLOTtee 撞色连帽外套'
,
'isLike'
=>
false
,
'price'
=>
488
,
'salePrice'
=>
139
,
'isSale'
=>
true
,
'isFew'
=>
true
,
'isNew'
=>
false
,
'url'
=>
''
),
array
(
'id'
=>
3
,
'thumb'
=>
'http://img12.static.yhbimg.com/goodsimg/2015/03/02/08/02e2d44125e95495e3152aa459fa6b9b0c.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'HALFGIRL 插肩棒球服短裙套装'
,
'isLike'
=>
true
,
'price'
=>
478
,
'salePrice'
=>
208
,
'isSale'
=>
true
,
'isFew'
=>
true
,
'isNew'
=>
false
,
'url'
=>
''
),
array
(
'id'
=>
4
,
'thumb'
=>
'http://img12.static.yhbimg.com/goodsimg/2015/03/03/08/022f25fbe177ee12803c522f04fcce06d0.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'黄伟文Wyman X yohood联名商品YYYOHOOD连帽卫衣'
,
'isLike'
=>
false
,
'salePrice'
=>
148
,
'isSale'
=>
false
,
'isFew'
=>
false
,
'isNew'
=>
true
,
'url'
=>
''
)
)
),
'bannerBottom'
=>
array
(
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg'
,
'url'
=>
''
)
),
);
$this
->
_view
->
assign
(
'title'
,
'首页'
);
$this
->
_view
->
display
(
'index'
,
$data
);
}
public
function
indexAction
()
{
// 显示侧边栏
$this
->
setNavSide
();
// 显示顶部下载
$this
->
setHeaderDownload
();
// 设置顶部信息(搜索)
$this
->
setHomeChannelHeader
();
$data
=
array
(
'sideNav'
=>
array
(),
'content'
=>
array
()
);
$sideDatas
=
IndexData
::
getHomeChannels
();
if
(
$sideDatas
[
'code'
]
==
200
)
{
$data
[
'sideNav'
]
=
$sideDatas
[
'data'
];
}
// 频道数据
$channelData
=
IndexData
::
getUserChannelData
(
0
,
'1,3'
,
'201504091403001'
);
$channels
=
array
();
if
(
$channelData
[
'code'
]
==
200
)
{
$data
[
'content'
]
=
FloorProcess
::
getContent
(
$channelData
[
'data'
]);
}
$this
->
_view
->
assign
(
'title'
,
'首页'
);
$this
->
_view
->
display
(
'index'
,
$data
);
}
}
\ No newline at end of file
...
...
yohobuy/m.yohobuy.com/application/controllers/Girls.php
View file @
f2e9698
...
...
@@ -2,8 +2,6 @@
use
Action\AbstractAction
;
use
LibModels\Wap\Home\IndexData
;
use
LibModels\Wap\Product\RecomData
;
use
Plugin\Helpers
;
use
Plugin\FloorProcess
;
/**
* 女生首页
...
...
@@ -16,13 +14,12 @@ class GirlsController extends AbstractAction
// 显示侧边栏
$this
->
setNavSide
();
/*$data = array(
'headerDownload' => $this->getHeaderDownload(),
'homeHeader' => array(
'bgColor' => '#FF88AE',
'searchUrl' => ''
),
'searchUrl' => '',
// 显示顶部下载
$this
->
setHeaderDownload
();
// 设置顶部信息(搜索)
$this
->
setHomeChannelHeader
();
$data
=
array
(
'sideNav'
=>
array
(),
'content'
=>
array
()
);
...
...
@@ -38,89 +35,20 @@ class GirlsController extends AbstractAction
$channels
=
array
();
if
(
$channelData
[
'code'
]
==
200
)
{
$content = array();
$bannerTop = array();
$iconsEnter = array();
$singleImage = array();
$hotCategory = array();
$hotBrands = array();
$trendColloaction = array();
$trendTopics = array();
$goodsCategory = array();
$recommend_content_two = array();
$small_pic = array();
foreach ($channelData['data']['list'] as $val) {
$template = $val['template_name'];
$floorData = $val['data'];
switch ($template) {
case 'focus': // 焦点图
$oneFocus = FloorProcess::$template($floorData);
$bannerTop[] = $oneFocus;
break;
case 'app_icon_list': // 图标列表
$oneIcon = FloorProcess::$template($floorData);
$iconsEnter[] = $oneIcon;
break;
case 'single_image': // 单图片
$oneImage = FloorProcess::$template($floorData);
$singleImage[] = $oneImage;
break;
case 'recommend_content_five': // 带标题的12个小图推荐
$oneHot = FloorProcess::$template($floorData);
$hotCategory[] = $oneHot;
break;
case 'app_hot_brands': // 推荐品牌
$oneHotBrand = FloorProcess::$template($floorData);
$hotBrands[] = $oneHotBrand;
break;
case 'trendsetter_collocation': // 潮人·搭配
$oneTrendSetter = FloorProcess::$template($floorData);
$trendColloaction[] = $oneTrendSetter;
break;
case 'trendgoods_topic': // 潮品·话题
$oneTopic = FloorProcess::$template($floorData);
$trendTopics[] = $oneTopic;
break;
case 'recommend_content_one': // 一张大图一个大的推荐和4个小图推荐
$oneGoodCategory = FloorProcess::$template($floorData);
$goodsCategory[] = $oneGoodCategory;
break;
case 'recommend_content_two': // 一张大图和6个小图推荐
$oneRecoContTwo = FloorProcess::$template($floorData);
$recommend_content_two[] = $oneRecoContTwo;
break;
case 'small_pic': // 小图片
$oneSmallPic = FloorProcess::$template($floorData);
$small_pic[] = $oneSmallPic;
break;
default:
break;
}
}
$content = array(
'bannerTop' => $bannerTop,
'iconsEnter' => $iconsEnter,
'hotCategory' => $hotCategory,
'hotBrands' => $hotBrands,
'trendColloaction' => $trendColloaction,
'trendTopics' => $trendTopics,
'goodsCategory' => $goodsCategory
);
$data['content'] = $content;
$data
[
'content'
]
=
FloorProcess
::
getContent
(
$channelData
[
'data'
],
2
);
}
// 也许喜欢
$maybeLikeData = RecomData::mayLike('2,3', 2);
/*// 也许喜欢
$maybeLikeData = RecomData::mayLike('2,3', 2, false);
$maybeLike = array();
if($maybeLike['code'] == 200)
if($maybeLike
Data
['code'] == 200)
{
$maybeLike = $maybeLike['data']['product_list'];
$maybeLike = FloorProcess::maybeLike($maybeLikeData['data']['product_list']);
$num = count($data['content']);
$data['content'][] = array('maybeLike' =>$maybeLike);
}*/
$data
=
array
(
'headerDownload'
=>
array
(
'img'
=>
'http://img11.static.yhbimg.com/adpic/2015/02/28/18/01d83bfad41c8fca8fd1ad334216d7d733.jpg?imageView/2/w/640/h/480'
,
...
...
@@ -549,6 +477,7 @@ class GirlsController extends AbstractAction
));
$this
->
_view
->
assign
(
'title'
,
'YOHO!有货'
);
$this
->
_view
->
display
(
'index'
,
$data
);
}
...
...
yohobuy/m.yohobuy.com/application/controllers/Kids.php
View file @
f2e9698
<?php
use
Action\AbstractAction
;
use
LibModels\Wap\Home\IndexData
as
Index
;
use
LibModels\Wap\Home\IndexData
;
use
Plugin\FloorProcess
;
/**
* 儿童首页
*/
...
...
@@ -10,580 +11,36 @@ class kidsController extends AbstractAction
public
function
indexAction
()
{
// 频道数据
$channelData
=
Index
::
getUserChannelData
(
0
,
'1,3'
,
'201504091403001'
);
echo
'<pre>'
;
print_r
(
$channelData
);
$this
->
_view
->
assign
(
'title'
,
'YOHO!有货'
);
$this
->
_view
->
display
(
'index'
,
compact
(
'channelData'
));
$data
=
array
(
'headerDownload'
=>
array
(
'img'
=>
"http://img11.static.yhbimg.com/adpic/2015/02/28/18/01d83bfad41c8fca8fd1ad334216d7d733.jpg?imageView/2/w/640/h/480"
,
'url'
=>
'http://www.baidu.com'
),
'homeHeader'
=>
array
(
'searchUrl'
=>
''
),
'sideNav'
=>
array
(
array
(
'textCn'
=>
'男生'
,
'textEn'
=>
'BOYS'
,
'styleClass'
=>
'boys'
,
'url'
=>
''
),
array
(
'textCn'
=>
'女生'
,
'textEn'
=>
'GIRLS'
,
'styleClass'
=>
'girls'
,
'url'
=>
''
),
array
(
'textCn'
=>
'潮童'
,
'textEn'
=>
'KIDS'
,
'styleClass'
=>
'kids'
,
'url'
=>
''
),
array
(
'textCn'
=>
'创意生活'
,
'textEn'
=>
'LIFE STYLE'
,
'styleClass'
=>
'life'
,
'url'
=>
''
),
array
(
'textCn'
=>
'逛'
,
'textEn'
=>
'TRENDFINDER'
,
'styleClass'
=>
'guang'
,
'subNav'
=>
array
(
'list'
=>
array
(
array
(
'textCn'
=>
'逛'
,
'textEn'
=>
'TrendFinder'
,
'back'
=>
true
),
array
(
'textCn'
=>
'查看全部'
,
'url'
=>
''
),
array
(
'textCn'
=>
'只看男生'
,
'textEn'
=>
'Boys'
,
'url'
=>
''
,
'isSelect'
=>
true
),
array
(
'textCn'
=>
'只看女生'
,
'textEn'
=>
'Girls'
,
'url'
=>
''
)
)
)
)
),
'content'
=>
array
(
'bannerTop'
=>
array
(
'list'
=>
array
(
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
)
)
),
'iconsEnter'
=>
array
(
'list'
=>
array
(
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
,
'text'
=>
'新品到着'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
,
'text'
=>
'全球优选'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
,
'text'
=>
'明星潮牌'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
,
'text'
=>
'全部品类'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
,
'text'
=>
'逛'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
,
'text'
=>
'搭配指南'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
,
'text'
=>
'潮品推荐'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
,
'text'
=>
'折扣精选'
)
)
),
'hotCategory'
=>
array
(
'img'
=>
'http://img11.static.yhbimg.com/adpic/2015/02/28/18/01d83bfad41c8fca8fd1ad334216d7d733.jpg?imageView/2/w/640/h/480'
,
'url'
=>
'http://www.baidu.com'
,
'list'
=>
array
(
array
(
'textCn'
=>
'打底衫'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'打底衫'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'打底衫'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'打底衫'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'打底衫'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'打底衫'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'打底衫'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'打底衫'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'打底衫'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
)
)
),
'hotBrandsScroll'
=>
array
(
'name'
=>
'热门品牌'
,
'list'
=>
array
(
array
(
'textCn'
=>
'Moussy'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'Moussy'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'Moussy'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'Moussy'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'Moussy'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'Moussy'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'Moussy'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'Moussy'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'Moussy'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
)
)
),
'hotBrands'
=>
array
(
'name'
=>
'热门品牌'
,
'more'
=>
'www.baidu.com'
,
'brands'
=>
array
(
array
(
'name'
=>
'Front Row Shop'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'name'
=>
'dress lab'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'name'
=>
'DEVIL NUT'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'name'
=>
'casselini'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'name'
=>
'haso'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'name'
=>
'EVISU'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
)
)
),
'trendColloaction'
=>
array
(
'name'
=>
'潮人 ▪ 搭配'
,
'more'
=>
''
,
'leftspan'
=>
array
(
'url'
=>
''
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
),
'rightspan'
=>
array
(
'url'
=>
''
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
),
'recommendlist'
=>
array
(
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
)
)
),
'trendTopics'
=>
array
(
'name'
=>
'潮品 ▪ 话题'
,
'more'
=>
''
,
'list'
=>
array
(
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'title'
=>
'现代裁剪'
,
'time'
=>
'2月13日 12:34'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'title'
=>
'现代裁剪'
,
'time'
=>
'2月13日 12:34'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'title'
=>
'现代裁剪'
,
'time'
=>
'2月13日 12:34'
)
)
),
'goodsCategory'
=>
array
(
'name'
=>
'经典裤装'
,
'more'
=>
''
,
'banner'
=>
array
(
'list'
=>
array
(
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
)
)
),
'list'
=>
array
(
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'手表'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'烛台'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'围巾'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'盘子'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'耳机'
)
)
),
'goodsCategory'
=>
array
(
'name'
=>
'时尚鞋履'
,
'more'
=>
''
,
'banner'
=>
array
(
'list'
=>
array
(
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
)
)
),
'list'
=>
array
(
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'手表'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'烛台'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'围巾'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'盘子'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'耳机'
)
)
),
'goodsCategory'
=>
array
(
'name'
=>
'潮人配饰'
,
'more'
=>
''
,
'banner'
=>
array
(
'list'
=>
array
(
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
)
)
),
'list'
=>
array
(
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'手表'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'烛台'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'围巾'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'盘子'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'耳机'
)
)
),
'bannerCenter'
=>
array
(
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg'
,
'url'
=>
''
),
// 显示侧边栏
$this
->
setNavSide
();
'creativeLife'
=>
array
(
'name'
=>
'创意生活'
,
'more'
=>
''
,
'url'
=>
''
,
'banner'
=>
'http://img10.static.yhbimg.com/yhb-img01/2015/07/09/18/0119ffceddb0819d36d74b408bd743b4a9.jpg?imageView/2/w/640/h/640'
,
'classify'
=>
array
(
array
(
'url'
=>
''
,
'img'
=>
'http://img13.static.yhbimg.com/goodsimg/2015/04/10/05/029bef1041343ea2e31dc0423f2f176589.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'手表'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img12.static.yhbimg.com/goodsimg/2015/07/07/09/02271a775d17649860abec4387b4559e26.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'烛台'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img12.static.yhbimg.com/goodsimg/2015/05/19/07/02a269d20ed44803eee33e255fe88d7873.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'围巾'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img13.static.yhbimg.com/goodsimg/2015/06/01/07/02fe94083352435ce53b5d90812cc5bdbd.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'盘子'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img12.static.yhbimg.com/goodsimg/2015/07/08/07/028db8a2afbe4ecbf37bebc7e98e8e1e80.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'耳机'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img13.static.yhbimg.com/goodsimg/2015/04/22/02/02a1b688b6dafd786f391e0624aea1e93b.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'生活'
)
)
),
// 显示顶部下载
$this
->
setHeaderDownload
();
// 设置顶部信息(搜索)
$this
->
setHomeChannelHeader
();
$data
=
array
(
'sideNav'
=>
array
(),
'content'
=>
array
()
);
'plusStar'
=>
array
(
'name'
=>
'PLUS 全球优选'
,
'url'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/yhb-img01/2015/07/13/15/014f7ba48071160053ac3b8f045b9fc264.jpg?imageView/2/w/640/h/640'
),
$sideDatas
=
IndexData
::
getHomeChannels
();
if
(
$sideDatas
[
'code'
]
==
200
)
{
$data
[
'sideNav'
]
=
$sideDatas
[
'data'
];
}
'bannerCenter'
=>
array
(
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg'
,
'url'
=>
''
),
'plusStar'
=>
array
(
'name'
=>
'STAR 明星潮牌'
,
'url'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/yhb-img01/2015/07/13/15/014f7ba48071160053ac3b8f045b9fc264.jpg?imageView/2/w/640/h/640'
),
'bannerCenter'
=>
array
(
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg'
,
'url'
=>
''
),
'maybeLike'
=>
array
(
'goods'
=>
array
(
array
(
'id'
=>
1
,
'thumb'
=>
'http://img11.static.yhbimg.com/goodsimg/2015/03/02/07/01ebfb219e22770ffb0c2c3a2cbb2b4bef.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'GAWS DIGI 丛林数码印花拼接卫衣'
,
'isLike'
=>
false
,
'price'
=>
1268
,
'salePrice'
=>
589
,
'isSale'
=>
true
,
'isFew'
=>
true
,
'isNew'
=>
false
,
'url'
=>
''
),
array
(
'id'
=>
2
,
'thumb'
=>
'http://img13.static.yhbimg.com/goodsimg/2015/03/03/08/023d70c59e81ccbfb39404487aaf642da2.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'CLOTtee 撞色连帽外套'
,
'isLike'
=>
false
,
'price'
=>
488
,
'salePrice'
=>
139
,
'isSale'
=>
true
,
'isFew'
=>
true
,
'isNew'
=>
false
,
'url'
=>
''
),
array
(
'id'
=>
3
,
'thumb'
=>
'http://img12.static.yhbimg.com/goodsimg/2015/03/02/08/02e2d44125e95495e3152aa459fa6b9b0c.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'HALFGIRL 插肩棒球服短裙套装'
,
'isLike'
=>
true
,
'price'
=>
478
,
'salePrice'
=>
208
,
'isSale'
=>
true
,
'isFew'
=>
true
,
'isNew'
=>
false
,
'url'
=>
''
),
array
(
'id'
=>
4
,
'thumb'
=>
'http://img12.static.yhbimg.com/goodsimg/2015/03/03/08/022f25fbe177ee12803c522f04fcce06d0.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'黄伟文Wyman X yohood联名商品YYYOHOOD连帽卫衣'
,
'isLike'
=>
false
,
'salePrice'
=>
148
,
'isSale'
=>
false
,
'isFew'
=>
false
,
'isNew'
=>
true
,
'url'
=>
''
)
)
),
'bannerBottom'
=>
array
(
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg'
,
'url'
=>
''
)
),
);
// 频道数据
$channelData
=
IndexData
::
getUserChannelData
(
0
,
''
,
'e9875682c1599a886bfbdb965b740022'
);
$channels
=
array
();
if
(
$channelData
[
'code'
]
==
200
)
{
$data
[
'content'
]
=
FloorProcess
::
getContent
(
$channelData
[
'data'
],
3
);
}
$this
->
_view
->
assign
(
'title'
,
'首页'
);
$this
->
_view
->
assign
(
'title'
,
'YOHO!有货'
);
$this
->
_view
->
display
(
'index'
,
$data
);
}
}
\ No newline at end of file
...
...
yohobuy/m.yohobuy.com/application/controllers/Lifestyle.php
View file @
f2e9698
<?php
use
Action\AbstractAction
;
<<<<<<<
HEAD
use
LibModels\Wap\Home\IndexData
as
Index
;
=======
use
LibModels\Wap\Home\IndexData
;
use
Plugin\FloorProcess
;
>>>>>>>
3
ceb824c00a2188f954835e78b5e4222bf3c78f8
/**
* 创意生活首页
*/
...
...
@@ -10,580 +16,37 @@ class kidsController extends AbstractAction
public
function
indexAction
()
{
// 显示侧边栏
$this
->
setNavSide
();
// 显示顶部下载
$this
->
setHeaderDownload
();
// 设置顶部信息(搜索)
$this
->
setHomeChannelHeader
();
$data
=
array
(
'sideNav'
=>
array
(),
'content'
=>
array
()
);
$sideDatas
=
IndexData
::
getHomeChannels
();
if
(
$sideDatas
[
'code'
]
==
200
)
{
$data
[
'sideNav'
]
=
$sideDatas
[
'data'
];
}
// 频道数据
$channelData
=
Index
::
getUserChannelData
(
0
,
'1,3'
,
'201504091403001'
);
echo
'<pre>'
;
print_r
(
$channelData
);
$channelData
=
IndexData
::
getUserChannelData
(
0
,
'1,3'
,
'9aa25f5133f011ec96c2045eb15ae425'
);
$channels
=
array
();
if
(
$channelData
[
'code'
]
==
200
)
{
$data
[
'content'
]
=
FloorProcess
::
getContent
(
$channelData
[
'data'
],
4
);
}
$this
->
_view
->
assign
(
'title'
,
'YOHO!有货'
);
$this
->
_view
->
display
(
'index'
,
compact
(
'channelData'
));
$data
=
array
(
'headerDownload'
=>
array
(
'img'
=>
"http://img11.static.yhbimg.com/adpic/2015/02/28/18/01d83bfad41c8fca8fd1ad334216d7d733.jpg?imageView/2/w/640/h/480"
,
'url'
=>
'http://www.baidu.com'
),
'homeHeader'
=>
array
(
'searchUrl'
=>
''
),
'sideNav'
=>
array
(
array
(
'textCn'
=>
'男生'
,
'textEn'
=>
'BOYS'
,
'styleClass'
=>
'boys'
,
'url'
=>
''
),
array
(
'textCn'
=>
'女生'
,
'textEn'
=>
'GIRLS'
,
'styleClass'
=>
'girls'
,
'url'
=>
''
),
array
(
'textCn'
=>
'潮童'
,
'textEn'
=>
'KIDS'
,
'styleClass'
=>
'kids'
,
'url'
=>
''
),
array
(
'textCn'
=>
'创意生活'
,
'textEn'
=>
'LIFE STYLE'
,
'styleClass'
=>
'life'
,
'url'
=>
''
),
array
(
'textCn'
=>
'逛'
,
'textEn'
=>
'TRENDFINDER'
,
'styleClass'
=>
'guang'
,
'subNav'
=>
array
(
'list'
=>
array
(
array
(
'textCn'
=>
'逛'
,
'textEn'
=>
'TrendFinder'
,
'back'
=>
true
),
array
(
'textCn'
=>
'查看全部'
,
'url'
=>
''
),
array
(
'textCn'
=>
'只看男生'
,
'textEn'
=>
'Boys'
,
'url'
=>
''
,
'isSelect'
=>
true
),
array
(
'textCn'
=>
'只看女生'
,
'textEn'
=>
'Girls'
,
'url'
=>
''
)
)
)
)
),
'content'
=>
array
(
'bannerTop'
=>
array
(
'list'
=>
array
(
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
)
)
),
'iconsEnter'
=>
array
(
'list'
=>
array
(
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
,
'text'
=>
'新品到着'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
,
'text'
=>
'全球优选'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
,
'text'
=>
'明星潮牌'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
,
'text'
=>
'全部品类'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
,
'text'
=>
'逛'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
,
'text'
=>
'搭配指南'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
,
'text'
=>
'潮品推荐'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
,
'text'
=>
'折扣精选'
)
)
),
'hotCategory'
=>
array
(
'img'
=>
'http://img11.static.yhbimg.com/adpic/2015/02/28/18/01d83bfad41c8fca8fd1ad334216d7d733.jpg?imageView/2/w/640/h/480'
,
'url'
=>
'http://www.baidu.com'
,
'list'
=>
array
(
array
(
'textCn'
=>
'打底衫'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'打底衫'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'打底衫'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'打底衫'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'打底衫'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'打底衫'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'打底衫'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'打底衫'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'打底衫'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
)
)
),
'hotBrandsScroll'
=>
array
(
'name'
=>
'热门品牌'
,
'list'
=>
array
(
array
(
'textCn'
=>
'Moussy'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'Moussy'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'Moussy'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'Moussy'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'Moussy'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'Moussy'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'Moussy'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'Moussy'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'textCn'
=>
'Moussy'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
)
)
),
'hotBrands'
=>
array
(
'name'
=>
'热门品牌'
,
'more'
=>
'www.baidu.com'
,
'brands'
=>
array
(
array
(
'name'
=>
'Front Row Shop'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'name'
=>
'dress lab'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'name'
=>
'DEVIL NUT'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'name'
=>
'casselini'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'name'
=>
'haso'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'name'
=>
'EVISU'
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
)
)
),
'trendColloaction'
=>
array
(
'name'
=>
'潮人 ▪ 搭配'
,
'more'
=>
''
,
'leftspan'
=>
array
(
'url'
=>
''
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
),
'rightspan'
=>
array
(
'url'
=>
''
,
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
),
'recommendlist'
=>
array
(
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
)
)
),
'trendTopics'
=>
array
(
'name'
=>
'潮品 ▪ 话题'
,
'more'
=>
''
,
'list'
=>
array
(
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'title'
=>
'现代裁剪'
,
'time'
=>
'2月13日 12:34'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'title'
=>
'现代裁剪'
,
'time'
=>
'2月13日 12:34'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'title'
=>
'现代裁剪'
,
'time'
=>
'2月13日 12:34'
)
)
),
'goodsCategory'
=>
array
(
'name'
=>
'经典裤装'
,
'more'
=>
''
,
'banner'
=>
array
(
'list'
=>
array
(
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
)
)
),
'list'
=>
array
(
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'手表'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'烛台'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'围巾'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'盘子'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'耳机'
)
)
),
'goodsCategory'
=>
array
(
'name'
=>
'时尚鞋履'
,
'more'
=>
''
,
'banner'
=>
array
(
'list'
=>
array
(
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
)
)
),
'list'
=>
array
(
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'手表'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'烛台'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'围巾'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'盘子'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'耳机'
)
)
),
'goodsCategory'
=>
array
(
'name'
=>
'潮人配饰'
,
'more'
=>
''
,
'banner'
=>
array
(
'list'
=>
array
(
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
)
)
),
'list'
=>
array
(
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'手表'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'烛台'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'围巾'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'盘子'
),
array
(
'img'
=>
'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
,
'url'
=>
''
,
'textCn'
=>
'耳机'
)
)
),
'bannerCenter'
=>
array
(
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg'
,
'url'
=>
''
),
'creativeLife'
=>
array
(
'name'
=>
'创意生活'
,
'more'
=>
''
,
'url'
=>
''
,
'banner'
=>
'http://img10.static.yhbimg.com/yhb-img01/2015/07/09/18/0119ffceddb0819d36d74b408bd743b4a9.jpg?imageView/2/w/640/h/640'
,
'classify'
=>
array
(
array
(
'url'
=>
''
,
'img'
=>
'http://img13.static.yhbimg.com/goodsimg/2015/04/10/05/029bef1041343ea2e31dc0423f2f176589.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'手表'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img12.static.yhbimg.com/goodsimg/2015/07/07/09/02271a775d17649860abec4387b4559e26.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'烛台'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img12.static.yhbimg.com/goodsimg/2015/05/19/07/02a269d20ed44803eee33e255fe88d7873.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'围巾'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img13.static.yhbimg.com/goodsimg/2015/06/01/07/02fe94083352435ce53b5d90812cc5bdbd.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'盘子'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img12.static.yhbimg.com/goodsimg/2015/07/08/07/028db8a2afbe4ecbf37bebc7e98e8e1e80.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'耳机'
),
array
(
'url'
=>
''
,
'img'
=>
'http://img13.static.yhbimg.com/goodsimg/2015/04/22/02/02a1b688b6dafd786f391e0624aea1e93b.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'生活'
)
)
),
'plusStar'
=>
array
(
'name'
=>
'PLUS 全球优选'
,
'url'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/yhb-img01/2015/07/13/15/014f7ba48071160053ac3b8f045b9fc264.jpg?imageView/2/w/640/h/640'
),
'bannerCenter'
=>
array
(
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg'
,
'url'
=>
''
),
'plusStar'
=>
array
(
'name'
=>
'STAR 明星潮牌'
,
'url'
=>
''
,
'img'
=>
'http://img11.static.yhbimg.com/yhb-img01/2015/07/13/15/014f7ba48071160053ac3b8f045b9fc264.jpg?imageView/2/w/640/h/640'
),
'bannerCenter'
=>
array
(
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg'
,
'url'
=>
''
),
'maybeLike'
=>
array
(
'goods'
=>
array
(
array
(
'id'
=>
1
,
'thumb'
=>
'http://img11.static.yhbimg.com/goodsimg/2015/03/02/07/01ebfb219e22770ffb0c2c3a2cbb2b4bef.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'GAWS DIGI 丛林数码印花拼接卫衣'
,
'isLike'
=>
false
,
'price'
=>
1268
,
'salePrice'
=>
589
,
'isSale'
=>
true
,
'isFew'
=>
true
,
'isNew'
=>
false
,
'url'
=>
''
),
array
(
'id'
=>
2
,
'thumb'
=>
'http://img13.static.yhbimg.com/goodsimg/2015/03/03/08/023d70c59e81ccbfb39404487aaf642da2.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'CLOTtee 撞色连帽外套'
,
'isLike'
=>
false
,
'price'
=>
488
,
'salePrice'
=>
139
,
'isSale'
=>
true
,
'isFew'
=>
true
,
'isNew'
=>
false
,
'url'
=>
''
),
array
(
'id'
=>
3
,
'thumb'
=>
'http://img12.static.yhbimg.com/goodsimg/2015/03/02/08/02e2d44125e95495e3152aa459fa6b9b0c.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'HALFGIRL 插肩棒球服短裙套装'
,
'isLike'
=>
true
,
'price'
=>
478
,
'salePrice'
=>
208
,
'isSale'
=>
true
,
'isFew'
=>
true
,
'isNew'
=>
false
,
'url'
=>
''
),
array
(
'id'
=>
4
,
'thumb'
=>
'http://img12.static.yhbimg.com/goodsimg/2015/03/03/08/022f25fbe177ee12803c522f04fcce06d0.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90'
,
'name'
=>
'黄伟文Wyman X yohood联名商品YYYOHOOD连帽卫衣'
,
'isLike'
=>
false
,
'salePrice'
=>
148
,
'isSale'
=>
false
,
'isFew'
=>
false
,
'isNew'
=>
true
,
'url'
=>
''
)
)
),
'bannerBottom'
=>
array
(
'img'
=>
'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg'
,
'url'
=>
''
)
),
);
$this
->
_view
->
assign
(
'title'
,
'首页'
);
$this
->
_view
->
display
(
'index'
,
$data
);
}
}
\ No newline at end of file
}
...
...
Please
register
or
login
to post a comment