')
_div.appendTo('#search_list')
$.each(item.sub_area,function (idx,_item) {
var subAreaList = $('
')
if(idx === (item.sub_area.length-1)){
subAreaList.addClass('last')
}
subAreaList.appendTo(_div)
$.each(_item.sub_area_list,function (idx,subarea) {
var _li = $('
')
var span = $('
'+subarea.name+'')
span.appendTo(_li)
_li.appendTo(subAreaList.find('.sub_area_name'))
span.on('click',function (idx,item) {
var id = $(this).closest('li').data('id')
var type = $(this).closest('li').data('type')
// 如果不是高亮,高亮效果且改变提交id数组
if(!$(this).hasClass('active')){
// $(this).addClass('active')
// paraArr.push(id)
add($(this),id,type,1,area_id,'area_id')
//alert(1111);
//我添加的
var pid=document.getElementById("pid").value;
var pid2=document.getElementById("pid2").value;
var orderby=document.getElementById("orderby").value;
var lb_ys=document.getElementById("lb_ys").value;
var hot_shop=document.getElementById("hot_shop").value;
var life_service_sku=document.getElementById("life_service_sku").value;
var hk1=document.getElementById("hk1").value;
var hk2=document.getElementById("hk2").value;
//var hk3=document.getElementById("hk3").value;
$.get("check_dwname_life_service.php?pid="+pid+"&pid2="+pid2+"&orderby="+orderby+"&lb_ys="+lb_ys+"&hot_shop="+hot_shop+"&life_service_sku="+life_service_sku+"&hk1="+hk1+"&hk2="+hk2+"&hk3="+area_id+"",null,function(data){
$('#huoqu').html(data);
});
$.get("check_dwname_life_service_shuliang.php?pid="+pid+"&pid2="+pid2+"&orderby="+orderby+"&lb_ys="+lb_ys+"&hot_shop="+hot_shop+"&life_service_sku="+life_service_sku+"&hk1="+hk1+"&hk2="+hk2+"&hk3="+area_id+"",null,function(data){
$('#shuliang').html(data);
});
//我添加的
}else{
delect($(this),id,type,area_id,'area_id')
}
})
})
})
})
$('.area_all').on('click',function () {
var id = $(this).data('id')
var type = $(this).data('type')
if(!$(this).hasClass('active')){
add($(this),id,type,0,city_id,'city_id')
//alert(1111);
//我添加的
var pid=document.getElementById("pid").value;
var pid2=document.getElementById("pid2").value;
var orderby=document.getElementById("orderby").value;
var lb_ys=document.getElementById("lb_ys").value;
var hot_shop=document.getElementById("hot_shop").value;
var life_service_sku=document.getElementById("life_service_sku").value;
//var hk1=document.getElementById("hk1").value;
var hk2=document.getElementById("hk2").value;
var hk3=document.getElementById("hk3").value;
$.get("check_dwname_life_service.php?pid="+pid+"&pid2="+pid2+"&orderby="+orderby+"&lb_ys="+lb_ys+"&hot_shop="+hot_shop+"&life_service_sku="+life_service_sku+"&hk1="+city_id+"&hk2="+hk2+"&hk3="+hk3+"",null,function(data){
$('#huoqu').html(data);
});
$.get("check_dwname_life_service_shuliang.php?pid="+pid+"&pid2="+pid2+"&orderby="+orderby+"&lb_ys="+lb_ys+"&hot_shop="+hot_shop+"&life_service_sku="+life_service_sku+"&hk1="+city_id+"&hk2="+hk2+"&hk3="+area_id+"",null,function(data){
$('#shuliang').html(data);
});
//我添加的
}else{
delect($(this),id,type,city_id,'city_id',0)
}
})
$('.sub_area').on('click',function () {
var id = $(this).data('id')
var type = $(this).data('type')
if(!$(this).hasClass('active')){
add($(this),id,type,0,province_id,'province_id')
//alert(1111);
//我添加的
var pid=document.getElementById("pid").value;
var pid2=document.getElementById("pid2").value;
var orderby=document.getElementById("orderby").value;
var lb_ys=document.getElementById("lb_ys").value;
var hot_shop=document.getElementById("hot_shop").value;
var life_service_sku=document.getElementById("life_service_sku").value;
var hk1=document.getElementById("hk1").value;
//var hk2=document.getElementById("hk2").value;
var hk3=document.getElementById("hk3").value;
$.get("check_dwname_life_service.php?pid="+pid+"&pid2="+pid2+"&orderby="+orderby+"&lb_ys="+lb_ys+"&hot_shop="+hot_shop+"&life_service_sku="+life_service_sku+"&hk1="+hk1+"&hk2="+province_id+"&hk3="+hk3+"",null,function(data){
$('#huoqu').html(data);
});
$.get("check_dwname_life_service_shuliang.php?pid="+pid+"&pid2="+pid2+"&orderby="+orderby+"&lb_ys="+lb_ys+"&hot_shop="+hot_shop+"&life_service_sku="+life_service_sku+"&hk1="+hk1+"&hk2="+province_id+"&hk3="+area_id+"",null,function(data){
$('#shuliang').html(data);
});
//我添加的
}else{
delect($(this),id,type,province_id,'province_id',0)
}
})
//点击更多和收起
$('.logo').on('click',function () {
console.log($(this).html('收起'))
var node = $(this).closest('.main_search')
if(node.hasClass('h30')){
node.removeClass('h30')
$(this).html('收起')
}else{
node.addClass('h30')
$(this).html('更多')
}
})
})(document, window);
-->