Girls.php 18.3 KB
<?php

use Action\AbstractAction;
use LibModels\Wap\Home\IndexData as Index;

/**
 * 女生首页
 */
class GirlsController extends AbstractAction
{

    public function indexAction()
    {
        // 显示侧边栏
        $this->setNavSide();
        
        $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(
                'bgColor' => '#FF88AE',
                '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,
                                'bgColor' => '#fd307f'
                            ),
                            array(
                                'textCn' => '查看全部',
                                'url' => ''
                            ),
                            array(
                                'textCn' => '只看男生',
                                'textEn' => 'Boys',
                                'url' => ''
                            ),
                            array(
                                'textCn' => '只看女生',
                                'textEn' => 'Girls',
                                'url' => '',
                                'isSelect' => true
                            )
                        )
                    )
                )
            ),
            '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' => '耳机'
                        )
                    )
                )
        ));

   

        $this->_view->assign('title', 'YOHO!有货');
        $this->_view->display('index', $data);

        //    // 频道数据
        //    $channelData = Index::getUserChannelData(0, '2,3', '201504091403002');
        //    echo '<pre>';
        //    print_r($channelData);
        // $this->_view->assign('title', 'YOHO!有货');
        //    $this->_view->display('girls', compact('channelData'));
    }

}