Guang.php 4.69 KB
<?php
use Action\AbstractAction;

/**
 * 逛
 */
class GuangController extends AbstractAction
{
    /**
     * 逛首页
     */
    public function indexAction()
    {
        $data = array(
            'guangIndexPage' => true,
            'guang' => array(
                'slider' => array(
                    array(
                        'href' => '',
                        'img' => 'http://img13.static.yhbimg.com/taobaocms/2015/06/17/07/0240f288725106b408d8c524b4d0fba4b9.jpg'
                    ),
                    array(
                        'href' => '',
                        'img' => 'http://img13.static.yhbimg.com/taobaocms/2015/06/17/07/02934d7696b187d260341d31c084eb93cc.jpg'
                    )
                ),
                'msgTypes' => array(
                    array(
                        'typeId' => 1,
                        'type' => '最新',
                        'navUrl' => '/'
                    ),
                    array(
                        'typeId' => 2,
                        'type' => '话题',
                        'isActive' => true,
                        'navUrl' => '/'
                    ),
                    array(
                        'typeId' => 3,
                        'type' => '搭配',
                        'navUrl' => '/'
                    ),
                    array(
                        'typeId' => 4,
                        'type' => '潮人',
                        'navUrl' => '/'
                    ),
                    array(
                        'typeId' => 5,
                        'type' => '潮物',
                        'navUrl' => '/'
                    ),
                    array(
                        'typeId' => 6,
                        'type' => '小贴士',
                        'navUrl' => '/'
                    )
                ),
                'msgs' => array(
                    array(
                        'id' => 1,
                        'classification' => '话题',
                        'isReco' => true,
                        'href' => '',
                        'img' => 'http://img10.static.yhbimg.com/yhb-img01/2015/06/12/17/01437323c88bc61f26721a2ad91a2ba61a.png?imageView/2/w/640/h/640',
                        'isSquareImg' => true,
                        'title' => '破旧除新!Publish完美释出2015最新春季[TheResistance]系列看看你很长的时候会不会分页啊,奇怪的人类',
                        'author' => '大家玩看看作者名字 过长的情况显示是不是有问题呵呵哒哒哒',
                        'editorHref' => '',
                        'pTime' => '2015-03-08 15:33',
                        'pView' => '225',
                        'content' => '该类型 应用于多图形式。虽说洛杉矶街头品牌Publish是凭着设计一炮而红,跃升为近年人气品牌,但是该设计团队却打算你妹啊鬼知道你后面说什么但是要测试文字截取能不能成功,所以必须要把你写很长很长很长很长很长',
                        'tags' => array(
                            array(
                                'href' => '',
                                'tag' => 'adidas OriginalsQ'
                            )
                        ),
                        'like' => 0, //如果为0,不传
                        // 'liked' => false,
                        'comment' => 20
                    )
                ),
                'exRecos' => array(
                    array(
                        'url' => '',
                        'img' => 'http://img10.static.yhbimg.com/yhb-img01/2015/06/12/17/01437323c88bc61f26721a2ad91a2ba61a.png?imageView/2/w/640/h/640',
                        'title' => '皇家蓝再现,New Balance 999 Elite文字描述长一点查看文字截取的功能'
                    )
                ),
                'hotTags' => array(
                    array(
                        'tagname' => 'LEE',
                        'url' => ''
                    )
                ),
                'ads' => array(
                    array(
                        'url' => '',
                        'img' => 'http://img13.static.yhbimg.com/taobaocms/2015/06/17/07/0240f288725106b408d8c524b4d0fba4b9.jpg'
                    )
                ),
                'msgPager' => '<a href="" class="cur"><span>1</span></a><a href=""><span>2</span></a><a href="" title="下一页">下一页<span class="ifont10">&gt;</span></a>'
            )
        );
        $this->_view->display('index', $data);
    }

    /**
     * 逛详情页
     */
    public function detailAction()
    {

    }

    /**
     * 编辑页
     */
    public function editorAction()
    {

    }
}