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 ...@@ -82,28 +82,28 @@ define(['doT', 'jquery', 'text!temp/menu_template_tpl.html', 'layer'], function
$('#user_city_choose').show(); $('#user_city_choose').show();
} }
//改变title的文字 //改变title的文字
if(window.location.pathname == '/index/getHouseList'){ // if(window.location.pathname == '/index/getHouseList'){
document.title = '商铺列表'; // document.title = '商铺列表';
}; // };
if(window.location.pathname == '/index/followUpList'){ // if(window.location.pathname == '/index/followUpList'){
document.title = '商铺跟进列表'; // document.title = '商铺跟进列表';
}; // };
if(window.location.pathname == '/index/users_list'){ // if(window.location.pathname == '/index/users_list'){
document.title = '客户列表'; // document.title = '客户列表';
}; // };
if(window.location.pathname == '/index/RemarkFollowList'){ // if(window.location.pathname == '/index/RemarkFollowList'){
document.title = '客户跟进列表'; // document.title = '客户跟进列表';
}; // };
_doc.on('click', '.menu-sub-alink', function(e){ _doc.on('click', '.menu-sub-alink', function(e){
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
var _this = $(this); 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'){ // 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'));//改为在新标签页打开 // window.open(_this.data('href'));//改为在新标签页打开
//
}else{ // }else{
location.href = _this.data('href'); location.href = _this.data('href');
} // }
}); });
_doc.on('click', '.menu-main-li', function(e){ _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