');
window.location.href = url;
})
//清空筛选条件
$('.clearc').click(function(){
var url = SITEURL+'spots/all/';
window.location.href = url;
})
//隐藏没有属性下级分类
$(".type").each(function(i,obj){
var len = $(obj).find('dd p a').length;
if(len<1){
$(obj).hide();
}
})
//隐藏多余的套餐
$(".scenic-list-con .list-child").each(function () {
var child=$(this).find(".spot-typetable ul li").length;
$(this).find(".spot-typetable ul li").each(function () {
if ($(this).index() < 3) {
$(this).removeClass('li-hide');
}
});
if(child>3) {
var hide_num = child - 3
$(this).find(".spot-typetable div.more_suit a.more-ticket-btn").html('展开全部门票(' + hide_num + ')');
$(this).find(".spot-typetable div.more_suit").show();
}
});
//查看更多门票
$(".more-ticket-btn").on("click",function(){
var $this=$(this);
var tiLi=$this.parents(".type-label").find("li.li-hide");
if($this.hasClass("up")){
tiLi.css({"display":"none"});
$this.removeClass("up").text('展开全部门票(' + tiLi.length + ')');
}else{
tiLi.css({"display":"block"});
$this.addClass("up").text('收起更多门票(' + tiLi.length + ')');
}
});
})