锘?// /// // 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"); } } //鏍规嵁鐖惰彍鍗昳d鑾峰彇瀛愮骇鑿滃崟鍒楄〃-灏佽鍑芥暟 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 + "浜裹/dd>"; 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 + "浜裹/dd>"; //html += "
"; //html += "
"; if ((i + 1) == date.length) { html += "

娉細鏈€鏂拌亴浣嶆嫑鑱樻暚璇峰叧娉ㄥ叕鍙稿畼鏂瑰悎浣滅綉绔欙紝鍖栧伐鑻辨墠缃戙€佹櫤鑱旀嫑鑱樼綉銆佸簲灞婄敓姹傝亴缃戯紝鍏朵粬缃戠珯杞浇淇℃伅闈炴湰鍏徃鍙戝竷锛屽垏鍕挎姇閫掋€侟/p>"; } $(".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("鍔犺浇澶辫触"); } }); }