|
|
@@ -45,7 +45,6 @@ Ext.define('saas.view.main.Main', {
|
|
|
reference: 'mainprofile',
|
|
|
arrowVisible: false,
|
|
|
ui: 'header',
|
|
|
- tooltip: '所属公司',
|
|
|
bind: {
|
|
|
text: '{company.name}'
|
|
|
},
|
|
|
@@ -68,7 +67,6 @@ Ext.define('saas.view.main.Main', {
|
|
|
iconCls:'x-fa fa-question',
|
|
|
ui: 'header',
|
|
|
arrowVisible: false,
|
|
|
- //tooltip: '帮助',
|
|
|
width:50,
|
|
|
listeners:{
|
|
|
'mouseover':function(){
|
|
|
@@ -80,32 +78,31 @@ Ext.define('saas.view.main.Main', {
|
|
|
if(cx <= btnLayout.left || cx >= btnLayout.left+btnLayout.width || cy <= btnLayout.top) {
|
|
|
btn.hideMenu();
|
|
|
}
|
|
|
- },'mouseleave':function(enu){
|
|
|
- this.hide();
|
|
|
}
|
|
|
},
|
|
|
menu: {
|
|
|
+ cls:'nav-menu',
|
|
|
items: [{
|
|
|
text: '新手导航',
|
|
|
- iconCls:'x-fa icon-userGuite',
|
|
|
+ iconCls:'x-fa fa-comment-o',
|
|
|
handler:function(){
|
|
|
console.log("新手导航");
|
|
|
}
|
|
|
},{
|
|
|
text: '用户手册',
|
|
|
- iconCls:'x-fa icon-userBook',
|
|
|
+ iconCls:'x-fa fa-comment-o',
|
|
|
handler:function(){
|
|
|
console.log("用户手册");
|
|
|
}
|
|
|
},{
|
|
|
text: '常见问题',
|
|
|
- iconCls:'x-fa icon-commonQuestion',
|
|
|
+ iconCls:'x-fa fa-question-circle-o',
|
|
|
handler:function(){
|
|
|
console.log("常见问题");
|
|
|
}
|
|
|
},{
|
|
|
text: '客服热线',
|
|
|
- iconCls:'x-fa icon-serviceOnline',
|
|
|
+ iconCls:'x-fa fa-comment-o',
|
|
|
handler:function(){
|
|
|
console.log("客服热线");
|
|
|
}
|
|
|
@@ -113,54 +110,63 @@ Ext.define('saas.view.main.Main', {
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- ui: 'header',
|
|
|
+ margin: '0 0 0 8',
|
|
|
+ xtype: 'tbtext',
|
|
|
+ cls:'nav-realname',
|
|
|
bind: {
|
|
|
- tooltip: '{account.realname}',
|
|
|
- text: '{account.realname}'
|
|
|
+ //tooltip: '{account.realname}',
|
|
|
+ html: '{account.realname}'
|
|
|
+ },
|
|
|
+ style:{
|
|
|
+ cursor:'default',
|
|
|
+ textAlign:'center'
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
ui: 'header',
|
|
|
- arrowVisible: false,
|
|
|
- cls: 'header-right-profile-image',
|
|
|
- height: 70,
|
|
|
- width: 70,
|
|
|
- /* bind: {
|
|
|
- src: '{avatarUrl}'
|
|
|
- }, */
|
|
|
+ id:"userImage",
|
|
|
+ height: 35,
|
|
|
+ width: 35,
|
|
|
+ bind: {
|
|
|
+ html:'<img class="x-img x-box-item x-toolbar-item x-img-header" style="width: 35px; height: 35px; margin: 0px;" src="{avatarUrl}" alt="">'
|
|
|
+ },
|
|
|
menu: {
|
|
|
+ cls:'nav-menu',
|
|
|
items: [ {
|
|
|
text: '账户中心',
|
|
|
- iconCls:'x-fa icon-accountCenter',
|
|
|
+ iconCls:'x-fa x-fa fa-user-o',
|
|
|
handler:function(){
|
|
|
console.log("账户中心");
|
|
|
}
|
|
|
},{
|
|
|
text: '意见反馈',
|
|
|
- iconCls:'x-fa icon-feedback',
|
|
|
+ iconCls:'x-fa fa-comment-o',
|
|
|
handler:function(){
|
|
|
console.log("意见反馈");
|
|
|
}
|
|
|
}, {
|
|
|
text: '退出',
|
|
|
+ iconCls:'x-fa fa-power-off',
|
|
|
handler: 'onLogout'
|
|
|
}]
|
|
|
} ,
|
|
|
- listeners:{
|
|
|
- 'mouseover':function(){
|
|
|
- this.showMenu();
|
|
|
+ listeners:{
|
|
|
+ 'mouseover':function(btn){
|
|
|
+ console.log("btn:",btn);
|
|
|
+ btn.menu ? (btn.menu.isVisible() ? '' : btn.showMenu()) : '';
|
|
|
},
|
|
|
'mouseout':function(btn,e){
|
|
|
- var cx = e.browserEvent.clientX, cy = e.browserEvent.clientY;
|
|
|
- var btnLayout = btn.el.dom.getBoundingClientRect();
|
|
|
- if(cx <= btnLayout.left || cx >= btnLayout.left+btnLayout.width || cy <= btnLayout.top) {
|
|
|
- btn.hideMenu();
|
|
|
- }
|
|
|
- },'mouseleave':function(enu){
|
|
|
- this.hide();
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
+ console.log("btn:",btn);
|
|
|
+ window.setTimeout(function(){
|
|
|
+ var cx = e.browserEvent.clientX, cy = e.browserEvent.clientY;
|
|
|
+ console.log(btn.el.dom);
|
|
|
+ var btnLayout = btn.el.dom.getBoundingClientRect();
|
|
|
+ if(cx <= btnLayout.left || cx >= btnLayout.left+btnLayout.width || cy <= btnLayout.top) {
|
|
|
+ btn.hideMenu();
|
|
|
+ }
|
|
|
+ }, 10);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
]
|
|
|
},
|