$(function(){ getResumeDtail(); $('#resume_detail').click(function() { $('#nowresume').fadeToggle(100); }); // 非主动方 if(roomer == ''){ var isspview = window.localStorage.getItem("isspview"); setTimeout(function(){ if(isspview && isspview == '1'){ sendCommentAllow(); joinRoom(); window.localStorage.setItem("isspview", "2"); } },1000); } }) function getResumeDtail(){ if(viewuid != ''){ loadlayer(); $.post("index.php?c=spview&act=getResumeDtail", { 'uid': viewuid }, function(data) { layer.closeAll(); if(data){ var res = eval('(' + data + ')'); if(res.resume){ var resume = res.resume; if(roomer == '1'){ $("#reinvite").attr('onclick','sendComment("'+ resume.uid +'")'); // 发送邀请视频面试 var spviewinvite = window.localStorage.getItem('spviewinvite'); if(spviewinvite == '1'){ sendComment(resume.uid); sendWxNotice('',''+resume.uid+'',''+jid+''); window.localStorage.setItem("spviewinvite", "2"); }else{ $("#reinvite").show(); } } var uhtml = ''; uhtml += '
' + resume.uname + ' 面试中
'; uhtml += '
'; uhtml += '
期望职位:' + resume.r_name + '
'; uhtml += '
基本信息:' + resume.age + '岁,' + resume.exp_n + '工作经验,' + resume.edu_n + '学历
'; uhtml += '
'; $('#nowuser').html(uhtml); var rhtml = '
基本信息
'; rhtml += '
'; rhtml += '
' + resume.uname + '/' + resume.sex_n + '
'; rhtml += '
'; rhtml += resume.age + '岁'; rhtml += resume.edu_n + '学历'; rhtml += resume.exp_n + '工作经验'; rhtml += '
'; rhtml += '
'; rhtml += '
求职意向
'; rhtml += '
'; rhtml += '
' + resume.r_name + '
'; rhtml += '
' + resume.salary + '
'; rhtml += '
' + resume.jobstatus + '
'; rhtml += '
' + resume.cityname + '
'; rhtml += '
'; if (resume.user_work && resume.user_work.length > 0) { var work = resume.user_work; rhtml += '
工作经历
'; for (let i in work) { rhtml += '
'; rhtml += '
' + work[i].name + ' ' + work[i].date_n + '
'; rhtml += '
' + work[i].title + '
'; rhtml += '
' + work[i].content + '
'; rhtml += '
'; } } if (resume.user_edu && resume.user_edu.length > 0) { var edu = resume.user_edu; rhtml += '
教育经历
'; for (let i in edu) { rhtml += '
'; rhtml += '
' + edu[i].name + ' ' + edu[i].date_n + '
'; rhtml += '
' + edu[i].education_n + '
'; rhtml += '
' + edu[i].specialty + '
'; rhtml += '
'; } } if (resume.user_xm && resume.user_xm.length > 0) { var project = resume.user_xm; rhtml += '
项目经历
'; for (let i in project) { rhtml += '
'; rhtml += '
' + project[i].name + ' ' + project[i].date_n + '
'; rhtml += '
' + project[i].title + '
'; rhtml += '
' + project[i].content + '
'; rhtml += '
'; } } } $('#nowresume').html(rhtml); } }); } } function spviewEndNow(){ layer.confirm('确定结束与对方的面试?', { btn: ['确定', '取消'] }, function() { document.getElementById('reinvite').style.display = 'none'; if(commentState == 'commenting'){ // 正在视频中需要结束当前视频 leaveRoom(); } var loadi = loadlayer(); var post = {} post.startTime = startTime; post.endTime = new Date().getTime(); post.splogid = splogid; post.spend = 1; post.roomer = roomer; $.post("index.php?c=spview&act=splog", post, function(data) { if(document.referrer != ''){ if(document.referrer.indexOf('webrtc') > -1){ window.location.href = weburl + '/member/'; }else{ history.back(); } }else{ window.location.href = weburl + '/member/'; } }); }); } function saveZreamrk(){ var content = $("#remark").val(); var splogid = splogid; if(splogid != '' && parseInt(splogid) > 0){ if($.trim(content) == ''){ return layer.msg('请填写备注', 2, 8); } if(viewuid == ''){ return layer.msg('当前无人面试,请先邀请面试', 2, 8); } var loadi = loadlayer(); $.post("index.php?c=spview&act=webrtcRemark", { 'splogid':splogid, 'zid': zid, 'uid': viewuid, 'content': content }, function(data) { data = eval('(' + data + ')'); layer.closeAll(); var laytype = 9; if(data.error!='1'){ laytype = 8; } layer.msg(data.msg, 2, laytype); }); }else{ return layer.msg('请先开始视频面试', 2, 8); } }