Index.php 7.23 KB
<?php

use Action\AbstractAction;
use Plugin\Helpers;

class IndexController extends AbstractAction
{
    /**
     * 商品列表
     */
    public function indexAction()
    {
        $data = array(
            'searchListPage' => true,
            'filters' => array(
                'channel' => array(
                    array(
                        'href' => '/?gender=1,3',
                        'name' => 'BOYS'
                    ),
                    array(
                        'href' => '/?gender=2,3',
                        'name' => 'GIRLS'
                    ),
                    array(
                        'href' => '',
                        'name' => 'KIDS'
                    ),
                    array(
                        'href' => '',
                        'name' => 'LIFESTYLE'
                    )
                ),
                'sort' => array(
                    array(
                        'id' => '1',
                        'name' => '上衣'
                    ),
                    array(
                        'id' => '2',
                        'name' => '裤子'
                    ),
                    array(
                        'id' => '3',
                        'name' => '连衣裙'
                    ),
                    array(
                        'id' => '4',
                        'name' => '鞋'
                    )
                ),
                'brand' => array(
                    'default' => array(
                        array(
                            'href' => '',
                            'name' => 'CLOT'
                        ),
                        array(
                            'href' => '',
                            'name' => 'ABLE JEANS'
                        ),
                        array(
                            'href' => '',
                            'name' => 'Eight Guys'
                        ),
                        array(
                            'href' => '',
                            'name' => 'FAIRWHALE JEANS'
                        ),
                        array(
                            'href' => '',
                            'name' => '鬼洗'
                        ),
                        array(
                            'href' => '',
                            'name' => '金银帝国Imperial Taels'
                        ),
                        array(
                            'href' => '',
                            'name' => 'F.L.Y.D'
                        ),
                        array(
                            'href' => '',
                            'name' => 'Tapenade特芙娜'
                        ),
                        array(
                            'href' => '',
                            'name' => 'Adidas Originals'
                        )
                    ),
                    'brandIndex' => array(
                        array(
                            'index' => 'all',
                            'name' => '全部'
                        ),
                        array(
                            'index' => '0-9',
                            'name' => '0 ~ 9'
                        ),
                        array(
                            'index' => 'a',
                            'name' => 'A'
                        )
                    ),
                    'brandsShow' => array(
                        array(
                            'id' => '1',
                            'href' => '',
                            'index' => '0-9',
                            'name' => '5cm',
                            'key' => '5cm'
                        ),
                        array(
                            'id' => '2',
                            'href' => '',
                            'index' => 'k',
                            'name' => 'KTZ',
                            'key' => 'ktz'
                        ),
                        array(
                            'id' => '3',
                            'href' => '',
                            'index' => 't',
                            'name' => 'Tapenade特芙娜',
                            'key' => 'tapenade特芙娜'
                        ),
                        array(
                            'id' => '4',
                            'href' => '',
                            'index' => 'j',
                            'name' => '金银帝国Imperial Taels',
                            'key' => '金银帝国imperial taels'
                        ),
                        array(
                            'id' => '5',
                            'href' => '',
                            'index' => 'a',
                            'name' => 'ABLE JEANS',
                            'key' => 'able jeans'
                        )
                    )
                ),
                'price' => array(
                    array(
                        'href' => '',
                        'name' => '0-239'
                    ),
                    array(
                        'href' => '',
                        'name' => '240-329'
                    )
                ),
                'color' => array(
                    array(
                        'href' => '',
                        'name' => '黑色',
                        'rgb' => '#000'
                    ),
                    array(
                        'href' => '',
                        'name' => '红色',
                        'rgb' => '#f00'
                    )
                ),
                'size' => array(
                    array(
                        'href' => '',
                        'name' => 'S'
                    ),
                    array(
                        'href' => '',
                        'name' => 'L'
                    )
                ),
                'seniorChose' => array(
                    array(
                        'attr' => 'style',
                        'name' => '风格',
                        'showMulti' => true,
                        'sub' => array(
                            array(
                                'id' => '1',
                                'href' => '',
                                'name' => '街头'
                            ),
                            array(
                                'id' => '2',
                                'href' => '',
                                'name' => '简约'
                            )
                        )
                    ),
                    array(
                        'attr' => 'weather',
                        'name' => '适用季节',
                        'sub' => array(
                            array(
                                'id' => '1',
                                'href' => '',
                                'name' => '春天'
                            ),
                            array(
                                'id' => '2',
                                'href' => '',
                                'name' => '夏天'
                            )
                        )
                    )
                )
            )
        );
        $this->_view->display('list', $data);
    }
}