Commit c018917e authored by agping's avatar agping

标识 当前账户的 站点城市

parent d980d80c
......@@ -47,11 +47,19 @@
<span class="hidden-phone">同联商业后台管理中心</span>
</a>
</div>
<select class="form-control btn2-city ld-Marheight-city" id="user_city_choose">
<!--<option value="">城市筛选</option>-->
<!--<select class="form-control btn2-city ld-Marheight-city" id="user_city_choose">
<option value="310100">上海市</option>
<option value="330100">杭州市</option>
</select>-->
<select class="form-control btn2-city ld-Marheight-city" id="" disabled="disabled" class="user_city_choose_site">
<option value="上海市">上海市</option>
<option value="杭州市">杭州市</option>
<option value="深圳市">深圳市</option>
<option value="北京市">北京市</option>
<option value="苏州市">苏州市</option>
<option value="南京市">南京市</option>
</select>
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<span class="caret"></span>
......
......@@ -79,8 +79,16 @@ define(['doT', 'jquery', 'text!temp/menu_template_tpl.html', 'layer'], function
});
var _doc = $(document);
//显示 隐藏城市
$('#user_city_choose').hide();
//显示 隐藏城市 默认显示 当前账号 所在城市
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
if(user_info_obj.city){
$('.user_city_choose_site').val(user_info_obj.city);
}else{
$('.user_city_choose_site').val('上海市');
}
// $('#user_city_choose').hide();
// if(window.location.pathname == '/index/users_list' || window.location.pathname == '/index/RemarkFollowList'){
// $('#user_city_choose').show();
// }
......
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