...
|
...
|
@@ -14,4 +14,513 @@ class Sale1Controller extends AbstractAction |
|
|
);
|
|
|
$this->_view->display('index', $data);
|
|
|
}
|
|
|
|
|
|
//列表页
|
|
|
public function saleListAction()
|
|
|
{
|
|
|
$data = array(
|
|
|
'saleListPage' => true,
|
|
|
'saleList' => array(
|
|
|
'saleBanner' => array(
|
|
|
'bannerHeight' => 350,
|
|
|
'img' => 'http://img12.static.yhbimg.com/couponImg/2015/12/10/08/02d4c26f19ca2e44359d69d5cff86167fb.jpg'
|
|
|
),
|
|
|
'saleTitle' => array(
|
|
|
'name' => '全部商品',
|
|
|
'count' => 540
|
|
|
),
|
|
|
'leftContent' => array(
|
|
|
array(
|
|
|
'allSort' => array(
|
|
|
'updateNum' => 145,
|
|
|
'list' => array(
|
|
|
array(
|
|
|
'name' => '裙装',
|
|
|
'num' => '10',
|
|
|
'childList' => array(
|
|
|
array(
|
|
|
'name' => '全身裙装',
|
|
|
'href' => 'http://adidas.yohobuy.com/?gender=1,3',
|
|
|
'num' => '5'
|
|
|
),
|
|
|
array(
|
|
|
'name' => '全身裙装',
|
|
|
'href' => 'http://adidas.yohobuy.com/?gender=1,3',
|
|
|
'num' => '5'
|
|
|
),
|
|
|
array(
|
|
|
'name' => '全身裙装',
|
|
|
'href' => 'http://adidas.yohobuy.com/?gender=1,3',
|
|
|
'num' => '5'
|
|
|
),
|
|
|
array(
|
|
|
'name' => '全身裙装',
|
|
|
'href' => 'http://adidas.yohobuy.com/?gender=1,3',
|
|
|
'num' => '5'
|
|
|
)
|
|
|
)
|
|
|
),
|
|
|
array(
|
|
|
'name' => '裙装BBB',
|
|
|
'num' => '10',
|
|
|
'childList' => array(
|
|
|
array(
|
|
|
'name' => '全身裙装',
|
|
|
'href' => 'http://adidas.yohobuy.com/?gender=1,3',
|
|
|
'num' => '5'
|
|
|
),
|
|
|
array(
|
|
|
'name' => '全身裙装',
|
|
|
'href' => 'http://adidas.yohobuy.com/?gender=1,3',
|
|
|
'num' => '5'
|
|
|
),
|
|
|
array(
|
|
|
'name' => '全身裙装',
|
|
|
'href' => 'http://adidas.yohobuy.com/?gender=1,3',
|
|
|
'num' => '5'
|
|
|
),
|
|
|
array(
|
|
|
'name' => '全身裙装',
|
|
|
'href' => 'http://adidas.yohobuy.com/?gender=1,3',
|
|
|
'num' => '5'
|
|
|
)
|
|
|
)
|
|
|
)
|
|
|
)
|
|
|
)
|
|
|
),
|
|
|
array(
|
|
|
'picLink' => array(
|
|
|
'title' => 'AAAA',
|
|
|
'list' => array(
|
|
|
array(
|
|
|
'href' => 'http://adidas.yohobuy.com/?folder=1366',
|
|
|
'src' => 'http://img12.static.yhbimg.com/brandBanner/2015/02/04/06/0216e9a4c1c1edb0c8fe6b4347cc5a8035.jpg'
|
|
|
),
|
|
|
array(
|
|
|
'href' => 'http://adidas.yohobuy.com/?folder=1366',
|
|
|
'src' => 'http://img12.static.yhbimg.com/brandBanner/2015/02/04/06/0216e9a4c1c1edb0c8fe6b4347cc5a8035.jpg'
|
|
|
)
|
|
|
)
|
|
|
)
|
|
|
),
|
|
|
array(
|
|
|
'advPic' => array(
|
|
|
'advPicTitle' => false,
|
|
|
'list' => array(
|
|
|
array(
|
|
|
'href' => 'http://adidas.yohobuy.com/?folder=1366',
|
|
|
'src' => 'http://img02.static.yohobuy.com/cms/2015/11/10/15/02ee7970deb68390b77cbf0685f26fc5bf.jpg'
|
|
|
),
|
|
|
array(
|
|
|
'href' => 'http://adidas.yohobuy.com/?folder=1366',
|
|
|
'src' => 'http://img02.static.yohobuy.com/cms/2015/11/10/15/02ee7970deb68390b77cbf0685f26fc5bf.jpg'
|
|
|
)
|
|
|
)
|
|
|
)
|
|
|
),
|
|
|
array(
|
|
|
'newSales' => array(
|
|
|
'updateNum' => 130,
|
|
|
'list' => array(
|
|
|
array(
|
|
|
'name' => '12月03日',
|
|
|
'href' => 'http://adidas.yohobuy.com/?gender=1,3',
|
|
|
'num' => '5'
|
|
|
),
|
|
|
array(
|
|
|
'name' => '12月03日',
|
|
|
'href' => 'http://adidas.yohobuy.com/?gender=1,3',
|
|
|
'num' => '5'
|
|
|
),
|
|
|
array(
|
|
|
'name' => '12月03日',
|
|
|
'href' => 'http://adidas.yohobuy.com/?gender=1,3',
|
|
|
'num' => '5'
|
|
|
),
|
|
|
array(
|
|
|
'name' => '12月03日',
|
|
|
'href' => 'http://adidas.yohobuy.com/?gender=1,3',
|
|
|
'num' => '5'
|
|
|
)
|
|
|
)
|
|
|
)
|
|
|
),
|
|
|
array(
|
|
|
'allDiscount' => array(
|
|
|
'updateNum' => 130,
|
|
|
'list' => array(
|
|
|
array(
|
|
|
'name' => '1~3折',
|
|
|
'href' => 'http://adidas.yohobuy.com/?gender=1,3',
|
|
|
'num' => '5'
|
|
|
),
|
|
|
array(
|
|
|
'name' => '4~6折',
|
|
|
'href' => 'http://adidas.yohobuy.com/?gender=1,3',
|
|
|
'num' => '5'
|
|
|
),
|
|
|
array(
|
|
|
'name' => '7折',
|
|
|
'href' => 'http://adidas.yohobuy.com/?gender=1,3',
|
|
|
'num' => '5'
|
|
|
)
|
|
|
)
|
|
|
)
|
|
|
)
|
|
|
),
|
|
|
'filters' => array(
|
|
|
'checkedConditions' => array(
|
|
|
'conditions' => array(
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'name' => '暗黑'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'color' => '#f00'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'name' => 'CLOT'
|
|
|
)
|
|
|
),
|
|
|
'clearUrl' => ''
|
|
|
),
|
|
|
'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' => '上衣',
|
|
|
'sub' => array(
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'name' => 'T恤'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'name' => '棉袄'
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'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' => '夏天'
|
|
|
)
|
|
|
)
|
|
|
)
|
|
|
)
|
|
|
),
|
|
|
'opts' => array(
|
|
|
'sortType' => array(
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'name' => '默认'
|
|
|
),
|
|
|
array(
|
|
|
'active' => true,
|
|
|
'href' => '',
|
|
|
'name' => '最新',
|
|
|
'hasSortOrient' => true,
|
|
|
'desc' => true
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'name' => '价格',
|
|
|
'hasSortOrient' => true
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'name' => '折扣',
|
|
|
'hasSortOrient' => true
|
|
|
)
|
|
|
),
|
|
|
'checks' => array(
|
|
|
array(
|
|
|
'name' => '新品',
|
|
|
'checked' => true,
|
|
|
'href' => ''
|
|
|
),
|
|
|
array(
|
|
|
'name' => '打折',
|
|
|
'href' => ''
|
|
|
),
|
|
|
array(
|
|
|
'name' => '限量',
|
|
|
'checked' => true,
|
|
|
'href' => ''
|
|
|
)
|
|
|
),
|
|
|
'fivePerLine' => true,
|
|
|
'sixPerLineHref' => '',
|
|
|
'countPerPage' => '120',
|
|
|
'pageCounts' => array(
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'count' => 60
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'count' => 100
|
|
|
),
|
|
|
array(
|
|
|
'href' => '',
|
|
|
'count' => 120
|
|
|
)
|
|
|
),
|
|
|
'curPage' => 1,
|
|
|
'pageCount' => 30,
|
|
|
'nextHref' => 'hello'
|
|
|
),
|
|
|
'goods' => array(
|
|
|
array(
|
|
|
'tags' => array(
|
|
|
'isNew' => true,
|
|
|
'isYearEndPromotion' => true
|
|
|
),
|
|
|
'url' => 'http://adidas.yohobuy.com/?gender=1,3',
|
|
|
'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
|
|
|
'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋',
|
|
|
'salePrice' => '899',
|
|
|
'isFew' => true
|
|
|
),
|
|
|
array(
|
|
|
'tags' => array(
|
|
|
'isNew' => true,
|
|
|
'isReNew' => true
|
|
|
),
|
|
|
'url' => 'http://adidas.yohobuy.com/?gender=1,3',
|
|
|
'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
|
|
|
'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋',
|
|
|
'salePrice' => '899',
|
|
|
'showColBtn' => true
|
|
|
),
|
|
|
array(
|
|
|
'tags' => array(
|
|
|
'isNew' => true,
|
|
|
'isReNew' => true
|
|
|
),
|
|
|
'url' => 'http://adidas.yohobuy.com/?gender=1,3',
|
|
|
'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
|
|
|
'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋',
|
|
|
'salePrice' => '899'
|
|
|
),
|
|
|
array(
|
|
|
'url' => 'http://adidas.yohobuy.com/?gender=1,3',
|
|
|
'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
|
|
|
'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋',
|
|
|
'salePrice' => '899'
|
|
|
),
|
|
|
array(
|
|
|
'tags' => array(
|
|
|
'isNew' => true,
|
|
|
'isReNew' => true
|
|
|
),
|
|
|
'url' => 'http://adidas.yohobuy.com/?gender=1,3',
|
|
|
'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
|
|
|
'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋',
|
|
|
'salePrice' => '899'
|
|
|
),
|
|
|
array(
|
|
|
'tags' => array(
|
|
|
'isNew' => true,
|
|
|
'isReNew' => true
|
|
|
),
|
|
|
'url' => 'http://adidas.yohobuy.com/?gender=1,3',
|
|
|
'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/11/22/03/02c17af44dc23aa5a62d61cb59a05380bc.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
|
|
|
'name' => 'adidas Originals FORUM 中帮拼色休闲板鞋',
|
|
|
'salePrice' => '899'
|
|
|
)
|
|
|
),
|
|
|
'totalCount' => '2259',
|
|
|
'pager' => '<a href="" class="cur"><span>1</span></a><a href=""><span>2</span></a><a href="" title="下一页">下一页<span class="iconfont">></span></a>'
|
|
|
)
|
|
|
);
|
|
|
$this->_view->display('sale-list', $data);
|
|
|
}
|
|
|
} |
...
|
...
|
|