...
|
...
|
@@ -68,20 +68,26 @@ class HomeController extends AbstractAction |
|
|
$this->setTitle('我的收藏');
|
|
|
$this->setNavHeader('我的收藏', true, SITE_MAIN);
|
|
|
|
|
|
$tab = $this->get('tab', '');
|
|
|
$uid = $this->getUid();
|
|
|
$uid = 8826435;
|
|
|
$gender = Helpers::getGenderByCookie();
|
|
|
|
|
|
$favProducts = \Index\UserModel::getFavProductData($uid);
|
|
|
$favBrands = \Index\UserModel::getFavBrandData($uid, $gender);
|
|
|
|
|
|
$this->_view->display('favorite', array(
|
|
|
'favPage' => true, //加载js
|
|
|
'pageFooter' => true,
|
|
|
'favorite' => true,
|
|
|
'hasFavProduct' => $favProducts,
|
|
|
'hasFavBrand' => $favBrands
|
|
|
));
|
|
|
$data = array(
|
|
|
'favPage' => true, //加载js
|
|
|
'pageFooter' => true,
|
|
|
'favorite' => true,
|
|
|
'hasFavProduct' => $favProducts,
|
|
|
'hasFavBrand' => $favBrands
|
|
|
);
|
|
|
// 判断时候为品牌页
|
|
|
if ($tab === 'brand') {
|
|
|
$data['brandTab'] = true;
|
|
|
}
|
|
|
|
|
|
$this->_view->display('favorite', $data);
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -106,19 +112,6 @@ class HomeController extends AbstractAction |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 用户收藏的品牌
|
|
|
*/
|
|
|
public function favoritebrandAction()
|
|
|
{
|
|
|
$uid = $this->getUid();
|
|
|
$gender = Helpers::getGenderByCookie();
|
|
|
|
|
|
$favBrands = \Index\UserModel::getFavBrandData($uid, $gender);
|
|
|
|
|
|
print_r($favBrands);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 个人信息
|
|
|
*/
|
|
|
public function personalDetailsAction()
|
...
|
...
|
@@ -314,7 +307,14 @@ class HomeController extends AbstractAction |
|
|
*/
|
|
|
public function myGuangAction()
|
|
|
{
|
|
|
echo 'My Guang';
|
|
|
$page = $this->get('page', 1);
|
|
|
$limit = $this->get('limit', 10);
|
|
|
$uid = $this->getUid();
|
|
|
$yh_channel = Helpers::getChannelByCookie();
|
|
|
$uid=5687179;
|
|
|
$gender = Helpers::getGenderByCookie();
|
|
|
$guangInfo = \home\GuangModel::getMyGuang($uid, $page,$yh_channel,$gender, $limit);
|
|
|
$this->_view->display('my-guang', array('myGuang'=>$guangInfo));
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|