...
|
...
|
@@ -261,7 +261,7 @@ class BoysController extends AbstractAction |
|
|
)
|
|
|
);
|
|
|
$data = array(
|
|
|
'headerdata' => array($headerdata),
|
|
|
'headerdata' => $headerdata,
|
|
|
'boysHomePage' => true,
|
|
|
'boy' => array(
|
|
|
'bigSlide' => array(
|
...
|
...
|
@@ -348,9 +348,107 @@ class BoysController extends AbstractAction |
|
|
'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'
|
|
|
)
|
|
|
)
|
|
|
)
|
|
|
)
|
|
|
);
|
|
|
$this->_view->display('index', $data);
|
|
|
}
|
|
|
/**
|
|
|
* 男装首页 新品上架 接口数据
|
|
|
*
|
|
|
* @param int $pageIndex 当前页数
|
|
|
* @param int $pageCount 一页显示个数
|
|
|
* @param string flag 类型(男装/女装等,用于区分)
|
|
|
* @return json
|
|
|
*/
|
|
|
public function commodityAction()
|
|
|
{
|
|
|
$result = array();
|
|
|
|
|
|
do {
|
|
|
/* 判断是不是AJAX请求 */
|
|
|
if (!$this->isAjax()) {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
$result=array(
|
|
|
'code'=>200,
|
|
|
'commodity'=>array(
|
|
|
array(
|
|
|
'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' ,
|
|
|
'img'=> 'http://img11.static.yhbimg.com/yhb-img01/2015/12/01/02/01c21e6610eefdc5ebd7ad890e49b09c2d.jpg',
|
|
|
'name'=> '优显led触控台灯',
|
|
|
'price'=> 168,
|
|
|
'state'=> 1 //状态
|
|
|
),
|
|
|
array(
|
|
|
'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' ,
|
|
|
'img'=> 'http://img11.static.yhbimg.com/yhb-img01/2015/12/01/02/01c21e6610eefdc5ebd7ad890e49b09c2d.jpg',
|
|
|
'name'=> '优显led触控台灯',
|
|
|
'price'=> 168,
|
|
|
'state'=> 1 //状态
|
|
|
),
|
|
|
array(
|
|
|
'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' ,
|
|
|
'img'=> 'http://img11.static.yhbimg.com/yhb-img01/2015/12/01/02/01c21e6610eefdc5ebd7ad890e49b09c2d.jpg',
|
|
|
'name'=> '优显led触控台灯',
|
|
|
'price'=> 168,
|
|
|
'state'=> 1 //状态
|
|
|
),
|
|
|
array(
|
|
|
'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' ,
|
|
|
'img'=> 'http://img11.static.yhbimg.com/yhb-img01/2015/12/01/02/01c21e6610eefdc5ebd7ad890e49b09c2d.jpg',
|
|
|
'name'=> '优显led触控台灯',
|
|
|
'price'=> 168,
|
|
|
'state'=> 1 //状态
|
|
|
),
|
|
|
array(
|
|
|
'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' ,
|
|
|
'img'=> 'http://img11.static.yhbimg.com/yhb-img01/2015/12/01/02/01c21e6610eefdc5ebd7ad890e49b09c2d.jpg',
|
|
|
'name'=> '优显led触控台灯',
|
|
|
'price'=> 168,
|
|
|
'state'=> 1 //状态
|
|
|
)
|
|
|
)
|
|
|
);
|
|
|
} while (false);
|
|
|
|
|
|
$this->echoJson($result);
|
|
|
}
|
|
|
|
|
|
public function getBrandAction()
|
|
|
{
|
|
|
$data = array(
|
|
|
'logoBrand' => array(
|
|
|
array(
|
|
|
'href' => 'http://www.yohobuy.com',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2014/09/25/17/0248182b151d2d59cbeea8e73495d1607a.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
...
|
...
|
@@ -371,7 +469,8 @@ class BoysController extends AbstractAction |
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'switch' => true
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
...
|
...
|
@@ -418,75 +517,192 @@ class BoysController extends AbstractAction |
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'more' => true,
|
|
|
'href' => 'http://www.yohobuy.com'
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
)
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
'recommend'=>array($tpldata,$tpldata,$tpldata),
|
|
|
'newArrivls' => array(
|
|
|
'name' => '最新上架 NEW ARRIVALS',
|
|
|
'navs' => array(
|
|
|
array(
|
|
|
'id' => '',
|
|
|
'href' => '',
|
|
|
'name' => 'MORE'
|
|
|
)
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
'commodity'=>array(
|
|
|
array(
|
|
|
'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' ,
|
|
|
'img'=> 'http://img11.static.yhbimg.com/yhb-img01/2015/12/01/02/01c21e6610eefdc5ebd7ad890e49b09c2d.jpg',
|
|
|
'name'=> '优显led触控台灯',
|
|
|
'price'=> 168,
|
|
|
'state'=> 1 //状态
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' ,
|
|
|
'img'=> 'http://img11.static.yhbimg.com/yhb-img01/2015/12/01/02/01c21e6610eefdc5ebd7ad890e49b09c2d.jpg',
|
|
|
'name'=> '优显led触控台灯',
|
|
|
'price'=> 168,
|
|
|
'state'=> 1 //状态
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' ,
|
|
|
'img'=> 'http://img11.static.yhbimg.com/yhb-img01/2015/12/01/02/01c21e6610eefdc5ebd7ad890e49b09c2d.jpg',
|
|
|
'name'=> '优显led触控台灯',
|
|
|
'price'=> 168,
|
|
|
'state'=> 1 //状态
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' ,
|
|
|
'img'=> 'http://img11.static.yhbimg.com/yhb-img01/2015/12/01/02/01c21e6610eefdc5ebd7ad890e49b09c2d.jpg',
|
|
|
'name'=> '优显led触控台灯',
|
|
|
'price'=> 168,
|
|
|
'state'=> 1 //状态
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' ,
|
|
|
'img'=> 'http://img11.static.yhbimg.com/yhb-img01/2015/12/01/02/01c21e6610eefdc5ebd7ad890e49b09c2d.jpg',
|
|
|
'name'=> '优显led触控台灯',
|
|
|
'price'=> 168,
|
|
|
'state'=> 1 //状态
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/04/10/16/02963cdc1aeab10959bfeccc400aaa8de8.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' ,
|
|
|
'img'=> 'http://img11.static.yhbimg.com/yhb-img01/2015/12/01/02/01c21e6610eefdc5ebd7ad890e49b09c2d.jpg',
|
|
|
'name'=> '优显led触控台灯',
|
|
|
'price'=> 168,
|
|
|
'state'=> 1 //状态
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' ,
|
|
|
'img'=> 'http://img11.static.yhbimg.com/yhb-img01/2015/12/01/02/01c21e6610eefdc5ebd7ad890e49b09c2d.jpg',
|
|
|
'name'=> '优显led触控台灯',
|
|
|
'price'=> 168,
|
|
|
'state'=> 1 //状态
|
|
|
)
|
|
|
)
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/04/10/16/02963cdc1aeab10959bfeccc400aaa8de8.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/brandLogo/2015/03/18/16/020d4fec29ade8ccb6bc8e23b02c958a9d.jpg?imageView/2/w/185/h/86'
|
|
|
)
|
|
|
)
|
|
|
);
|
|
|
$this->_view->display('index', $data);
|
|
|
|
|
|
$this->echoJson($data);
|
|
|
}
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|