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 += '
'+comlist[i].hy_n+' | '+comlist[i].pr_n+' |'+comlist[i].mun_n+'