Commit 9647ffc5 authored by xinyuandu's avatar xinyuandu

添加高级搜索

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