Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
c018917e
Commit
c018917e
authored
Oct 25, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
标识 当前账户的 站点城市
parent
d980d80c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
+20
-4
frame_tpl.html
application/index/view/global/frame_tpl.html
+10
-2
public.js
public/resource/js/public.js
+10
-2
No files found.
application/index/view/global/frame_tpl.html
View file @
c018917e
...
...
@@ -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>
...
...
public/resource/js/public.js
View file @
c018917e
...
...
@@ -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();
// }
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment