...
|
...
|
@@ -23,7 +23,6 @@ class ListController extends WebAction |
|
|
'action' => 'index',
|
|
|
'adsId' => '79',
|
|
|
));
|
|
|
|
|
|
// 设置SEO信息
|
|
|
$this->setListSeo($list['seo']);
|
|
|
/// 设置头部数据
|
...
|
...
|
@@ -31,18 +30,20 @@ class ListController extends WebAction |
|
|
|
|
|
//统计前三个商品
|
|
|
$skn=array();
|
|
|
$arr=array();
|
|
|
if (isset($list['goods']) && !empty($list['goods'])) {
|
|
|
$arr = array_slice($list['goods'],0,3);
|
|
|
foreach ($arr as $key=>$value) {
|
|
|
$skn[] = $value['skn'];
|
|
|
}
|
|
|
$arr = array('skn'=>$skn);
|
|
|
}
|
|
|
|
|
|
// 渲染模板
|
|
|
$this->_view->display('list', array(
|
|
|
'productListPage' => true, // JS控制初始化
|
|
|
'list' => $list,
|
|
|
'skn' => $skn
|
|
|
'criteo' => $arr
|
|
|
));
|
|
|
}
|
|
|
|
...
|
...
|
@@ -64,17 +65,19 @@ class ListController extends WebAction |
|
|
|
|
|
//统计前三个商品
|
|
|
$skn=array();
|
|
|
$arr=array();
|
|
|
if (isset($newData['goods']) && !empty($newData['goods'])) {
|
|
|
$arr = array_slice($newData['goods'],0,3);
|
|
|
foreach ($arr as $key=>$value) {
|
|
|
$skn[] = $value['skn'];
|
|
|
}
|
|
|
$arr = array('skn'=>$skn);
|
|
|
}
|
|
|
|
|
|
$data = array(
|
|
|
'productListPage' => true,
|
|
|
'newSale' => $newData,
|
|
|
'skn' => $skn
|
|
|
'criteo' => $arr
|
|
|
);
|
|
|
// 设置SEO信息
|
|
|
$this->setNewSeo($newData['seo']);
|
...
|
...
|
@@ -102,18 +105,20 @@ class ListController extends WebAction |
|
|
|
|
|
//统计前三个商品
|
|
|
$skn=array();
|
|
|
$arr=array();
|
|
|
if (isset($list['goods']) && !empty($list['goods'])) {
|
|
|
$arr = array_slice($list['goods'],0,3);
|
|
|
foreach ($arr as $key=>$value) {
|
|
|
$skn[] = $value['skn'];
|
|
|
}
|
|
|
$arr = array('skn'=>$skn);
|
|
|
}
|
|
|
|
|
|
$data = array(
|
|
|
//初始化js
|
|
|
'brandPage' => true,
|
|
|
'list' => $list,
|
|
|
'skn' => $skn
|
|
|
'criteo' => $arr
|
|
|
);
|
|
|
// 设置SEO信息
|
|
|
$this->setSaleSeo($list['seo']);
|
...
|
...
|
|