Commit 3c4c7901 authored by agping's avatar agping

去掉在新页面打开

parent 56226029
......@@ -82,28 +82,28 @@ define(['doT', 'jquery', 'text!temp/menu_template_tpl.html', 'layer'], function
$('#user_city_choose').show();
}
//改变title的文字
if(window.location.pathname == '/index/getHouseList'){
document.title = '商铺列表';
};
if(window.location.pathname == '/index/followUpList'){
document.title = '商铺跟进列表';
};
if(window.location.pathname == '/index/users_list'){
document.title = '客户列表';
};
if(window.location.pathname == '/index/RemarkFollowList'){
document.title = '客户跟进列表';
};
// if(window.location.pathname == '/index/getHouseList'){
// document.title = '商铺列表';
// };
// if(window.location.pathname == '/index/followUpList'){
// document.title = '商铺跟进列表';
// };
// if(window.location.pathname == '/index/users_list'){
// document.title = '客户列表';
// };
// if(window.location.pathname == '/index/RemarkFollowList'){
// document.title = '客户跟进列表';
// };
_doc.on('click', '.menu-sub-alink', function(e){
e.preventDefault();
e.stopPropagation();
var _this = $(this);
if(_this.data('href') == '/index/getHouseList' || _this.data('href') == '/index/followUpList' || _this.data('href') == '/index/users_list' || _this.data('href') == '/index/RemarkFollowList'){
window.open(_this.data('href'));//改为在新标签页打开
}else{
// if(_this.data('href') == '/index/getHouseList' || _this.data('href') == '/index/followUpList' || _this.data('href') == '/index/users_list' || _this.data('href') == '/index/RemarkFollowList'){
// window.open(_this.data('href'));//改为在新标签页打开
//
// }else{
location.href = _this.data('href');
}
// }
});
_doc.on('click', '.menu-main-li', function(e){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment