Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
13df2d28
Commit
13df2d28
authored
Apr 18, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改菜单链接
parent
119d1066
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Login.php
application/index/controller/Login.php
+3
-3
menu_template_tpl.html
public/resource/template/menu_template_tpl.html
+2
-2
No files found.
application/index/controller/Login.php
View file @
13df2d28
...
...
@@ -81,9 +81,9 @@ class Login extends Basic
foreach
(
$nav
as
$k
=>
$v
)
{
if
(
$v
[
'is_menu'
]
==
1
)
{
$menu_data
[
$k
][
'id'
]
=
$v
[
'id'
];
$menu_data
[
$k
][
'name_all'
]
=
$v
[
'name'
];
$v
[
'name'
]
=
explode
(
'/'
,
$v
[
'name'
]);
$menu_data
[
$k
][
'name'
]
=
$v
[
'name'
]
[
1
]
;
//
$menu_data[$k]['name_all'] = $v['name'];
//
$v['name'] = explode('/',$v['name']);
$menu_data
[
$k
][
'name'
]
=
$v
[
'name'
];
$menu_data
[
$k
][
'title'
]
=
$v
[
'title'
];
$menu_data
[
$k
][
'pid'
]
=
$v
[
'pid'
];
}
else
{
...
...
public/resource/template/menu_template_tpl.html
View file @
13df2d28
...
...
@@ -3,13 +3,13 @@
[
%
for
(
var
item
in
it
){
%
]
<
li
class
=
"dropdown"
>
[
%
if
(
it
[
item
][
"_child"
]
==
undefined
||
it
[
item
][
"_child"
].
length
==
0
)
{
%
]
<
a
href
=
"[%= it[item]['name'] %]"
><
span
class
=
"glyphicon glyphicon-credit-card"
aria
-
hidden
=
"true"
><
/span> <span class="span-list">
[
%= it[item
][
"title"
]
%]</
span
><
/a
>
<
a
href
=
"
/
[%= it[item]['name'] %]"
><
span
class
=
"glyphicon glyphicon-credit-card"
aria
-
hidden
=
"true"
><
/span> <span class="span-list">
[
%= it[item
][
"title"
]
%]</
span
><
/a
>
[
%
}
else
{
%
]
<
a
href
=
""
class
=
"dropdown-toggle"
data
-
toggle
=
"dropdown"
>
<
span
class
=
"glyphicon glyphicon-credit-card"
aria
-
hidden
=
"true"
><
/span><span class="span-list">
[
%= it[item
][
"title"
]
%]</
span
>
<
span
class
=
"glyphicon glyphicon-hand-down"
aria
-
hidden
=
"true"
><
/span></
a
>
<
ul
class
=
"dropdown-menu"
role
=
"menu"
>
[
%
for
(
var
item_menu
in
it
[
item
][
"_child"
]){
%
]
<
li
><
a
href
=
"[%= it[item]['_child'][item_menu]['name'] %]"
><
span
class
=
"glyphicon glyphicon-dashboard"
aria
-
hidden
=
"true"
><
/span> <span class="span-list">
[
%= it[item
][
"_child"
][
item_menu
][
'title'
]
%]</
span
><
/a></
li
>
<
li
><
a
href
=
"
/
[%= it[item]['_child'][item_menu]['name'] %]"
><
span
class
=
"glyphicon glyphicon-dashboard"
aria
-
hidden
=
"true"
><
/span> <span class="span-list">
[
%= it[item
][
"_child"
][
item_menu
][
'title'
]
%]</
span
><
/a></
li
>
[
%
}
%
]
<
/ul
>
[
%
}
%
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment