Browse Source

游客点击账户中心跳转地址调整

zhuth 7 years ago
parent
commit
adfbba5b0a
1 changed files with 6 additions and 1 deletions
  1. 6 1
      frontend/saas-web/app/view/main/Main.js

+ 6 - 1
frontend/saas-web/app/view/main/Main.js

@@ -139,7 +139,12 @@ Ext.define('saas.view.main.Main', {
                             text: '账户中心',
                             iconCls:'x-fa fa-user-o sa-navicon',
                             handler:function(){
-                                window.open(Ext.manifest.server.accountEnterprise,'_blank');
+                                var userId = saas.util.BaseUtil.getCurrentUser().id,
+                                url = Ext.manifest.server.accountEnterprise;
+                                if(userId == '-99999') {
+                                    url = Ext.manifest.server.accountCenter;
+                                }
+                                window.open(url, '_blank');
                             }
                         },{  
                             text: '意见反馈',