Boys.php 16.3 KB
<?php
use Action\AbstractAction;

/**
 * 男首
 */
class BoysController extends AbstractAction
{
    public function indexAction()
    {
        $this->setTitle('男生首页');
        $tpldata = array(
            'name'=>'潮人配饰 ORNAMENT',
            'navs' => array(
                array(
                    'id' => '',
                    'href' => '',
                    'name' => 'MORE'
                )
            ),
            'tplrecommend'=>array(
                'keyword'=>array(array('name'=>'工装短裤','img'=>'','url'=>''),array('name'=>'英伦风','img'=>'','url'=>'')),
                'category'=>array(array('name'=>'衣服','url'=>''),array('name'=>'裤子','url'=>''),array('name'=>'衣服','url'=>''),array('name'=>'裤子','url'=>''),array('name'=>'衣服','url'=>''),array('name'=>'裤子','url'=>''),array('name'=>'衣服','url'=>''),array('name'=>'裤子','url'=>''),array('name'=>'衣服','url'=>''),array('name'=>'裤子','url'=>''),array('name'=>'衣服','url'=>''),array('name'=>'裤子','url'=>'')),
                'brands'=>array(array('name'=>'工装短裤','img'=>'','url'=>''),array('name'=>'英伦风','img'=>'','url'=>'')),
                'types'=>array(array('name'=>'工装短裤','img'=>'','url'=>''),array('name'=>'英伦风','img'=>'','url'=>''),array('name'=>'工装短裤','img'=>'','url'=>''),array('name'=>'英伦风','img'=>'','url'=>''),array('name'=>'工装短裤','img'=>'','url'=>''),array('name'=>'英伦风','img'=>'','url'=>'')),
                'products'=>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
                    ),
                    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
                    ),
                    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
                    ),
                    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
                    ),
                    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
                    )
                )
            )
        );
        $data = array(
            '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'
                    )
                ),
                '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'
                        )
                    )
                ),
                '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'
                        ),
                    ),
                    'logoBrand' => array(
                        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(
                            'switch' => true
                        ),
                        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(
                            'more' => true,
                            'href' => 'http://www.yohobuy.com'
                        ),
                    )
                ),
                'recommend'=>array($tpldata,$tpldata,$tpldata),
                'newArrivls' => array(
                    'name' => '最新上架  NEW ARRIVALS',
                    'navs' => array(
                        array(
                            'id' => '',
                            'href' => '',
                            'name' => 'MORE'
                        )
                    ),
                    '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 //状态
                        ),
                        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 //状态
                        )
                    )
                )
            )
    		);
        $this->_view->display('index', $data);
    }
}