Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
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
3ffa84901ae65fe18fa86395a05b86f52e249c74
1 parent
91d99f1d
添加品牌一览页面顶部导航的数据
Code Review By Rock Zhang
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
yohobuy/m.yohobuy.com/application/models/Category/Brand.php
yohobuy/m.yohobuy.com/application/models/Category/Brand.php
View file @
3ffa849
...
...
@@ -38,6 +38,24 @@ class BrandModel
$result
=
array
();
$brand
=
array
();
// 设置品牌一览顶部频道导航
$channels
=
array
(
1
=>
array
(
'name'
=>
'Boy'
),
2
=>
array
(
'name'
=>
'Girl'
),
3
=>
array
(
'name'
=>
'Kid'
),
4
=>
array
(
'name'
=>
'Lifestyle'
)
);
$channels
[
$channel
][
'active'
]
=
true
;
$result
[
'channels'
]
=
$channels
;
/* 根据频道调用接口 */
switch
(
intval
(
$channel
))
{
case
1
:
// 男生
...
...
@@ -83,6 +101,7 @@ class BrandModel
}
$result
[
'pageFooter'
]
=
true
;
print_r
(
$result
);
$brand
=
array
();
...
...
Please
register
or
login
to post a comment