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
whb
9 years ago
Commit
339a049b6d64f028013c5988e7460f7fd6711b31
1 parent
9ad60d83
导航修改
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
yohobuy/www.yohobuy.com/application/models/Index/Home.php
yohobuy/www.yohobuy.com/application/models/Index/Home.php
View file @
339a049
...
...
@@ -67,6 +67,7 @@ class HomeModel
$menu
=
Cache
::
get
(
$key
);
if
(
empty
(
$menu
))
{
$item
=
array
();
$index_main
=
0
;
foreach
(
$data
[
'data'
]
as
$val
)
{
$item
=
array
(
'name_cn'
=>
$val
[
'sort_name'
],
// 父级
...
...
@@ -74,7 +75,7 @@ class HomeModel
'link'
=>
$val
[
'sort_url'
],
'icon'
=>
$val
[
'sort_ico'
],
'classname'
=>
str_replace
(
' '
,
''
,
strtolower
(
$val
[
'sort_name_en'
]))
==
$channel
?
$channel
:
''
,
'index_main'
=>
0
,
'index_main'
=>
$index_main
++
,
'is_hot'
=>
$val
[
'is_hot'
]
==
'Y'
?
true
:
false
,
'is_new'
=>
$val
[
'is_new'
]
==
'Y'
?
true
:
false
,
// 'subnav' => array()
...
...
Please
register
or
login
to post a comment