浏览代码

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

wangcz 6 年之前
父节点
当前提交
c7429d6a67
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 1 1
      src/main/webapp/WEB-INF/views/normal/index.html
  2. 4 0
      src/main/webapp/resources/js/index/app.js

+ 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>

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

@@ -964,6 +964,9 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
                 }
             });
         }
+        $scope.ssoLink = function (url) {
+            window.location.href = 'https://sso2.usoftchina.com' + url;
+        }
 
     }]);
 
@@ -2023,6 +2026,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
             //     }
             // });
             $scope.toB2cLink = 'https://mall.usoftchina.com';
+            $scope.toSsoLink = 'https://sso2.usoftchina.com';
             $.ajax({
                 url:$scope.toB2cLink + '/api/help-service/issues?navId=' + $scope.noticesId,
                 type:"get",