...
|
...
|
@@ -26,6 +26,9 @@ class ListController extends WebAction |
|
|
'productListPage' => true,
|
|
|
'list' => $indexData
|
|
|
);
|
|
|
$this->setTitle('潮流商品搜索 | YOHO!有货');
|
|
|
$this->setKeywords('Yoho! 有货,潮流,时尚,流行,购物,B2C,正品,购物网站,网上购物,货到付款,品牌服饰,男士护肤,黑框眼镜,匡威,板鞋,i.t,izzue,5cm,eastpak,vans,lylescott,g-shock,new balance,lacoste,melissa,casio,卡西欧手表,舒雅,jasonwood,odm,AAAA,香港购物,日本潮流');
|
|
|
$this->setDescription('潮流商品搜索,上衣,衬衫,TEE,卫衣,冲锋衣,风衣,羽绒服,裤子,休闲鞋,板鞋,配饰,复古眼镜');
|
|
|
$this->setWebNavHeader();
|
|
|
$this->_view->display('list', $data);
|
|
|
}
|
...
|
...
|
@@ -45,11 +48,11 @@ class ListController extends WebAction |
|
|
$newData = NewModel::getNewSearchData($condition, $options);
|
|
|
$data = array(
|
|
|
'productListPage' => true,
|
|
|
'newSale' => $newData,
|
|
|
'title' => '潮流商品搜索 | YOHO!有货',
|
|
|
'keywords' => 'Yoho! 有货,潮流,时尚,流行,购物,B2C,正品,购物网站,网上购物,货到付款,品牌服饰,男士护肤,黑框眼镜,匡威,板鞋,i.t,izzue,5cm,eastpak,vans,lylescott,g-shock,new balance,lacoste,melissa,casio,卡西欧手表,舒雅,jasonwood,odm,AAAA,香港购物,日本潮流',
|
|
|
'description' => '潮流商品搜索,上衣,衬衫,TEE,卫衣,冲锋衣,风衣,羽绒服,裤子,休闲鞋,板鞋,配饰,复古眼镜'
|
|
|
'newSale' => $newData
|
|
|
);
|
|
|
$this->setTitle('潮流商品搜索 | YOHO!有货');
|
|
|
$this->setKeywords('Yoho! 有货,潮流,时尚,流行,购物,B2C,正品,购物网站,网上购物,货到付款,品牌服饰,男士护肤,黑框眼镜,匡威,板鞋,i.t,izzue,5cm,eastpak,vans,lylescott,g-shock,new balance,lacoste,melissa,casio,卡西欧手表,舒雅,jasonwood,odm,AAAA,香港购物,日本潮流');
|
|
|
$this->setDescription('潮流商品搜索,上衣,衬衫,TEE,卫衣,冲锋衣,风衣,羽绒服,裤子,休闲鞋,板鞋,配饰,复古眼镜');
|
|
|
$this->setWebNavHeader();
|
|
|
//渲染模板
|
|
|
$this->_view->display('new-sale', $data);
|
...
|
...
|
@@ -75,11 +78,11 @@ class ListController extends WebAction |
|
|
$data = array(
|
|
|
//初始化js
|
|
|
'productListPage' => true,
|
|
|
'list' => $list,
|
|
|
'title' => '潮流商品搜索 | YOHO!有货',
|
|
|
'keywords' => 'Yoho! 有货,潮流,时尚,流行,购物,B2C,正品,购物网站,网上购物,货到付款,品牌服饰,男士护肤,黑框眼镜,匡威,板鞋,i.t,izzue,5cm,eastpak,vans,lylescott,g-shock,new balance,lacoste,melissa,casio,卡西欧手表,舒雅,jasonwood,odm,AAAA,香港购物,日本潮流',
|
|
|
'description' => '潮流商品搜索,上衣,衬衫,TEE,卫衣,冲锋衣,风衣,羽绒服,裤子,休闲鞋,板鞋,配饰,复古眼镜'
|
|
|
'list' => $list
|
|
|
);
|
|
|
$this->setTitle('潮流商品搜索 | YOHO!有货');
|
|
|
$this->setKeywords('Yoho! 有货,潮流,时尚,流行,购物,B2C,正品,购物网站,网上购物,货到付款,品牌服饰,男士护肤,黑框眼镜,匡威,板鞋,i.t,izzue,5cm,eastpak,vans,lylescott,g-shock,new balance,lacoste,melissa,casio,卡西欧手表,舒雅,jasonwood,odm,AAAA,香港购物,日本潮流');
|
|
|
$this->setDescription('潮流商品搜索,上衣,衬衫,TEE,卫衣,冲锋衣,风衣,羽绒服,裤子,休闲鞋,板鞋,配饰,复古眼镜');
|
|
|
$this->setWebNavHeader();
|
|
|
$this->_view->display('list', $data);
|
|
|
}
|
...
|
...
|
@@ -100,7 +103,6 @@ class ListController extends WebAction |
|
|
}
|
|
|
$productSkn = $this->post('skn');
|
|
|
$uid = $this->getUid();
|
|
|
|
|
|
if (!$productSkn) {
|
|
|
$this ->echoJson($res);
|
|
|
return ;
|
...
|
...
|
@@ -143,10 +145,10 @@ class ListController extends WebAction |
|
|
public function changeFavoriteAction()
|
|
|
{
|
|
|
$result = array(
|
|
|
'code'=>400
|
|
|
'code' => 400,
|
|
|
'message' => 'operation failed'
|
|
|
);
|
|
|
if (!$this->isAjax()) {
|
|
|
$this->echoJson($resut);
|
|
|
return;
|
|
|
}
|
|
|
$productSkn = $this->post('skn');
|
...
|
...
|
@@ -154,10 +156,17 @@ class ListController extends WebAction |
|
|
$uid = $this->getUid();
|
|
|
|
|
|
do {
|
|
|
if (!$productSkn && !$uid) {
|
|
|
if (!$uid) {
|
|
|
$result = array(
|
|
|
'code' => '403',
|
|
|
'message' => 'uid is null'
|
|
|
);
|
|
|
break;
|
|
|
}
|
|
|
if (!isset($productSkn)) {
|
|
|
break;
|
|
|
}
|
|
|
if ($isFavorite) {
|
|
|
if ($isFavorite == 'true') {
|
|
|
$result = FavoriteData::delUidProductFav($uid, $productSkn);
|
|
|
break;
|
|
|
}else{
|
...
|
...
|
|