|
|
@@ -53,17 +53,13 @@
|
|
|
<input type="search" ng-model="keyword" placeholder=" 输入企业或器件" ng-search="search(keyword)"><a class="btn input-group-addon" ng-click="search(keyword)">搜索</a>
|
|
|
</div>
|
|
|
</ul>
|
|
|
- <div id="home-headerBtns" ng-controller="HeaderCtrl">
|
|
|
- <a href="javascript:void(0);" class="user-btn" ui-sref="approvalflow.user"><span ng-bind="userInfo.userName"></span><i class="fa fa-user fa-lg"></i></a>
|
|
|
- <a href="javascript:void(0);" class="moblie-btn"><i class="fa fa-tablet fa-lg"></i></a>
|
|
|
- <a ng-click="showMessage()" title="查看消息" ng-class="{'notice-dot': message.toRead > 0}"><i class="fa fa-comments-o fa-lg"></i><em></em></a>
|
|
|
- <a ui-sref="approvalflow.flow"><i class="fa fa-cog fa-lg"></i></a>
|
|
|
- <a ng-click="logout()" title="退出登录"><i class="fa fa-power-off fa-lg"></i></a>
|
|
|
+ <div id="home-headerName">
|
|
|
+ <a ui-sref="approvalflow.enterprise"><span ng-bind="userInfo.enterprise.enName"></span> <i class="fa fa-chevron-down"></i></a>
|
|
|
</div>
|
|
|
- <div class="user-tk">
|
|
|
+ <div class="name-tk">
|
|
|
<div>
|
|
|
<ul class="user-message">
|
|
|
- <li class="active"><a ui-sref="approvalflow.enterprise"><span>{{userInfo.enterprise.enName}}</span><span>({{userInfo.enterprise.uu}})</span></a></li>
|
|
|
+ <li><a ui-sref="approvalflow.enterprise"><span class="red" ng-bind="userInfo.enterprise.enName"></span> (<span ng-bind="userInfo.enterprise.uu" class="red"></span>)</a></li>
|
|
|
<li ng-repeat="e in userInfo.enSelect">
|
|
|
<a ng-click="switchto(e.uu)">{{e.enName}}</a>
|
|
|
</li>
|
|
|
@@ -71,6 +67,21 @@
|
|
|
<div class="cart"><img src="static/img/all/carts.png" alt=""/></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div id="home-headerBtns" ng-controller="HeaderCtrl">
|
|
|
+ <a href="javascript:void(0);" class="user-btn" ui-sref="approvalflow.user"><i class="fa fa-user fa-lg"></i><span ng-bind="userInfo.userName"></span><i class="fa fa-chevron-down"></i></a>
|
|
|
+ </div>
|
|
|
+ <div class="user-tk">
|
|
|
+ <div>
|
|
|
+ <ul class="user-message">
|
|
|
+ <li><img src="static/img/all/repository.png"><a ui-sref="approvalflow.userProduct">我的产品库</a></li>
|
|
|
+ <li><img src="static/img/all/message.png"><a ng-click="showMessage()" ng-class="{'notice-dot': message.toRead > 0}">消息中心<em></em></a></li>
|
|
|
+ <li><img src="static/img/all/config.png"><a ui-sref="approvalflow.flow">基础设置</a></li>
|
|
|
+ <li><img src="static/img/all/code.png"><a class="moblie-btn">手机二级维码</a></li>
|
|
|
+ <li ng-click="logout()">退出账户</li>
|
|
|
+ </ul>
|
|
|
+ <div class="cart"><img src="static/img/all/carts.png" alt=""/></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="erweima-tk">
|
|
|
<div>
|
|
|
<p>扫描二维码<br/>下载手机客户端</p>
|
|
|
@@ -414,16 +425,25 @@
|
|
|
$('.dropdown-tab a.href').click(function(){
|
|
|
$(".dropdown-tab").hide();
|
|
|
});
|
|
|
- $('#home-headerBtns .user-btn').hover(function(){
|
|
|
- $(".user-tk").toggle();
|
|
|
- $('.user-tk').mouseenter(function(){
|
|
|
+ $('#home-headerName a').hover(function(){
|
|
|
+ $(".name-tk").toggle();
|
|
|
+ $('.name-tk').mouseenter(function(){
|
|
|
$(this).show();
|
|
|
});
|
|
|
- $('.user-tk').mouseleave(function(){
|
|
|
+ $('.name-tk').mouseleave(function(){
|
|
|
$(this).hide();
|
|
|
});
|
|
|
})
|
|
|
- $('#home-headerBtns .moblie-btn ').hover(function(){
|
|
|
+ $('#home-headerBtns .user-btn').hover(function(){
|
|
|
+ $(".user-tk").toggle();
|
|
|
+ $('.user-tk').mouseenter(function(){
|
|
|
+ $(this).show();
|
|
|
+ });
|
|
|
+ $('.user-tk').mouseleave(function(){
|
|
|
+ $(this).hide();
|
|
|
+ });
|
|
|
+ })
|
|
|
+ $('.user-tk .moblie-btn ').hover(function(){
|
|
|
$(".erweima-tk").toggle();
|
|
|
$('.erweima-tk').mouseenter(function(){
|
|
|
$(this).show();
|