top.html
1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<div class="topheader">
<div class="left">
<h1 class="logo">
SIBU.<span>思埠V商城</span>
</h1>
<span class="slogan">后台管理系统</span>
<br clear="all" />
</div>
<!--left-->
<div class="right">
<!--<div class="notification">
<a class="count" href="ajax/notifications.html"><span>9</span></a>
</div>-->
<div class="userinfo">
<img src="images/thumbs/avatar.png" alt="" /> <span>{{userinfo.userName}}</span>
</div>
<!--userinfo-->
<div class="userinfodrop">
<div class="avatar">
<a href=""><img src="images/thumbs/avatarbig.png" alt="" /></a>
<!-- <div class="changetheme">
切换主题: <br />
<a class="default"></a>
<a class="blueline"></a>
<a class="greenline"></a>
<a class="contrast"></a>
<a class="custombg"></a>
</div> -->
</div>
<!--avatar-->
<div class="userdata">
<h4>{{userinfo.nickName}}</h4>
<span class="email">{{userinfo.phone}}</span>
<ul>
<li ng-if="platformType==0"><a href="#addSysUser/{{userinfo.id}}">编辑资料</a></li>
<li><a href="#resetUserPassword/{{userinfo.id}}">修改密码</a></li>
<li><a href="../user/logout">退出</a></li>
</ul>
</div>
<!--userdata-->
</div>
<!--userinfodrop-->
</div>
<!--right-->
</div>
<script type="text/javascript">
jQuery('.userinfo').click(function() {
if (!jQuery(this).hasClass('active')) {
jQuery('.userinfodrop').show();
jQuery(this).addClass('active');
} else {
jQuery('.userinfodrop').hide();
jQuery(this).removeClass('active');
}
//remove notification box if visible
jQuery('.notification').removeClass('active');
jQuery('.noticontent').remove();
return false;
});
</script>