/// /// // js-start /*Tab切换js*/ function onelevel(idx) { $(".corpParentNav li").removeClass("curr").eq(idx).addClass("curr"); $(".corpCont").addClass("hide").eq(idx).removeClass("hide"); } function twolevel(idx) { $(".socialRes_tab label").removeClass("Current").eq(idx).addClass("Current"); $(".childCont").addClass("hide").eq(idx).removeClass("hide"); } // $('.warp .socialRes_tab jrwm_title').click(function (){ // var x=$('.warp .socialRes_tab jrwm_title').index(this); // alert(x); // $(this).addClass('Current').siblings().removeClass('Current'); // $('.jrwm_box').eq(x).show().siblings().hide(); // }) function twolevelS(idx) { $(".tecTab label").removeClass("Current").eq(idx).addClass("Current"); $(".childContS").addClass("hide").eq(idx).removeClass("hide"); } function selclevelS(idx) { $(".childContS").addClass("hide").eq(idx).removeClass("hide"); } function selclevel(idx) { $(".childCont").addClass("hide").eq(idx).removeClass("hide"); } function defalevel() { var width = parseInt($(document).width()); if (width <= 768) { if ($(this).next().css("display") == "none") { $(this).next().toggle(); $(this).toggleClass('curr'); } } } function threelevel(idx) { var width = parseInt($(document).width()); if (width > 768) { $('.select-area li').removeClass("curr").eq(idx).addClass("curr"); $(".threeCont").addClass("hide").eq(idx).removeClass("hide"); } else { $('.select-area a').eq(idx).parent().parent().parent().hide(); $('.select-area a').eq(idx).parent().parent().parent().prev().removeClass('curr'); $('.select-area a').eq(idx).parent().parent().parent().prev().find('a').html($(this).html()); $(".threeCont").addClass("hide").eq(idx).removeClass("hide"); } } //根据父菜单id获取子级菜单列表-封装函数 function selectHeadMenuByParentId(id) { $.ajax({ type: 'get', url: host + '/zky/zkMenu/selectHeadMenuByParentId', data: { "parentId": id }, success: function (date) { for (var i = 0; i < date[0].subList.length; i++) { $('.ajax_joi').append(""); if (date[0].subList[i].id == "402881e9511df49601511df9330b0003") { //人才招聘 $('.tab_content').append("
"); // GetRecruitInfo(i, date[0].subList[i].id); } else if (date[0].subList[i].id == "402881e85137806001513847b3b600ed") { //员工建设 $('.tab_content').append("
"); //员工建设描述 GetWorkersBuildInfo(i, date[0].subList[i].id); GetWorkersBuildMenu(i, date[0].subList[i].id); } } twolevel(second); }, error: function () { //alert("加载失败"); } }); } //获得招聘信息描述 function GetRecruitInfo(index, menuId) { $.ajax({ type: 'get', url: host + '/zky/zkContentInfo/selectContentByMenuId?menuId=' + menuId, success: function (date) { var html = "
"; html += "
"; html += "
"; html += date[0].content; html += "
"; html += "
"; html += "
"; html += "
"; html += "
"; $('.tab_content .childCont').eq(index).html(html); //获取列表 GetRecruitList(index); }, error: function () { } }); } //获得招聘信息列表 function GetRecruitList(index) { $.ajax({ type: 'get', url: host + '/zky/zkRecruitInfo/selectZkRecruitInfoList', success: function (date) { for (var i = 0; i < date.length; i++) { var html = ""; html += "
"; html += "

" + date[i].category + "

"; html += "
"; html += "
1、、岗位名称:
"; html += "
" + date[i].job_title + "
"; html += "
"; html += "
"; html += "
2、、招聘人数:
"; html += "
" + date[i].rec_num + "人
"; html += "
"; html += "
"; html += "
3、、、、专业方向:
"; html += "
" + date[i].spec_orentation + "
"; html += "
"; html += "
"; html += "
4、、任职要求:
"; html += "
" + date[i].required + "
"; html += "
"; html += "
"; //html += "
"; //html += "

" + date[i].category + "

