chengkun
2025-04-29 ab5d7bddae4557b9d56d17f21fc8ca232d7d8693
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
function checkmore(type){
    var html=$("#"+type).html();
    //$("."+type).slideToggle();
    $("."+type).toggle();
    if(html=="更多"){
        $("#"+type).attr('class','showcheck');
        $("#"+type).html('收起');
    }else{
        $("#"+type).attr('class','hidecheck');
        $("#"+type).html('更多');
    }
}
$(document).ready(function(){
    $('.Search_jobs_more_chlose').hover(function(){
        $(this).find('.none').show();  
    },function(){
        $(this).find('.none').hide(); 
    });
    
    $('.delete').live('click',function(){
        var id = $(this).attr('data-id');
        var pid = $(this).attr('data-pid');
        if(parseInt(pid)>0){
            unsel(id,pid);
        }else{
            unsel(id)    
        }
    });    
    $('.search_job_list').hover(function(){
        $(".search_job_list").removeClass("search_job_list_cur_line");
        $(this).addClass('search_job_list_cur_line');  
        $(".search_job_list_cur_line>.search_job_list_box").show();
    },function(){
        var ltype=$('#ltype').val();
        if(ltype==''){
            $(".search_job_list_cur_line>.search_job_list_box").hide();
            $(".search_job_list").removeClass("search_job_list_cur_line");}
        } 
    );
    
    //搜索城市列表一二级展现
    $('.Search_jobs_sub_a').bind('mouseenter',function(){
        var dataid = $(this).attr('data-id');
        if(dataid){
            $('.Search_jobs_select').hide();
            $('#citytype'+dataid).show();
            //根据当前位置调整指向箭头
            var leftPx = $(this).position().left; 
            //调整箭头位置
            $('#icon_'+dataid).css('left',leftPx-60);
        }
        
    });
    $('.Search_jobs_form_list').bind('mouseleave',function(){
        $('.Search_jobs_select').hide();
        $('.oldshow').show();
    });
    /*找工作、找人才新加更多4.3*/ 
    $('#acity').hover(function(){
        $('.Search_cityall').removeClass('none');  
    },function(){
        $('.Search_cityall').addClass('none');
    });
    $('.Search_cityall').hover(function(){
        $('.Search_cityall').removeClass('none');  
    },function(){
        $('.Search_cityall').addClass('none'); 
    });
    /*结束*/
});
 
function addfinder(para,usertype,type){
    if(para==''){
        layer.msg('没有条件,无法保存!',2,8);return false;
    }
    loadlayer();
    $.post(weburl+"/job/index.php?c=addfinder",{para:para,usertype:usertype},function(data){
        layer.closeAll('loading');
        var data=eval('('+data+')');
        if(type=='1'){
            layer.msg(data.msg, Number(data.tm), Number(data.st),function(){location.reload();});return false;        
        }else{
            layer.msg(data.msg, Number(data.tm), Number(data.st));return false;        
        } 
    });
}
function showurl(url){
    window.location.href=url;
}
//找人才、找工作城市新加 4.3
function acityshow(id){
    if(id==1){
        $(".acity_two").addClass('search_city_active');
        $(".acity_three").removeClass('search_city_active');
        $("#acity_two").removeClass('none');
        $("#acity_three").addClass('none');
    }else if(id==2){
        $(".acity_three").addClass('search_city_active');
        $(".acity_two").removeClass('search_city_active');
        $("#acity_two").addClass('none');
        $("#acity_three").removeClass('none');
    }
}
// 列表搜索行业更多处理
function hy_more_click(obj){
    if($(obj).text() == '更多'){
        $(obj).text('收起');
        $(".list_hy_more").removeClass('none');
    }else{
        $(obj).text('更多');
        $(".list_hy_more").addClass('none');
    }
}