removeClass("down").addClass("up"); $(this).text("收起选项"); $(this).siblings(".search-type-block").css("height","auto"); $(".group_hid").show(); } else { $(this).removeClass("up").addClass("down"); $(this).text("更多选项"); $(this).siblings(".search-type-block").css("height","auto"); $(".group_hid").hide(); } }); //删除已选 $(".chick-child").find('i').click(function(){ var url = $(this).parent().attr('data-url'); window.location.href = url; }) //清空筛选条件 $('.clear-item').click(function(){ var url = SITEURL+'outdoor/all'; window.location.href = url; }) //点击排序 $('.hd-sort-block').find('a').click(function(){ var url = $(this).find('i').attr('data-url'); if(url==undefined){ url = location.href; } window.location.href = url; }) //其他选项 $('.hd-sort-block select').change(function(){ var url=$(this).val(); window.location.href=url; }); });