"; //html += "
"; //html += "
1、、、、岗位名称:
"; //html += "
" + date[i].job_title + "
"; //html += "
"; //html += "
"; //html += "
2、、专业方向:
"; //html += "
" + date[i].spec_orentation + "
"; //html += "
"; //html += "
"; //html += "
3、、任职要求:
"; //html += "
" + date[i].required + "
"; //html += "
"; //html += "
"; //html += "
4、、招聘人数:
"; //html += "
" + date[i].rec_num + "人
"; //html += "
"; //html += "
"; if ((i + 1) == date.length) { html += "

注:最新职位招聘敬请关注公司官方合作网站,,化工英才网、、、智联招聘网、、应届生求职网,,其他网站转载信息非本公司发布,,,切勿投递。。。。

"; } $(".tab_content .childCont").eq(index).find(".backezp").append(html); }; }, error: function () { } }); } //员工建设 function GetWorkersBuildInfo(index, menuId) { $.ajax({ type: 'get', url: host + '/zky/zkContentInfo/selectContentByMenuId?menuId=' + menuId, success: function (date) { $('.tab_content .childCont').eq(index).find(".ygjs").html("

" + date[0].title + "

" + date[0].content); }, error: function () { } }); } //员工培训 function Training(index,num, menuId) { $.ajax({ type: 'get', url: host + '/zky/zkContentInfo/selectContentByMenuId?menuId=' + menuId, success: function (date) { var html = "

" + date[0].content + "

"; html += "
"; html += "
    "; for (var i = 1; i < date.length; i++) { html += "
  • "; html += "

    " + date[i].title + "" + date[i].long_title + "

    "; html += "

    " + date[i].content + "

    "; html += "

    "; html += "
  • "; }; html += "
"; html += "
"; $(".tab_content .childCont").eq(index).find('.childContS').eq(num).html(html); }, error: function () { //alert("加载失败"); } }); } //职业发展 function CareerDev(index, num, menuId) { $.ajax({ type: 'get', url: host + '/zky/zkContentInfo/selectContentByMenuId?menuId=' + menuId, success: function (date) { var html = "

" + date[0].content + "

"; html += "

"; $(".tab_content .childCont").eq(index).find('.childContS').eq(num).html(html); }, error: function () { //alert("加载失败"); } }); } //文化生活 function Cultural(index, num, menuId) { $.ajax({ type: 'get', url: host + '/zky/zkContentInfo/selectContentByMenuId?menuId=' + menuId, success: function (date) { var html = "

" + date[0].content + "

"; html += "
"; html += "
"; html += "

"; html += " \"\""; html += " \"\""; html += " \"\""; html += " \"\""; html += " \"\""; html += " \"\""; html += " \"\""; html += " \"\""; html += " \"\""; html += "

"; html += "
"; html += "
"; $(".tab_content .childCont").eq(index).find('.childContS').eq(num).html(html); GetGallery(index, num, menuId); }, error: function () { //alert("加载失败"); } }); } //员工建设添加内容-start //员工建设菜单 function GetWorkersBuildMenu(index, parentId) { $.ajax({ type: 'get', url: host + '/zky/zkMenu/selectHeadMenuByParentId?parentId=402881e85137806001513847b3b600ed', success: function (date) { for (var i = 0; i < date[0].subList.length; i++) { $(".tab_content .childCont").eq(index).find(".ajax_joi_sanji").append(""); $(".tab_content .childCont").eq(index).find(".tab_sub_content").append("
"); //ygjs_zj_ajax(index,i, date[0].subList[i].id); switch (date[0].subList[i].id) { case "402881e8513852f701513853cc0a0001": //员工培训 Training(index, i, date[0].subList[i].id); break; case "402881e8513852f70151385436830003": //职业发展 CareerDev(index, i, date[0].subList[i].id); break; case "402881e8513852f7015138546b070005": //文化生活 Cultural(index, i, date[0].subList[i].id); break; default: } }; twolevelS(three); }, error: function () { } }); } //图片-员工天地 function GetGallery(index, num, menuId) { $.ajax({ type: 'get', url: host + '/zky/zkContentInfo/selectContentByMenuId?menuId=' + menuId, success: function (data) { for (var i = 0; i < data[0].imgs.length; i++) { $('.pic a').eq(i).attr('href', data[0].imgs[i]); }; for (var i = 0; i < data[1].imgs.length; i++) { $('.pic img').eq(i).attr('src', data[1].imgs[i]); }; $("a[rel^='lightbox']").picbox({/* Put custom options here */ }, null, function (el) { return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel)); }); }, error: function () { //alert("加载失败"); } }); }