Browse Source

fix: 修改商城帐户中心地址

wangcz 6 years ago
parent
commit
46292d31e7

+ 1 - 1
src/main/webapp/WEB-INF/views/normal/index.html

@@ -67,7 +67,7 @@
 					<li><a ng-click="b2cLink('/')">商城首页</a></li>
 					<li ng-if="userInfo"><a ng-click="b2cLink('/user#/home')">买家中心</a></li>
 					<li><a ng-click="b2cLink('/vendor#/index')">卖家中心</a></li>
-					<li ng-if="userInfo" ><a ng-click="b2cLink('/sso#/index')">帐户中心</a></li>
+					<li ng-if="userInfo" ><a ng-click="ssoLink('/index')">帐户中心</a></li>
 					<li><a ng-click="b2cLink('/help/home')" target="_black">帮助中心</a></li>
 				</ul>
 			</nav>

+ 9 - 0
src/main/webapp/resources/js/index/app.js

@@ -964,6 +964,15 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
                 }
             });
         }
+        $scope.ssoLink = function (url) {
+            AccountEnterprise.getB2cUrl({}, function(data) {
+                if (data.url && data.url.indexOf('uuzcc') > 0) {
+                    window.location.href = 'https://account.uuzcc.cn' + url;
+                } else {
+                    window.location.href = 'https://sso2.usoftchina.com' + url;
+                }
+            });
+        }
 
     }]);