header.vm
6.72 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<div id="header" class="xn-width auto clearfix">
<div class="logo clearfix">
<a class="logo-a" href="$config.getEmployeeUrl("index.htm")">
#* <img ng-src="$config.getImgUrl("")$principal.tenantId/logo.jpg" onerror="this.onerror='';this.src='$config.getImgUrl("common/logo_default.png")'"
width="80" height="50" alt="$principal.tenantName">*#
<div class="logo-title xn-$application.code" ng-init="appCode='$application.code'">
<img ng-show="appCode=='home'" ng-src="$config.getImgUrl("$principal.tenantId/title.png")" onerror="this.onerror='';this.src=''" height="50">
</div>
</a>
</div>
<div class="xn-header-right" ng-controller="MessageController">
<div class="xn-message f-right" ng-init="show=false" ng-mouseover="show=true" ng-mouseleave="show=false">
<div class="xn-email icon icon-email" ng-click="showMoreMessage('$config.getMyUrl("message/index.htm")')">
<a ng-if="messagesAll.length!=0" class="badge">{{messagesAll.length}}</a>
</div>
<div class="xn-hideMessage-top" ng-show="show" ></div>
<div class="modal-content xn-hideMessage" ng-show="show"
ng-class="(show==true)?'showMessage':''"
ng-mouseover="show=true" ng-mouseleave="show=false">
<div class="xn-header-message">
<ul class="content-line ">
<li ng-repeat="message in messages">
<a href="#" ng-click="getMessageDetail(message.id)">
<span class="xn-view">{{message.messageTitle}}</span>
</a>
</li>
</ul>
<br/>
</div>
<div class="xn-header-message-more">
<a href="$config.getMyUrl("message/index.htm")">
<span>查看所有的消息</span>
</a>
</div>
</div>
</div>
<span class="xn-name f-right">欢迎您
<a href="javascript:" ng-init="showSetting=false" ng-click="showSetting=!showSetting;"
ng-mouseenter="showSetting=true;" ng-mouseleave="showSetting=false;">
<span>$principal.userName</span><span class="#*xn-name-more*#icon icon-downward-2"></span>
</a>
<!--弹出窗口-->
</span>
<img class="avatar f-right"
#if($principal.avatar)
ng-src="$principal.avatar"
#else
ng-src="$config.getImgUrl("common/avatar_default.png")"
#end
>
<div class="hideSetting" ng-class="showSetting?'showSetting':''" ng-mouseenter="showSetting=true;" ng-mouseleave="showSetting=false;">
<div class="hideSetting-top">
</div>
<div class="hideSetting-content clearfix">
## <button type="button" class="close" ng-click="showSetting=!showSetting;">×</button>
<ul>
<li>
<a title="关于本系统" href="$homeLink.setTarget("about")" target="_blank">
<i class="icon icon-system"></i>关于本系统
</a>
</li>
<li class="bb">
<a title="应用商店" class="disabled">
<i class="icon icon-store"></i>应用商店
</a>
</li>
<li>
<a title="系统偏好设置" class="disabled">
<i class="icon icon-system_individuation"></i>系统偏好设置
</a>
</li>
<li>
<a title="承租人信息" href="$config.getMyUrl("tenant")">
<i class="icon icon-renter"></i>承租人信息
</a>
</li>
<li>
<a title="修改密码" href="$config.getAuthUrl("change.htm")">
<i class="icon icon-tubiaoxiugaimima01"></i>修改密码
</a>
</li>
<li class="bb">
<a title="个人信息" href="$config.getMyUrl("profileView")">
<i class="icon icon-personal_information"></i>个人信息
</a>
</li>
<li>
<a title="最近使用的功能" class="disabled">
<i class="icon icon-Recently"></i>最近使用的功能
</a>
</li>
<li class="bb">
<a title="历史记录" class="disabled">
<i class="icon icon-history"></i>历史记录
</a>
</li>
</ul>
<a class="btn f-right exit btn-danger" href="$config.getAuthUrl("logout.htm")">注销</a>
</div>
</div>
</div>
</div>
<script type="text/ng-template" id="messageDetail.html" >
<form class="form-horizontal xn-form clearfix" role="form" novalidate name="validateForm">
<div class="modal-header">
<h3 class="modal-title">{{messageDetail.messageTitle}}</h3>
</div>
<div class="modal-body clearfix" >
<div class="form-group col-sm-10 col-md-offset-1 clearfix">
<dd>{{messageDetail.messageContent}}</dd>
</div>
</div>
<div class="modal-footer">
<a class="btn btn-default col-md-2 col-md-offset-1" ng-click="cancel()" ng-href="{{messageDetail.messageUrl}}" target="_blank"
ng-if="messageDetail.messageUrl!=undefined">跳转</a>
<button class="btn btn-warning" ng-click="cancel()">关闭</button>
</div>
</form>
</script>
<script type="text/javascript">
xn.config={
wwwUrl : "$config.getWwwUrl("")",
erpUrl : "$config.getErpUrl("")",
distributionUrl : "$config.getDistributionUrl("")",
financialUrl : "$config.getFinancialUrl("")",
marketplaceUrl : "$config.getMarketplaceUrl("")",
backendUrl : "$config.getBackendUrl("")",
employeeUrl : "$config.getEmployeeUrl("")",
authUrl : "$config.getAuthUrl("")",
serviceUrl : "$config.getServiceUrl("")",
memberUrl : "$config.getMemberUrl("")",
openUrl : "$config.getOpenUrl("")",
customerUrl : "$config.getCustomerUrl("")",
supplierUrl : "$config.getSupplierUrl("")",
myUrl : "$config.getMyUrl("")"
};
</script>