Ext.define('saas.view.main.Main', {
extend: 'Ext.container.Container',
xtype: 'main',
requires: [
'Ext.list.Tree',
'Ext.Img'
],
controller: 'main',
viewModel: 'main',
cls: 'main-ct',
id: 'mainView',
itemId: 'mainView',
layout: {
type: 'vbox',
align: 'stretch'
},
items: [
{
xtype: 'toolbar',
cls: 'main-headerbar shadow',
height: 64,
itemId: 'headerBar',
items: [
{
xtype: 'component',
reference: 'mainLogo',
width: 180,
cls: 'main-logo-wrap',
html: '

U企云服
',
bind: {
width: '{navWidth}'
}
},
{
margin: '0 8 0 8',
padding: '7 0 7 0',
ui: 'header',
iconCls:'x-sa sa-arrows-left',
id: 'main-navigation-toggle-btn',
handler: 'onToggleNavigationSize'
},{
padding: '0 0 0 0',
reference: 'mainprofile',
arrowVisible: false,
cls:'x-main-master',
ui: 'header',
bind: {
text: '{company.name}'
},
arrowVisible: true,
menu: {
items: []
}
},
'->',
{
iconCls:'icon-usoftchina',
ui: 'header',
tooltip: '优软云',
handler:function(){
window.open('http://www.usoftchina.com','_blank');
}
},
{
iconCls:'x-sa sa-help',
cls:'sa-nav-button',
ui: 'header',
arrowVisible: false,
tooltip: '帮助',
width:50,
height:45,
menu: {
cls:'x-main-menu sa-nav-menu',
items: [{
text: '新手导航',
iconCls:'x-fa sa-navicon fa-comment-o',
handler:function(){
saas.util.BaseUtil.openTab('sys-guide-formpanel','新手导航', 'sys-guide-formpanel-nav');
}
}/* ,{
text: '用户手册',
hidden:true,
iconCls:'x-fa sa-navicon fa-address-book-o',
handler:function(){
window.open('http://www.usoftchina.com','_blank');
}
},{
text: '常见问题',
iconCls:'x-fa fa-question-circle-o sa-navicon',
handler:function(){
window.open('http://www.usoftchina.com','_blank');
}
} */,{
text: '客服热线',
iconCls:'x-fa fa-phone sa-navicon',
menu:{
cls:'sa-nav-menu',
items:[{
text:'优软科技官网'
},{
text:'电话:400-830-1818'
},{
text:'邮箱:info@usoftchina.com'
}]
}
}]
}
},
{
//margin: '0 0 0 0',
xtype: 'tbtext',
cls:'sa-nav-button nav-realname',
bind: {
html: '{account.realname}'
},
style:{
cursor:'default',
textAlign:'center'
}
},
{
ui: 'header',
arrowVisible: false,
id:"userImage",
cls:' sa-nav-button',
width: 50,
height:50,
bind: {
html:''
},
menu: {
cls:'x-main-menu2 sa-nav-menu',
items: [ {
text: '账户中心',
iconCls:'x-fa fa-user-o sa-navicon',
handler:function(){
window.open(Ext.manifest.server.accountEnterprise,'_blank');
}
},{
text: '意见反馈',
iconCls:'x-fa fa-comment-o sa-navicon',
handler:'feedbackMsg'
}, {
text: '退出',
iconCls:'x-fa fa-power-off sa-navicon',
handler: 'onLogout'
}]
}
}
]
},
{
xtype: 'maincontainerwrap'
}
]
});