...
|
...
|
@@ -35,195 +35,6 @@ class NewsaleController extends AbstractAction |
|
|
/*echo '<pre>';
|
|
|
print_r($data);exit;*/
|
|
|
|
|
|
/*$data = array(
|
|
|
'headerBanner' => array(
|
|
|
'list' => array(
|
|
|
array(
|
|
|
'url' => '',
|
|
|
'img' => 'http://img12.static.yhbimg.com/adpic/2015/08/14/12/0205a06e86edb30a7d1833477a9e886577.jpg?imageView/2/w/640/h/480',
|
|
|
)
|
|
|
)
|
|
|
),
|
|
|
'tabs' => array(
|
|
|
array(
|
|
|
'title' => '10月15日',
|
|
|
'focus' => true
|
|
|
),
|
|
|
array(
|
|
|
'title' => '本周上新'
|
|
|
),
|
|
|
array(
|
|
|
'title' => '销量'
|
|
|
)
|
|
|
),
|
|
|
'goodsContainer' => array(
|
|
|
array(
|
|
|
'show' => 'true',
|
|
|
'goods' => array(
|
|
|
array(
|
|
|
'id' => '',
|
|
|
'thumb' => 'http://img12.static.yhbimg.com/adpic/2015/08/14/12/0205a06e86edb30a7d1833477a9e886577.jpg?imageView/2/w/640/h/480',
|
|
|
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
|
|
|
'isLike' => false,
|
|
|
'price' => 1268,
|
|
|
'salePrice' => 589,
|
|
|
'isSale' => true,
|
|
|
'isFew' => true,
|
|
|
'isNew' => false,
|
|
|
'url' => ''
|
|
|
),
|
|
|
array(
|
|
|
'id' => '',
|
|
|
'thumb' => 'http://img12.static.yhbimg.com/adpic/2015/08/14/12/0205a06e86edb30a7d1833477a9e886577.jpg?imageView/2/w/640/h/480',
|
|
|
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
|
|
|
'isLike' => false,
|
|
|
'price' => 1268,
|
|
|
'salePrice' => 589,
|
|
|
'isSale' => true,
|
|
|
'isFew' => true,
|
|
|
'isNew' => false,
|
|
|
'url' => ''
|
|
|
),
|
|
|
array(
|
|
|
'id' => '',
|
|
|
'thumb' => 'http://img12.static.yhbimg.com/adpic/2015/08/14/12/0205a06e86edb30a7d1833477a9e886577.jpg?imageView/2/w/640/h/480',
|
|
|
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
|
|
|
'isLike' => false,
|
|
|
'price' => 1268,
|
|
|
'salePrice' => 589,
|
|
|
'isSale' => true,
|
|
|
'isFew' => true,
|
|
|
'isNew' => false,
|
|
|
'url' => ''
|
|
|
),
|
|
|
array(
|
|
|
'id' => '',
|
|
|
'thumb' => 'http://img12.static.yhbimg.com/adpic/2015/08/14/12/0205a06e86edb30a7d1833477a9e886577.jpg?imageView/2/w/640/h/480',
|
|
|
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
|
|
|
'isLike' => false,
|
|
|
'price' => 1268,
|
|
|
'salePrice' => 589,
|
|
|
'isSale' => true,
|
|
|
'isFew' => true,
|
|
|
'isNew' => false,
|
|
|
'url' => ''
|
|
|
)
|
|
|
|
|
|
)
|
|
|
),
|
|
|
array(
|
|
|
'goods' => array(
|
|
|
array(
|
|
|
'id' => '',
|
|
|
'thumb' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
|
|
|
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
|
|
|
'isLike' => false,
|
|
|
'price' => 1268,
|
|
|
'salePrice' => 589,
|
|
|
'isSale' => true,
|
|
|
'isFew' => true,
|
|
|
'isNew' => false,
|
|
|
'url' => ''
|
|
|
),
|
|
|
array(
|
|
|
'id' => '',
|
|
|
'thumb' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
|
|
|
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
|
|
|
'isLike' => false,
|
|
|
'price' => 1268,
|
|
|
'salePrice' => 589,
|
|
|
'isSale' => true,
|
|
|
'isFew' => true,
|
|
|
'isNew' => false,
|
|
|
'url' => ''
|
|
|
),
|
|
|
array(
|
|
|
'id' => '',
|
|
|
'thumb' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
|
|
|
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
|
|
|
'isLike' => false,
|
|
|
'price' => 1268,
|
|
|
'salePrice' => 589,
|
|
|
'isSale' => true,
|
|
|
'isFew' => true,
|
|
|
'isNew' => false,
|
|
|
'url' => ''
|
|
|
),
|
|
|
array(
|
|
|
'id' => '',
|
|
|
'thumb' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
|
|
|
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
|
|
|
'isLike' => false,
|
|
|
'price' => 1268,
|
|
|
'salePrice' => 589,
|
|
|
'isSale' => true,
|
|
|
'isFew' => true,
|
|
|
'isNew' => false,
|
|
|
'url' => ''
|
|
|
)
|
|
|
|
|
|
)
|
|
|
|
|
|
),
|
|
|
array(
|
|
|
'goods' => array(
|
|
|
array(
|
|
|
'id' => '',
|
|
|
'thumb' => 'http://img11.static.yhbimg.com/yhb-img01/2015/09/17/09/015e14c53a41c7adf0bd039f6493b5a700.jpg?imageView/2/w/140/h/140',
|
|
|
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
|
|
|
'isLike' => false,
|
|
|
'price' => 1268,
|
|
|
'salePrice' => 589,
|
|
|
'isSale' => true,
|
|
|
'isFew' => true,
|
|
|
'isNew' => false,
|
|
|
'url' => ''
|
|
|
),
|
|
|
array(
|
|
|
'id' => '',
|
|
|
'thumb' => 'http://img11.static.yhbimg.com/yhb-img01/2015/09/17/09/015e14c53a41c7adf0bd039f6493b5a700.jpg?imageView/2/w/140/h/140',
|
|
|
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
|
|
|
'isLike' => false,
|
|
|
'price' => 1268,
|
|
|
'salePrice' => 589,
|
|
|
'isSale' => true,
|
|
|
'isFew' => true,
|
|
|
'isNew' => false,
|
|
|
'url' => ''
|
|
|
),
|
|
|
array(
|
|
|
'id' => '',
|
|
|
'thumb' => 'http://img11.static.yhbimg.com/yhb-img01/2015/09/17/09/015e14c53a41c7adf0bd039f6493b5a700.jpg?imageView/2/w/140/h/140',
|
|
|
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
|
|
|
'isLike' => false,
|
|
|
'price' => 1268,
|
|
|
'salePrice' => 589,
|
|
|
'isSale' => true,
|
|
|
'isFew' => true,
|
|
|
'isNew' => false,
|
|
|
'url' => ''
|
|
|
),
|
|
|
array(
|
|
|
'id' => '',
|
|
|
'thumb' => 'http://img11.static.yhbimg.com/yhb-img01/2015/09/17/09/015e14c53a41c7adf0bd039f6493b5a700.jpg?imageView/2/w/140/h/140',
|
|
|
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
|
|
|
'isLike' => false,
|
|
|
'price' => 1268,
|
|
|
'salePrice' => 589,
|
|
|
'isSale' => true,
|
|
|
'isFew' => true,
|
|
|
'isNew' => false,
|
|
|
'url' => ''
|
|
|
)
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
)
|
|
|
);*/
|
|
|
|
|
|
$this->_view->assign('title', '新品到着');
|
|
|
$this->_view->display('new', $data);
|
|
|
}
|
...
|
...
|
@@ -263,66 +74,6 @@ class NewsaleController extends AbstractAction |
|
|
*/
|
|
|
public function discountAction()
|
|
|
{
|
|
|
|
|
|
/*$data = array(
|
|
|
'header' => array(
|
|
|
'title' => 'SALE'
|
|
|
),
|
|
|
|
|
|
'goodsContainer' => array(
|
|
|
'goods' => array(
|
|
|
array(
|
|
|
'id' => '',
|
|
|
'thumb' => 'http://img12.static.yhbimg.com/adpic/2015/08/14/12/0205a06e86edb30a7d1833477a9e886577.jpg?imageView/2/w/640/h/480',
|
|
|
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
|
|
|
'isLike' => false,
|
|
|
'price' => 1268,
|
|
|
'salePrice' => 589,
|
|
|
'isSale' => true,
|
|
|
'isFew' => true,
|
|
|
'isNew' => false,
|
|
|
'url' => ''
|
|
|
),
|
|
|
array(
|
|
|
'id' => '',
|
|
|
'thumb' => 'http://img12.static.yhbimg.com/adpic/2015/08/14/12/0205a06e86edb30a7d1833477a9e886577.jpg?imageView/2/w/640/h/480',
|
|
|
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
|
|
|
'isLike' => false,
|
|
|
'price' => 1268,
|
|
|
'salePrice' => 589,
|
|
|
'isSale' => true,
|
|
|
'isFew' => true,
|
|
|
'isNew' => false,
|
|
|
'url' => ''
|
|
|
),
|
|
|
array(
|
|
|
'id' => '',
|
|
|
'thumb' => 'http://img12.static.yhbimg.com/adpic/2015/08/14/12/0205a06e86edb30a7d1833477a9e886577.jpg?imageView/2/w/640/h/480',
|
|
|
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
|
|
|
'isLike' => false,
|
|
|
'price' => 1268,
|
|
|
'salePrice' => 589,
|
|
|
'isSale' => true,
|
|
|
'isFew' => true,
|
|
|
'isNew' => false,
|
|
|
'url' => ''
|
|
|
),
|
|
|
array(
|
|
|
'id' => '',
|
|
|
'thumb' => 'http://img12.static.yhbimg.com/adpic/2015/08/14/12/0205a06e86edb30a7d1833477a9e886577.jpg?imageView/2/w/640/h/480',
|
|
|
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
|
|
|
'isLike' => false,
|
|
|
'price' => 1268,
|
|
|
'salePrice' => 589,
|
|
|
'isSale' => true,
|
|
|
'isFew' => true,
|
|
|
'isNew' => false,
|
|
|
'url' => ''
|
|
|
)
|
|
|
)
|
|
|
)
|
|
|
);*/
|
|
|
|
|
|
$data = array(
|
|
|
'discount' => true,
|
|
|
'header' => array(
|
...
|
...
|
@@ -356,8 +107,8 @@ class NewsaleController extends AbstractAction |
|
|
// 添加商品数据
|
|
|
$data += NewSaleProcess::newSaleData($focus, $products);
|
|
|
|
|
|
echo '<pre>';
|
|
|
print_r($data);exit;
|
|
|
/*echo '<pre>';
|
|
|
print_r($data);exit;*/
|
|
|
|
|
|
$this->_view->assign('title', '折扣专区');
|
|
|
$this->_view->display('sale', $data);
|
...
|
...
|
|