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
40d4156c
Commit
40d4156c
authored
Nov 01, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
a667842e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
18 deletions
+27
-18
houseList.html
application/index/view/houses/houseList.html
+1
-0
houseList.js
public/resource/js/houseList.js
+26
-18
No files found.
application/index/view/houses/houseList.html
View file @
40d4156c
...
@@ -214,6 +214,7 @@
...
@@ -214,6 +214,7 @@
<td
colspan=
"10"
>
<td
colspan=
"10"
>
<form
id=
"form_search"
>
<form
id=
"form_search"
>
<div
class=
"col-xs-12"
style=
"padding:0px"
>
<div
class=
"col-xs-12"
style=
"padding:0px"
>
<select
class=
"form-control btn2-city shop_city_choose_site_list"
></select>
<select
class=
"form-control btn2"
id=
"shop_area_id"
>
<select
class=
"form-control btn2"
id=
"shop_area_id"
>
<option
value=
""
selected=
"selected"
>
区域
</option>
<option
value=
""
selected=
"selected"
>
区域
</option>
</select>
</select>
...
...
public/resource/js/houseList.js
View file @
40d4156c
...
@@ -82,9 +82,28 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
...
@@ -82,9 +82,28 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
// $('#start_date').val(day_start);
// $('#start_date').val(day_start);
// $('#end_date').val(day_end);//去掉默认时间
// $('#end_date').val(day_end);//去掉默认时间
//初始化城市 区域筛选
//初始化城市 区域筛选
business
.
initializationCityFunction
();
// business.initializationCityFunction();
business
.
getList
(
1
);
business
.
event
();
business
.
event
();
business
.
resetLoad
();
business
.
resetLoad
();
//显示 隐藏城市 默认显示 当前账号 所在城市
$
.
ajax
({
url
:
'/index/getAgentGroupSite'
,
type
:
'GET'
,
async
:
true
,
data
:
{
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
var
str
=
'<option value="">选择城市</option>'
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
str
+=
'<option value="'
+
item
.
city
+
'">'
+
item
.
city
+
'</option>'
;
});
$
(
".shop_city_choose_site_list"
).
append
(
str
);
}
}
});
},
},
event
:
function
()
{
event
:
function
()
{
var
_doc
=
$
(
document
);
var
_doc
=
$
(
document
);
...
@@ -353,20 +372,17 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
...
@@ -353,20 +372,17 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
});
});
});
});
//城市 区域 二级联动 筛选
//城市 区域 二级联动 筛选
_doc
.
on
(
'input'
,
'
#user_city_choose
'
,
function
()
{
_doc
.
on
(
'input'
,
'
.shop_city_choose_site_list
'
,
function
()
{
$
(
'#shop_area_id'
).
val
(
''
);
$
(
'#shop_area_id'
).
val
(
''
);
$
(
'#business_circle_id'
).
val
(
''
);
$
(
'#business_circle_id'
).
val
(
''
);
$
(
'#business_circle_id'
).
html
(
''
);
business
.
getList
();
var
_this
=
$
(
this
);
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
var
_id
=
_this
.
val
();
// business.setUpCityFunction(_id);
$
(
'#shop_area_id'
).
html
(
''
);
//先清空
$
(
'#shop_area_id'
).
html
(
''
);
//先清空
if
(
_id
&&
_id
!=
'0'
)
{
if
(
_id
&&
_id
!=
'0'
)
{
business
.
getDistrictStoreList
(
_id
,
function
(
_data
)
{
business
.
getDistrictStoreList
(
_id
,
function
(
_data
)
{
var
_str
=
'<option value="">区域</option>'
;
var
_str
=
'<option value="">区域</option>'
;
$
.
each
(
_data
,
function
(
i
,
item
)
{
$
.
each
(
_data
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
fullName
+
'">'
+
item
.
fullN
ame
+
'</option>'
;
_str
+=
'<option value="'
+
item
.
name
+
'">'
+
item
.
n
ame
+
'</option>'
;
});
});
$
(
'#shop_area_id'
).
html
(
_str
);
$
(
'#shop_area_id'
).
html
(
_str
);
});
});
...
@@ -374,7 +390,6 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
...
@@ -374,7 +390,6 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
});
});
//点击 区域 获取 商圈
//点击 区域 获取 商圈
_doc
.
on
(
'input'
,
'#shop_area_id'
,
function
()
{
_doc
.
on
(
'input'
,
'#shop_area_id'
,
function
()
{
business
.
getList
();
var
_this
=
$
(
this
);
var
_this
=
$
(
this
);
var
_id
=
_this
.
val
();
var
_id
=
_this
.
val
();
var
_province
=
$
(
'#user_city_choose'
).
val
();
var
_province
=
$
(
'#user_city_choose'
).
val
();
...
@@ -1223,12 +1238,7 @@ if(data.code == 200) {
...
@@ -1223,12 +1238,7 @@ if(data.code == 200) {
params
.
vip
=
$
(
'#is_vip_plate'
).
val
();
//VIP盘筛选
params
.
vip
=
$
(
'#is_vip_plate'
).
val
();
//VIP盘筛选
//添加个人商铺和所有商铺选择功能
//添加个人商铺和所有商铺选择功能
params
.
dish_id
=
business
.
all_shop
?
''
:
user_info_obj
.
id
;
params
.
dish_id
=
business
.
all_shop
?
''
:
user_info_obj
.
id
;
if
(
$
(
'#user_city_choose'
).
val
()
==
310100
){
params
.
city
=
$
(
'.shop_city_choose_site_list'
).
val
();
//城市筛选
// params.city = '上海市' ;
}
if
(
$
(
'#user_city_choose'
).
val
()
==
330100
){
// params.city = '杭州市' ;
}
params
.
disc
=
$
(
'#shop_area_id'
).
val
();
//区域筛选
params
.
disc
=
$
(
'#shop_area_id'
).
val
();
//区域筛选
params
.
business_id
=
$
(
'#business_circle_id'
).
val
();
//商圈筛选
params
.
business_id
=
$
(
'#business_circle_id'
).
val
();
//商圈筛选
params
.
industry_type
=
$
(
'#yetai_id'
).
val
();
//业态筛选
params
.
industry_type
=
$
(
'#yetai_id'
).
val
();
//业态筛选
...
@@ -1321,8 +1331,7 @@ if(data.code == 200) {
...
@@ -1321,8 +1331,7 @@ if(data.code == 200) {
type
:
'GET'
,
type
:
'GET'
,
async
:
true
,
async
:
true
,
data
:
{
data
:
{
// 'parent_code': id,
'city'
:
id
,
// "pageSize": 1000
},
},
dataType
:
'json'
,
dataType
:
'json'
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
...
@@ -1339,9 +1348,8 @@ if(data.code == 200) {
...
@@ -1339,9 +1348,8 @@ if(data.code == 200) {
type
:
'GET'
,
type
:
'GET'
,
async
:
true
,
async
:
true
,
data
:
{
data
:
{
// 'province': province,
'city'
:
$
(
'.shop_city_choose_site_list'
).
val
(),
'city'
:
user_info_obj
.
city
,
'disc'
:
$
(
'#shop_area_id'
).
val
()
'disc'
:
id
},
},
dataType
:
'json'
,
dataType
:
'json'
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
...
...
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