$(this).parent().addClass("selcur labelSelcur");
$(this).parent().children("span").removeClass("check_box");
$(this).addClass("check_box");
} else {
$(this).parent().children("span").removeClass("check_box");
$(this).parent().removeClass("selcur labelSelcur");
}
});
});
$btn_cancel_hook.click(function () {
$(this).parent().parent(".optionsAlertCon").removeClass("ckeckBox");
$(".optionsAlertCon dl dd label").removeClass("selcur labelSelcur");
});
// 价格区间
$(".ofocus .btns .btns_filter input").click(function () {
$(this).parent().parent().children(".hides").css("display", "block");
});
$(".ofocus .btns .hides").click(function () {
$(this).css("display", "none");
});
//地区
$(".s-top .item .sel-pad li").hover(function () {
$(this).addClass("hover");
$(this).children(".city_list").css("display", "block");
$(this).children(".show_list").css("display", "block");
}, function () {
$(this).removeClass("hover");
$(this).children(".city_list").css("display", "none");
$(this).children(".show_list").css("display", "none");
});
$(".s-top .item .sel-pad li .city_list .city_pro dl .chengshi").hover(function () {
$(this).addClass("arrow_up_hover_right").css("z-index", "10000");
$(this).children("ul").css("display", "block");
}, function () {
$(this).removeClass("arrow_up_hover_right").css("z-index", "1000");
$(this).children("ul").css("display", "none");
});
// 产品
$(".wrap-grid ul .grid-list .NewItem .picmid img").mouseover(function () {
$(this).parent().parent().parent(".NewItem").addClass("hover2 hover");
$(this).parent().parent().children(".similars").css("display", "block");
$(this).parent().parent().parent(".NewItem").children(".Collection").css("display", "block");
$(this).parent().parent().parent(".NewItem").children(".newShowBox").css("display", "block");
});
$(".wrap-grid ul .grid-list .NewItem").mouseleave(function () {
$(this).removeClass("hover2 hover");
$(this).children(".picmid").children(".similars").css("display", "none");
$(this).children(".Collection").css("display", "none");
$(this).children(".newShowBox").css("display", "none");
});
// 产品广告
$(".cont-right .hzBoxNew ul li .hzBoxImg").mouseover(function () {
$(this).parent().children(".hzImgBot").children(".hoverShow").css("display", "block");
});
$(".cont-right .hzBoxNew ul li").mouseleave(function () {
$(this).children(".hzImgBot").children(".hoverShow").css("display", "none");
});
// 相关推荐全部商圈
$(".b-right .relateSelect dt").click(function () {
$(this).parent().children("dt").removeClass("select");
$(this).addClass("select");
var index_dt=$(this).index();
$(this).parent().parent().children(".relateSelect_1").children("dd").css("display", "none");
$(this).parent().parent().children(".relateSelect_1").children("dd").eq(index_dt).css("display", "block");
});
// 筛选
$check_box_new.click(function () {
var url = "/index.php/Goods/lists";
if ($(this).hasClass("check_box")){
$(this).removeClass("check_box");
if ($(this).attr("data-name") == "vip"){
url += "?style=1&cat_id=2&city_id=148&areas_id=1025";
} else if ($(this).attr("data-name") == "hot"){
url += "?style=1&cat_id=2&city_id=148&areas_id=1025";
}
} else {
$(this).addClass("check_box");
if ($(this).attr("data-name") == "vip"){
url += "/vip/1?style=1&cat_id=2&city_id=148&areas_id=1025";
} else if ($(this).attr("data-name") == "hot"){
url += "/hot/1?style=1&cat_id=2&city_id=148&areas_id=1025";
}
}
window.location.href = url;
});
});