Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Rock Zhang
9 years ago
Commit
046768fb4a8bde9d03790f33fd5c41b6519d01f2
1 parent
c45812ae
收藏页添加一些字段标识页面
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
22 deletions
template/m.yohobuy.com/actions/index/home/index.phtml
yohobuy/m.yohobuy.com/application/controllers/Home.php
template/m.yohobuy.com/actions/index/home/index.phtml
View file @
046768f
...
...
@@ -15,7 +15,7 @@
{
{product_favorite_total
}
}
<p>收藏的商品</p>
</a>
<a
class=
"link-item"
href=
"/home/favoritebrand"
>
<a
class=
"link-item"
href=
"/home/favorite
?tab=
brand"
>
{
{brand_favorite_total
}
}
<p>收藏的品牌</p>
</a>
...
...
yohobuy/m.yohobuy.com/application/controllers/Home.php
View file @
046768f
...
...
@@ -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
()
...
...
Please
register
or
login
to post a comment