|
|
@@ -139,25 +139,29 @@
|
|
|
<li ng-if="!userInfo"><a ng-click="signinModal()" href="javascript:void(0)">登录</a></li>
|
|
|
<li ng-if="!userInfo"><a ng-click="registerModal()" href="javascript:void(0)">注册</a></li>
|
|
|
<!--<li ng-if="!userInfo"><a href="http://account.ubtob.com/sso/register?returnURL=http%253A%252F%252Fwww.usoftmall.com%252Flogin%252Fproxy&appId=mall">注册</a></li>-->
|
|
|
- <li ng-if="userInfo" class="dropdown">
|
|
|
+ <li ng-if="userInfo" class="dropdown" ng-mouseleave="toggleSwitchFalse()">
|
|
|
<a class="dropdown-toggle" href="javascript:void(0)">欢迎您,
|
|
|
<span ng-bind="userInfo.userName"></span>
|
|
|
- <span href="javascript:void(0)" ng-click="logout()" class="logout">[退出]</span>
|
|
|
+ <span> | </span>
|
|
|
+
|
|
|
+ <span style="float:right;margin-left: 15px" href="javascript:void(0)" ng-click="logout()" class="logout">[退出]</span>
|
|
|
+ <span style="float:right;margin-left: 8px;max-width: 190px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;display: inline-block;" ng-if="userInfo.enterprise" ng-bind="userInfo.enterprise.enName" ></span>
|
|
|
+ <span style="float:right;margin-left: 8px;max-width: 190px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;display: inline-block;" ng-if="!userInfo.enterprise" ng-bind="'个人账户'" ></span>
|
|
|
</a>
|
|
|
- <div class="dropdown-menu" style="top: 36px; left: 0; min-width: 220px;">
|
|
|
+ <div class="dropdown-menu" style="top: 36px; left: 0; min-width: 220px; width: 100%">
|
|
|
<!-- <p>欢迎您,<span ng-bind="userInfo.userName"></span>
|
|
|
<a href="javascript:void(0)" class="pull-right" ng-click="logout()">退出</a>
|
|
|
</p>-->
|
|
|
<p>
|
|
|
<!--<i class="fa fa-map-marker"></i> <span ng-if="userInfo.enterprises" ng-bind="userInfo.enterprise.enName"></span><span ng-if="!userInfo.enterprises" ng-bind="userInfo.userName"></span><span ng-if="!userInfo.enterprises">(个人账户)</span>-->
|
|
|
- <i class="fa fa-map-marker"></i>
|
|
|
+ <i class="fa fa-map-marker" style="position: relative;bottom: 2px;"></i>
|
|
|
<span ng-if="userInfo.enterprise" ng-bind="userInfo.enterprise.enName" class="member-text"></span>
|
|
|
- <span ng-if="!userInfo.enterprise" ng-bind="userInfo.userName + '(个人账户)'" class="member-text"></span>
|
|
|
+ <span ng-if="!userInfo.enterprise" ng-bind="' 个人账户'" class="member-text"></span>
|
|
|
<a href="javascript:void(0)" class="pull-right" ng-if="userInfo.enterprises" ng-click="toggleSwitch()" ng-bind="switching?'取消':'切换'">切换</a>
|
|
|
</p>
|
|
|
<ul class="unstyled" ng-show="switching" style="-webkit-padding-start: 0;">
|
|
|
<li ng-repeat="en in userInfo.enterprises" ng-if="!en.current && userInfo.enterprises" style="line-height: 30px;">
|
|
|
- <a href="javascript:void(0)" ng-bind="en.enName" title="{{en.enName}}" ng-click="switchto(en.uu)"></a>
|
|
|
+ <a href="javascript:void(0)" ng-bind="en.enName" title="{{en.enName}}" ng-click="switchto(en)"></a>
|
|
|
</li>
|
|
|
<!--<li ng-if="!userInfo.enterprises">
|
|
|
<a href="javascript:void(0)"><span ng-bind="userInfo.userName"></span><span>(个人账户)</span></a>
|
|
|
@@ -171,7 +175,7 @@
|
|
|
<li><a href=".">商城首页</a></li>
|
|
|
<li ng-if="userInfo"><a href="user#/home">买家中心</a></li>
|
|
|
<li ng-if="userInfo.enterprise && userInfo.enterprise.isVendor == 313"><a href="vendor">卖家中心</a></li>
|
|
|
- <li ng-if="!userInfo.enterprise || userInfo.enterprise.isVendor != 313"><a href="./register-saler">卖家中心</a></li>
|
|
|
+ <li ng-if="userInfo && (!userInfo.enterprise || userInfo.enterprise.isVendor != 313)" ><a href="./register-saler">卖家中心</a></li>
|
|
|
<li><a href="help/home" target="_blank">帮助中心</a></li>
|
|
|
<!-- <li><a href="http://wpa.qq.com/msgrd?v=3&uin=3432892085&site=www.ubtoc.com&menu=yes" target="_blank">在线客服</a></li> -->
|
|
|
<!-- <li><a href="javascript:void(0)">服务电话:400-830-1818</a></li>-->
|