|
|
<?php
|
|
|
|
|
|
/*
|
|
|
* To change this license header, choose License Headers in Project Properties.
|
|
|
* To change this template file, choose Tools | Templates
|
|
|
* and open the template in the editor.
|
|
|
*/
|
|
|
|
|
|
use Action\AbstractAction;
|
|
|
|
|
|
class ShopController extends AbstractAction
|
|
|
{
|
|
|
/**
|
|
|
* 店铺品牌首页
|
|
|
*
|
|
|
* @return mixed
|
|
|
*/
|
|
|
public function indexAction()
|
|
|
{
|
|
|
|
|
|
$data = array(
|
|
|
'branerImg' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/18/05/026e96d1b403d28407650c7228bb4ca405.jpg?imageView2/2/w/640/h/200',
|
|
|
'goodList' => 'http://www.baidu.com',
|
|
|
'brands' => false,
|
|
|
'multiList' => array(
|
|
|
array(
|
|
|
'url' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/18/05/026b9aee5b7d2ec33e8db877c3d87b3386.jpg?imageView2/2/w/640/h/403',
|
|
|
'brandName' => '123re34456556900'
|
|
|
),
|
|
|
array(
|
|
|
'url' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/18/05/026b9aee5b7d2ec33e8db877c3d87b3386.jpg?imageView2/2/w/640/h/403',
|
|
|
'brandName' => '123re344565'
|
|
|
),
|
|
|
array(
|
|
|
'url' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/18/05/026b9aee5b7d2ec33e8db877c3d87b3386.jpg?imageView2/2/w/640/h/403',
|
|
|
'brandName' => '123re344565'
|
|
|
)
|
|
|
),
|
|
|
'bannerTop' => array(
|
|
|
'list' => array(
|
|
|
array(
|
|
|
'url' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/01/19/11/02039485d87cc1b100b883244cf386e62d.jpg?imageView/2/w/640/h/200',
|
|
|
),
|
|
|
array(
|
|
|
'url' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/yhb-img01/2016/01/19/11/02039485d87cc1b100b883244cf386e62d.jpg?imageView/2/w/640/h/200',
|
|
|
),
|
|
|
)
|
|
|
),
|
|
|
'spring' => array(
|
|
|
array(
|
|
|
'url' => '',
|
|
|
'springType' => 'http://img11.static.yhbimg.com/yhb-img01/2015/12/29/08/01ea96f5fd2ea8ef99d37d00f39d8e57f0.jpg?imageView/2/w/275/h/160'
|
|
|
),
|
|
|
array(
|
|
|
'url' => '',
|
|
|
'springType' => 'http://img11.static.yhbimg.com/yhb-img01/2015/12/29/08/019c44dcf0a93e9f3afe2fbec0d1961046.jpg?imageView/2/w/275/h/160'
|
|
|
)
|
|
|
),
|
|
|
'hotCategory' => array(
|
|
|
'name' => '热门品类',
|
|
|
'list' => array(
|
|
|
array(
|
|
|
'url' => 'http://img12.static.yhbimg.com/yhb-img01/2016/04/15/02/0295b83dc3bcef5bd59f339841f9ee92d1.jpg?imageView2/2/w/640/h/403',
|
|
|
'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/12/29/08/019c44dcf0a93e9f3afe2fbec0d1961046.jpg?imageView/2/w/275/h/160',
|
|
|
),
|
|
|
array(
|
|
|
'url' => 'http://img11.static.yhbimg.com/yhb-img01/2015/12/29/08/019c44dcf0a93e9f3afe2fbec0d1961046.jpg?imageView/2/w/275/h/160',
|
|
|
'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/12/29/08/019c44dcf0a93e9f3afe2fbec0d1961046.jpg?imageView/2/w/275/h/160',
|
|
|
),
|
|
|
array(
|
|
|
'url' => 'http://img11.static.yhbimg.com/yhb-img01/2015/12/29/08/019c44dcf0a93e9f3afe2fbec0d1961046.jpg?imageView/2/w/275/h/160',
|
|
|
'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/12/29/08/019c44dcf0a93e9f3afe2fbec0d1961046.jpg?imageView/2/w/275/h/160',
|
|
|
),
|
|
|
array(
|
|
|
'url' => 'http://img11.static.yhbimg.com/yhb-img01/2015/12/29/08/019c44dcf0a93e9f3afe2fbec0d1961046.jpg?imageView/2/w/275/h/160',
|
|
|
'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/12/29/08/019c44dcf0a93e9f3afe2fbec0d1961046.jpg?imageView/2/w/275/h/160',
|
|
|
),
|
|
|
array(
|
|
|
'url' => 'http://img11.static.yhbimg.com/yhb-img01/2015/12/29/08/019c44dcf0a93e9f3afe2fbec0d1961046.jpg?imageView/2/w/275/h/160',
|
|
|
'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/12/29/08/019c44dcf0a93e9f3afe2fbec0d1961046.jpg?imageView/2/w/275/h/160',
|
|
|
),
|
|
|
array(
|
|
|
'url' => 'http://img11.static.yhbimg.com/yhb-img01/2015/12/29/08/019c44dcf0a93e9f3afe2fbec0d1961046.jpg?imageView/2/w/275/h/160',
|
|
|
'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/12/29/08/019c44dcf0a93e9f3afe2fbec0d1961046.jpg?imageView/2/w/275/h/160',
|
|
|
),
|
|
|
array(
|
|
|
'url' => 'http://img11.static.yhbimg.com/yhb-img01/2015/12/29/08/019c44dcf0a93e9f3afe2fbec0d1961046.jpg?imageView/2/w/275/h/160',
|
|
|
'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/12/29/08/019c44dcf0a93e9f3afe2fbec0d1961046.jpg?imageView/2/w/275/h/160',
|
|
|
),
|
|
|
array(
|
|
|
'url' => 'http://img11.static.yhbimg.com/yhb-img01/2015/12/29/08/019c44dcf0a93e9f3afe2fbec0d1961046.jpg?imageView/2/w/275/h/160',
|
|
|
'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/12/29/08/019c44dcf0a93e9f3afe2fbec0d1961046.jpg?imageView/2/w/275/h/160',
|
|
|
)
|
|
|
)
|
|
|
),
|
|
|
'hotList' => array(
|
|
|
array(
|
|
|
'url' => '',
|
|
|
'listUrl' => 'http://img11.static.yhbimg.com/goodsimg/2016/04/07/07/0147c904336407bb9f4008bfda7920b9bd.jpg?imageMogr2/thumbnail/276x366/extent/276x366/background/d2hpdGU=/position/center/quality/80',
|
|
|
'originalPrice' => '¥599.00',
|
|
|
'presentPrice' => '¥399.00'
|
|
|
),
|
|
|
array(
|
|
|
'url' => '',
|
|
|
'listUrl' => 'http://img11.static.yhbimg.com/goodsimg/2016/04/07/07/0147c904336407bb9f4008bfda7920b9bd.jpg?imageMogr2/thumbnail/276x366/extent/276x366/background/d2hpdGU=/position/center/quality/80',
|
|
|
'originalPrice' => '¥599',
|
|
|
'presentPrice' => '¥399'
|
|
|
),
|
|
|
array(
|
|
|
'url' => '',
|
|
|
'listUrl' => 'http://img11.static.yhbimg.com/goodsimg/2016/04/07/07/0147c904336407bb9f4008bfda7920b9bd.jpg?imageMogr2/thumbnail/276x366/extent/276x366/background/d2hpdGU=/position/center/quality/80',
|
|
|
'originalPrice' => '¥599',
|
|
|
'presentPrice' => '¥399'
|
|
|
),
|
|
|
array(
|
|
|
'url' => '',
|
|
|
'listUrl' => 'http://img11.static.yhbimg.com/goodsimg/2016/04/07/07/0147c904336407bb9f4008bfda7920b9bd.jpg?imageMogr2/thumbnail/276x366/extent/276x366/background/d2hpdGU=/position/center/quality/80',
|
|
|
'originalPrice' => '¥599',
|
|
|
'presentPrice' => '¥399'
|
|
|
),
|
|
|
array(
|
|
|
'url' => '',
|
|
|
'listUrl' => 'http://img11.static.yhbimg.com/goodsimg/2016/04/07/07/0147c904336407bb9f4008bfda7920b9bd.jpg?imageMogr2/thumbnail/276x366/extent/276x366/background/d2hpdGU=/position/center/quality/80',
|
|
|
'originalPrice' => '¥599.00',
|
|
|
'presentPrice' => '¥399.00'
|
|
|
),
|
|
|
array(
|
|
|
'url' => '',
|
|
|
'listUrl' => 'http://img11.static.yhbimg.com/goodsimg/2016/04/07/07/0147c904336407bb9f4008bfda7920b9bd.jpg?imageMogr2/thumbnail/276x366/extent/276x366/background/d2hpdGU=/position/center/quality/80',
|
|
|
'originalPrice' => '¥599',
|
|
|
'presentPrice' => '¥399'
|
|
|
),
|
|
|
array(
|
|
|
'url' => '',
|
|
|
'listUrl' => 'http://img11.static.yhbimg.com/goodsimg/2016/04/07/07/0147c904336407bb9f4008bfda7920b9bd.jpg?imageMogr2/thumbnail/276x366/extent/276x366/background/d2hpdGU=/position/center/quality/80',
|
|
|
'originalPrice' => '¥599',
|
|
|
'presentPrice' => '¥399'
|
|
|
),
|
|
|
array(
|
|
|
'url' => '',
|
|
|
'listUrl' => 'http://img11.static.yhbimg.com/goodsimg/2016/04/07/07/0147c904336407bb9f4008bfda7920b9bd.jpg?imageMogr2/thumbnail/276x366/extent/276x366/background/d2hpdGU=/position/center/quality/80',
|
|
|
'originalPrice' => '¥599',
|
|
|
'presentPrice' => '¥399'
|
|
|
)
|
|
|
),
|
|
|
'goods' => array(
|
|
|
array(
|
|
|
'url' => 'http://m.yohobuy.com/product/pro_320421_412063/SYSTAGYuanLingWeiYiSYSA601HC09.html',
|
|
|
'thumb' => 'http://img10.static.yhbimg.com/goodsimg/2015/12/07/09/01ced0e2ed6a4f2a6d95be70cd0a6c5a56.jpg?imageView/2/w/235/h/314',
|
|
|
'name' => 'NEFF ONE OF US RAGLAN L/S 男款森林风连帽卫衣',
|
|
|
'salePrice' => '759.00',
|
|
|
'price' => '799.00',
|
|
|
'tags' => array(
|
|
|
'is_new' => false,
|
|
|
'is_advance' => true,
|
|
|
'is_discount' => false,
|
|
|
'is_yohoood' => false,
|
|
|
'is_limited' => false
|
|
|
),
|
|
|
'is_soon_sold_out' => false
|
|
|
),
|
|
|
array(
|
|
|
'url' => 'http://m.yohobuy.com/product/pro_320421_412063/SYSTAGYuanLingWeiYiSYSA601HC09.html',
|
|
|
'thumb' => 'http://img10.static.yhbimg.com/goodsimg/2015/12/07/09/01ced0e2ed6a4f2a6d95be70cd0a6c5a56.jpg?imageView/2/w/235/h/314',
|
|
|
'name' => 'NEFF ONE OF US RAGLAN L/S 男款森林风连帽卫衣',
|
|
|
'salePrice' => '759.00',
|
|
|
'price' => '799.00',
|
|
|
'tags' => array(
|
|
|
'is_new' => true,
|
|
|
'is_advance' => false,
|
|
|
'is_discount' => false,
|
|
|
'is_yohoood' => false,
|
|
|
'is_limited' => false
|
|
|
),
|
|
|
'is_soon_sold_out' => false
|
|
|
),
|
|
|
array(
|
|
|
'url' => 'http://m.yohobuy.com/product/pro_320421_412063/SYSTAGYuanLingWeiYiSYSA601HC09.html',
|
|
|
'thumb' => 'http://img10.static.yhbimg.com/goodsimg/2015/12/07/09/01ced0e2ed6a4f2a6d95be70cd0a6c5a56.jpg?imageView/2/w/235/h/314',
|
|
|
'name' => 'NEFF ONE OF US RAGLAN L/S 男款森林风连帽卫衣',
|
|
|
'salePrice' => '759.00',
|
|
|
'price' => '799.00',
|
|
|
'tags' => array(
|
|
|
'is_new' => true,
|
|
|
'is_advance' => false,
|
|
|
'is_discount' => false,
|
|
|
'is_yohoood' => false,
|
|
|
'is_limited' => false
|
|
|
),
|
|
|
'is_soon_sold_out' => false
|
|
|
),
|
|
|
array(
|
|
|
'url' => 'http://m.yohobuy.com/product/pro_320421_412063/SYSTAGYuanLingWeiYiSYSA601HC09.html',
|
|
|
'thumb' => 'http://img10.static.yhbimg.com/goodsimg/2015/12/07/09/01ced0e2ed6a4f2a6d95be70cd0a6c5a56.jpg?imageView/2/w/235/h/314',
|
|
|
'name' => 'NEFF ONE OF US RAGLAN L/S 男款森林风连帽卫衣',
|
|
|
'salePrice' => '759.00',
|
|
|
'price' => '799.00',
|
|
|
'tags' => array(
|
|
|
'is_new' => true,
|
|
|
'is_advance' => false,
|
|
|
'is_discount' => false,
|
|
|
'is_yohoood' => false,
|
|
|
'is_limited' => false
|
|
|
),
|
|
|
'is_soon_sold_out' => false
|
|
|
),
|
|
|
array(
|
|
|
'url' => 'http://m.yohobuy.com/product/pro_320421_412063/SYSTAGYuanLingWeiYiSYSA601HC09.html',
|
|
|
'thumb' => 'http://img10.static.yhbimg.com/goodsimg/2015/12/07/09/01ced0e2ed6a4f2a6d95be70cd0a6c5a56.jpg?imageView/2/w/235/h/314',
|
|
|
'name' => 'NEFF ONE OF US RAGLAN L/S 男款森林风连帽卫衣',
|
|
|
'salePrice' => '759.00',
|
|
|
'price' => '799.00',
|
|
|
'tags' => array(
|
|
|
'is_new' => true,
|
|
|
'is_advance' => false,
|
|
|
'is_discount' => false,
|
|
|
'is_yohoood' => false,
|
|
|
'is_limited' => false
|
|
|
),
|
|
|
'is_soon_sold_out' => false
|
|
|
),
|
|
|
array(
|
|
|
'url' => 'http://m.yohobuy.com/product/pro_320421_412063/SYSTAGYuanLingWeiYiSYSA601HC09.html',
|
|
|
'thumb' => 'http://img10.static.yhbimg.com/goodsimg/2015/12/07/09/01ced0e2ed6a4f2a6d95be70cd0a6c5a56.jpg?imageView/2/w/235/h/314',
|
|
|
'name' => 'NEFF ONE OF US RAGLAN L/S 男款森林风连帽卫衣',
|
|
|
'salePrice' => '759.00',
|
|
|
'price' => '799.00',
|
|
|
'tags' => array(
|
|
|
'is_new' => true,
|
|
|
'is_advance' => false,
|
|
|
'is_discount' => false,
|
|
|
'is_yohoood' => false,
|
|
|
'is_limited' => false
|
|
|
),
|
|
|
'is_soon_sold_out' => false
|
|
|
)
|
|
|
)
|
|
|
);
|
|
|
|
|
|
return $this->_view->display('index', array(
|
|
|
'shopIndex' => $data,
|
|
|
'shopPage' => true
|
|
|
));
|
|
|
}
|
|
|
} |
|
|
\ No newline at end of file |