Authored by yangyang

save

... ... @@ -62,11 +62,13 @@ class IndexController extends WebAction
//统计前三个商品
$skn=array();
$arr=array();
if (isset($data['goods']) && !empty($data['goods'])) {
$arr = array_slice($data['goods'],0,3);
foreach ($arr as $key=>$value) {
$skn[] = $value['skn'];
}
$arr = array('skn'=>$skn);
}
$seo = $data['seo'];
... ... @@ -74,7 +76,7 @@ class IndexController extends WebAction
//初始化js
'brandPage' => true,
'list' => $data,
'skn' => $skn
'criteo' => $arr
);
$this->setBrandSeo($seo);
$this->setWebNavHeader();
... ...
... ... @@ -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']);
... ...
... ... @@ -55,18 +55,20 @@ class SaleController extends WebAction
//统计前三个商品
$skn=array();
$arr=array();
if (isset($saleData['goods']) && !empty($saleData['goods'])) {
$arr = array_slice($saleData['goods'],0,3);
foreach ($arr as $key=>$value) {
$skn[] = $value['skn'];
}
$arr = array('skn'=>$skn);
}
$data = array(
//初始化js
'productListPage' => true,
'newSale' => $saleData,
'skn' => $skn
'criteo' => $arr
);
$this->setTitle('潮流商品搜索 | YOHO!有货');
$this->setKeywords('Yoho! 有货,潮流,时尚,流行,购物,B2C,正品,购物网站,网上购物,货到付款,品牌服饰,男士护肤,黑框眼镜,匡威,板鞋,i.t,izzue,5cm,eastpak,vans,lylescott,g-shock,new balance,lacoste,melissa,casio,卡西欧手表,舒雅,jasonwood,odm,AAAA,香港购物,日本潮流');
... ...
... ... @@ -19,17 +19,19 @@ class SearchController 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(
'productListPage' => true, //初始化js
'list' => $list,
'skn' => $skn
'criteo' => $arr
);
$data['list']['searchPage'] = true; //设置搜素页面标识,区分列表页-->特有的搜索页导航样式
if (isset($data['list']['goods']) && empty($data['list']['goods'])) {
... ...