Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-activity-platform
·
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
李奇
8 years ago
Commit
3516eaa3065a6c953077ad09bb56fb2e9feb3c2b
1 parent
0c97e132
注销添加
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
75 deletions
doraemon/views/layout.hbs
public/js/global.js
doraemon/views/layout.hbs
View file @
3516eaa
...
...
@@ -93,81 +93,7 @@
<span
class=
" fa fa-angle-down"
></span>
</a>
<ul
class=
"dropdown-menu dropdown-usermenu pull-right"
>
<li><a
href=
"javascript:;"
>
Profile
</a></li>
<li>
<a
href=
"javascript:;"
>
<span
class=
"badge bg-red pull-right"
>
50%
</span>
<span>
Settings
</span>
</a>
</li>
<li><a
href=
"javascript:;"
>
Help
</a></li>
<li><a
href=
"login.html"
><i
class=
"fa fa-sign-out pull-right"
></i>
Log Out
</a></li>
</ul>
</li>
<li
role=
"presentation"
class=
"dropdown"
>
<a
href=
"javascript:;"
class=
"dropdown-toggle info-number"
data-toggle=
"dropdown"
aria-expanded=
"false"
>
<i
class=
"fa fa-envelope-o"
></i>
<span
class=
"badge bg-green"
>
6
</span>
</a>
<ul
id=
"menu1"
class=
"dropdown-menu list-unstyled msg_list"
role=
"menu"
>
<li>
<a>
<span
class=
"image"
><img
src=
"
{{
imgSrc
'img/admin/admin_avatar.png'
}}
"
alt=
"Profile Image"
/></span>
<span>
<span>
John Smith
</span>
<span
class=
"time"
>
3 mins ago
</span>
</span>
<span
class=
"message"
>
Film festivals used to be do-or-die moments for movie makers. They were where...
</span>
</a>
</li>
<li>
<a>
<span
class=
"image"
><img
src=
"
{{
imgSrc
'img/admin/admin_avatar.png'
}}
"
alt=
"Profile Image"
/></span>
<span>
<span>
John Smith
</span>
<span
class=
"time"
>
3 mins ago
</span>
</span>
<span
class=
"message"
>
Film festivals used to be do-or-die moments for movie makers. They were where...
</span>
</a>
</li>
<li>
<a>
<span
class=
"image"
><img
src=
"
{{
imgSrc
'img/admin/admin_avatar.png'
}}
"
alt=
"Profile Image"
/></span>
<span>
<span>
John Smith
</span>
<span
class=
"time"
>
3 mins ago
</span>
</span>
<span
class=
"message"
>
Film festivals used to be do-or-die moments for movie makers. They were where...
</span>
</a>
</li>
<li>
<a>
<span
class=
"image"
><img
src=
"
{{
imgSrc
'img/admin/admin_avatar.png'
}}
"
alt=
"Profile Image"
/></span>
<span>
<span>
John Smith
</span>
<span
class=
"time"
>
3 mins ago
</span>
</span>
<span
class=
"message"
>
Film festivals used to be do-or-die moments for movie makers. They were where...
</span>
</a>
</li>
<li>
<div
class=
"text-center"
>
<a>
<strong>
See All Alerts
</strong>
<i
class=
"fa fa-angle-right"
></i>
</a>
</div>
</li>
<li><a
class=
"btn-logout"
><i
class=
"fa fa-sign-out pull-right"
></i>
注销
</a></li>
</ul>
</li>
</ul>
...
...
public/js/global.js
View file @
3516eaa
...
...
@@ -145,4 +145,16 @@ var CURRENT_URL = window.location.href.split('#')[0].split('?')[0],
mouseWheel
:{
preventDefault
:
true
}
});
}
// 注销登录
var
$LOGOUT
=
$
(
'.btn-logout'
);
$LOGOUT
.
on
(
'click'
,
function
()
{
$
.
ajax
({
method
:
'post'
,
url
:
'/admin/api/logout'
})
.
then
(
function
()
{
location
.
href
=
'/admin/login'
;
})
});
})();
...
...
Please
register
or
login
to post a comment