Commit 0f5c0153 authored by agping's avatar agping

新窗口打开页面

parent 7864ea62
...@@ -89,24 +89,11 @@ define(['doT', 'jquery', 'text!temp/menu_template_tpl.html', 'layer'], function ...@@ -89,24 +89,11 @@ define(['doT', 'jquery', 'text!temp/menu_template_tpl.html', 'layer'], function
if(window.location.pathname == '/index/getHouseList' || window.location.pathname == '/index/followUpList' || window.location.pathname == '/index/users_list' || window.location.pathname == '/index/RemarkFollowList'){ if(window.location.pathname == '/index/getHouseList' || window.location.pathname == '/index/followUpList' || window.location.pathname == '/index/users_list' || window.location.pathname == '/index/RemarkFollowList'){
$('#user_city_choose').show(); $('#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 = '客户跟进列表';
// };
_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);
location.href = _this.data('href'); location.href = _this.attr('href');
}); });
_doc.on('click', '.menu-main-li', function(e){ _doc.on('click', '.menu-main-li', function(e){
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<!--<img src="/resource/image/icon_more@2x.png" id=""/>--> <!--<img src="/resource/image/icon_more@2x.png" id=""/>-->
<ul class="dropdown-menu" role="menu"> <ul class="dropdown-menu" role="menu">
[% for(var item_menu in it[item]["_child"]){ %] [% for(var item_menu in it[item]["_child"]){ %]
<li><a href="javascript:;" target="_blank" class="menu-sub-alink" data-href="/[%= it[item]['_child'][item_menu]['name'] %]"><span class="glyphicon-zhanwei"></span> <span class="span-list">[%= it[item]["_child"][item_menu]['title'] %]</span></a></li> <li><a href="/[%= it[item]['_child'][item_menu]['name'] %]" target="_blank" class="menu-sub-alink"><span class="glyphicon-zhanwei"></span> <span class="span-list">[%= it[item]["_child"][item_menu]['title'] %]</span></a></li>
[% } %] [% } %]
</ul> </ul>
[% }%] [% }%]
......
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