Commit 9647ffc5 authored by xinyuandu's avatar xinyuandu

添加高级搜索

parent 10a560f0
...@@ -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>
......
...@@ -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");
......
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