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
9647ffc5
Commit
9647ffc5
authored
Aug 27, 2018
by
xinyuandu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加高级搜索
parent
10a560f0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
22 deletions
+46
-22
houseList.html
application/index/view/houses/houseList.html
+32
-22
houseList.js
public/resource/js/houseList.js
+14
-0
No files found.
application/index/view/houses/houseList.html
View file @
9647ffc5
...
@@ -67,6 +67,9 @@
...
@@ -67,6 +67,9 @@
width
:
580px
;
width
:
580px
;
max-height
:
720px
;
max-height
:
720px
;
}
}
.main-select
{
display
:
none
;
}
</style>
</style>
<div
id=
"page-content-wrapper"
>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"container"
>
...
@@ -93,18 +96,9 @@
...
@@ -93,18 +96,9 @@
<tr>
<tr>
<td
colspan=
"10"
>
<td
colspan=
"10"
>
<form
id=
"form_search"
>
<form
id=
"form_search"
>
<div
class=
"col-xs-12 ld-Marheight"
style=
"padding:0px"
>
<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
class=
"form-control btn11"
id=
"is_carefully_chosen"
>
<option
value=
"-1"
"
>
是否显示在首页
</option>
<option
value=
"1"
>
否
</option>
<option
value=
"0"
>
是
</option>
</select>
<select
class=
"form-control btn11"
id=
"is_show"
>
<option
value=
"-1"
>
是否给商户看
</option>
<option
value=
"0"
>
是
</option>
<option
value=
"1"
>
否
</option>
</select>
</select>
<select
class=
"form-control btn2"
id=
"shop_type"
>
<select
class=
"form-control btn2"
id=
"shop_type"
>
<option
value=
"-1"
>
商铺类型
</option>
<option
value=
"-1"
>
商铺类型
</option>
...
@@ -122,17 +116,35 @@
...
@@ -122,17 +116,35 @@
<option
value=
"2"
>
10000-30000
</option>
<option
value=
"2"
>
10000-30000
</option>
<option
value=
"3"
>
30000以上
</option>
<option
value=
"3"
>
30000以上
</option>
</select>
</select>
<br
style=
"clear: both;"
/>
<select
class=
"form-control btn2 "
id=
"area_id"
>
<option
value=
""
selected=
"selected"
>
面积筛选
</option>
</select>
<select
class=
"form-control btn2 "
id=
"yetai_id"
>
<option
value=
""
selected=
"selected"
>
业态筛选
</option>
</select>
<input
class=
"form-control btn2 "
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"id"
placeholder=
"商铺编号"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"internal_title"
placeholder=
"对内商铺名称"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"landlord_phone"
placeholder=
"房东手机号"
type=
"tel"
value=
""
>
</div>
<div
class=
"main-select col-xs-12 ld-Marheight"
style=
"padding:0px;"
>
<select
class=
"form-control btn11 ld-Marheight"
id=
"is_carefully_chosen"
>
<option
value=
"-1"
"
>
是否显示在首页
</option>
<option
value=
"1"
>
否
</option>
<option
value=
"0"
>
是
</option>
</select>
<select
class=
"form-control btn11 ld-Marheight"
id=
"is_show"
>
<option
value=
"-1"
>
是否给商户看
</option>
<option
value=
"0"
>
是
</option>
<option
value=
"1"
>
否
</option>
</select>
<select
class=
"form-control btn2 ld-Marheight"
id=
"is_exclusive_type"
>
<select
class=
"form-control btn2 ld-Marheight"
id=
"is_exclusive_type"
>
<option
value=
"-1"
>
是否独家
</option>
<option
value=
"-1"
>
是否独家
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"0"
>
否
</option>
<option
value=
"0"
>
否
</option>
</select>
</select>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"id"
placeholder=
"商铺编号"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"shop_address"
placeholder=
"商铺地址"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"shop_address"
placeholder=
"商铺地址"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"internal_title"
placeholder=
"对内商铺名称"
type=
"text"
value=
""
>
<!--新加筛选-->
<!--新加筛选-->
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"internal_title_open"
placeholder=
"对外商铺名称"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"internal_title_open"
placeholder=
"对外商铺名称"
type=
"text"
value=
""
>
<!--<select class="form-control btn2 ld-Marheight" id="shop_city_id">
<!--<select class="form-control btn2 ld-Marheight" id="shop_city_id">
...
@@ -142,21 +154,16 @@
...
@@ -142,21 +154,16 @@
</select>-->
</select>-->
<select
class=
"form-control btn2 ld-Marheight"
id=
"area_id"
>
<option
value=
""
selected=
"selected"
>
面积筛选
</option>
</select>
<select
class=
"form-control btn2 ld-Marheight"
id=
"yetai_id"
>
<option
value=
""
selected=
"selected"
>
业态筛选
</option>
</select>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"dish_name"
placeholder=
"盘方姓名"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"dish_name"
placeholder=
"盘方姓名"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"dish_phone"
placeholder=
"盘方手机号"
type=
"tel"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"dish_phone"
placeholder=
"盘方手机号"
type=
"tel"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"landlord_phone"
placeholder=
"房东手机号"
type=
"tel"
value=
""
>
<span
class=
"fore-span ld-Marheight"
>
上传时间:
</span>
<span
class=
"fore-span ld-Marheight"
>
上传时间:
</span>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"start_date"
name=
"start_date"
type=
"date"
>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"start_date"
name=
"start_date"
type=
"date"
>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"end_date"
name=
"end_date"
type=
"date"
>
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"end_date"
name=
"end_date"
type=
"date"
>
<br
style=
"clear: both;"
/>
</div>
<div
class=
"col-xs-12"
style=
"padding : 0px;"
>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"reset"
>
重置
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"reset"
>
重置
</span>
<!-- 批量修改客方 -->
<!-- 批量修改客方 -->
...
@@ -164,6 +171,9 @@
...
@@ -164,6 +171,9 @@
批量修改客方
</a>
批量修改客方
</a>
<!-- 本人商铺 -->
<!-- 本人商铺 -->
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"persional_shop"
title=
"点击切换到本人商铺"
>
本人商铺
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"persional_shop"
title=
"点击切换到本人商铺"
>
本人商铺
</span>
<!-- 高级搜索 -->
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"main_select"
title=
"高级搜索"
>
高级搜索
</span>
</div>
</form>
</form>
</td>
</td>
...
...
public/resource/js/houseList.js
View file @
9647ffc5
...
@@ -26,6 +26,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
...
@@ -26,6 +26,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
all_shop
:
true
,
// false: 本人商铺,true:所有商铺
all_shop
:
true
,
// false: 本人商铺,true:所有商铺
is_exclusive_type
:
0
,
//0非独家 1:独家
is_exclusive_type
:
0
,
//0非独家 1:独家
auth_edit_exclusive
:
0
,
//0:无独家权限 1:有独家权限
auth_edit_exclusive
:
0
,
//0:无独家权限 1:有独家权限
main_select
:
false
,
// true : 开启高级搜索 ,false :关闭高级搜索
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
business
.
getDistrict
();
business
.
getDistrict
();
...
@@ -124,6 +125,19 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
...
@@ -124,6 +125,19 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
business
.
getList
(
1
);
business
.
getList
(
1
);
});
});
$
(
'#main_select'
).
unbind
(
'click'
).
bind
(
'click'
,
function
(){
business
.
main_select
=
!
business
.
main_select
;
console
.
log
(
business
.
main_select
);
if
(
business
.
main_select
){
$
(
'.main-select'
).
show
();
$
(
'#main_select'
).
html
(
"关闭高级搜索"
);
}
else
{
$
(
'.main-select'
).
hide
();
$
(
'#main_select'
).
html
(
"高级搜索"
);
}
});
$
(
document
).
delegate
(
".del_modal"
,
"click"
,
function
()
{
$
(
document
).
delegate
(
".del_modal"
,
"click"
,
function
()
{
business
.
id
=
$
(
this
).
attr
(
"data-id"
);
business
.
id
=
$
(
this
).
attr
(
"data-id"
);
...
...
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