var lineList = [], lineInt = null; $(function(){ $("input[name='dxzph[]']").each(function(index, value){ lineList.push($(value).val()); }); }) function tabChange(obj,id){ $(obj).parent().find('li').removeClass('wlzp_show_tit_cur'); $(obj).attr('class','wlzp_show_tit_cur'); $(".zphnetdiv").addClass("none"); $("#"+id).removeClass("none"); $("#boxtype").val(id); if(id == 'hall'){ $("#ztype").val('resume'); }else{ $("#ztype").val('job'); } window.location.href = "#" + id; } function noresume(){ var pwcf = layer.confirm("您还没有简历,先去创建简历?",function(){ layer.close(pwcf); window.location.href = weburl+'/member/index.php?c=expect&act=add'; }); } function zphend(){ layer.open({ type: 1, title: '提示', closeBtn: 1, border: [10, 0.3, '#000', true], area: ['auto', 'auto'], content: $("#zphend") }); } function clickZphnet(id){ layer.load('执行中,请稍候...',0); $.post(weburl+"/index.php?m=ajax&c=ajaxComjob",{zphnet:1,id:id},function(data){ layer.closeAll(); var data = eval('('+data+')'); if(data.status == 1){ $("#TB_window").show(); $("#joblist").html(); $("#joblist").html(data.html); layui.use(['layer', 'form'], function() { var layer = layui.layer, $ = layui.$, form = layui.form; form.render(); form.on('checkbox(oneChoose)', function (data) { if(!data.elem.checked && $("#checkall").prop("checked")){ $("#checkall").prop("checked", false); form.render("checkbox"); } }); }); var msglayer = layer.open({ type: 1, title: '预定网络招聘会', closeBtn: 1, border: [10, 0.3, '#000', true], area: ['340px', 'auto'], content: $("#TB_window"), cancel: function(){ window.location.reload(); } }); }else{ layer.msg(data.msg,2,8); } }) } function submitzphnet(){ var zid = $("#zid").val(); var jobid = ""; $("input[name=checkbox_job]:checked").each(function(){ if(jobid==""){jobid=$(this).val();}else{jobid=jobid+","+$(this).val();} }); if(!jobid){ layer.msg('请选择参展职位' , 2, 8);return false; }else{ layer.load('执行中,请稍候...',0); $.post(weburl+"/index.php?m=zphnet&c=ajaxZphnet",{zid:zid,jobid:jobid},function(data){ layer.closeAll('loading'); var data = eval('('+data+')'); var status = data.status; if(status == 1){ layer.msg(data.msg, 2, 9, function(){ location.reload(); }); }else if(status == 2){ server_single('zphnet',data.jifen,data.price); $('#zid').val(data.zid); if(data.spid == 1){ layer.msg('当前账户套餐余量不足,请联系主账户增配!' , 2, 8);return false; }else{ firstTab(); var msglayer = layer.open({ type: 1, title: '预定网络招聘会', closeBtn: 1, border: [10, 0.3, '#000', true], area: ['auto', 'auto'], content: $("#tcmsg"), cancel: function(){ window.location.reload(); } }); } }else{ if(data.login == 1){ showlogin('2'); }else{ layer.msg(data.msg, 2, 8); } } }) } } function zphnetLook(id, comid, jobid, url){ layer.load(); var param = { id: id, comid: comid }; if(jobid != ''){ param.jobid = jobid; } $.ajax({ url: weburl + "/index.php?m=zphnet&c=setLook", async: false, data: param, type: 'POST', success:function (data) { layer.closeAll('loading'); window.open(url); } }); } function getComList(){ layer.load(); var zid = $("#zid").val(); var zw = $("#zphnet_zw").val(); var param = { zid: zid, page: page, keyword: searchKeyword, zw: zw }; $.post(weburl + "/index.php?m=zphnet&c=getComList",param, function(data) { layer.closeAll('loading'); if(data){ var data = eval('(' + data + ')'); if(data && data.com){ var comlist = data.com; var spOpen = data.spOpen; if(comlist && comlist.length > 0){ var html = ''; for(var i in comlist){ html += '
'; html += '在线'; html += '
'; html += '
'; html += '
' + comlist[i].comname + '

'+comlist[i].hy_n+' | '+comlist[i].pr_n+' |'+comlist[i].mun_n+'

'; html += '
'; html += '
'; html += '
'; if(sy_chat_open==1){ html += '
'; if(spOpen==1){ if(parseInt(zphetime) <0 ){ html += ' 视频面试'; }else{ html += ' 视频面试'; } } if(parseInt(zphetime) <0 ){ html += '立即沟通'; }else{ html += '立即沟通'; } html+='查看更多岗位' html += '
'; } html += '
'; } $("#comdiv").html(html); $('#nowpage').text(page); lineList = []; $("input[name='dxzph[]']").each(function(index, value){ lineList.push($(value).val()); }); if(typeof sendGetonline != 'undefined'){ sendGetonline(); } clearInterval(lineInt); // 定时更新在线情况 lineInt = setInterval(function(){ if(typeof sendGetonline != 'undefined'){ sendGetonline(); } },60 * 1000); $("html, body").animate( {scrollTop: $("#comlist").offset().top }, {duration: 500,easing: "swing"} ); }else{ lineList = []; } } } }); } function compage(id){ if(id == '1'){ page--; }else{ page++; } if(page < 1){ page = 1; }else if (page > parseInt(comPageAll)){ page = comPageAll; } $(".comPageSelect").removeAttr('selected'); $("#compage_"+page).attr('selected','selected'); getComList(); } function tocompage(topage){ if(topage){ page = topage; } if(page < 1){ page = 1; }else if (page > parseInt(comPageAll)){ page = comPageAll; } getComList(); } function pageHtmlShow(){ event.stopPropagation(); $('#pagehtml').toggle(); } // 网络招聘会详细页邀请视频面试 function spdiv(zid, fuid, usertype, utype) { if(utype == '1'){ if(usertype == ''){ showlogin('2'); }else if (usertype == '2'){ layer.load(); $.post(weburl + "/index.php?m=zphnet&c=isJoin",{zid: zid}, function(data) { layer.closeAll('loading'); var data = eval('(' + data + ')'); if(data.code==1){ if(data.status == '1'){ window.localStorage.setItem("spviewinvite", "1"); window.location.href = weburl + '/member/index.php?c=spview&act=webrtc&roomer=1&zid=' + zid + '&fuid=' + fuid; }else if(data.status == '2'){ layer.msg('参会报名审核未通过,请联系管理员',2,8); }else{ layer.msg('参会报名审核中',2,8); } }else{ layer.confirm('您尚未参会,请先报名!',function(){ clickZphnet(zid) }); } }); }else{ layer.msg('非企业用户,暂无视频权限!',2,8); } }else if(utype == '2'){ if(usertype == ''){ showlogin('1'); }else if (usertype == '1'){ window.localStorage.setItem("spviewinvite", "1"); window.location.href = weburl + '/member/index.php?c=spview&act=webrtc&roomer=1&zid=' + zid + '&fuid=' + fuid; }else{ layer.msg('非个人用户,暂无视频权限!',2,8); } } }