yunset("uid",$this->uid); $this->seo('reward'); $this->yunset("headertitle","赏金职位"); $this->yunset("topplaceholder","请输入职位关键字,如:会计..."); $this->yuntpl(array('wap/reward')); } function share_action(){ $packM = $this->MODEL('pack'); $shareJob = $packM->getShareJob(); $this->yunset("uid",$this->uid); $this->yunset("rows",$shareJob); $this->seo('reward'); $this->yunset("headertitle","分享赚赏金"); if(is_weixin()){ $this->yunset('isweixin','1'); } $this->yuntpl(array('wap/rewardshare')); } function shareshow_action(){ //拉取微信OPENID $packM = $this->MODEL('pack'); if(is_weixin()){ $wxUser = $packM->getWxOpenid(Url('wap').'index.php?c=reward&a=shareshow&id='.$_GET['id'].'&u='.$_GET['u']); } $shareJobOne = $packM->getShareJobOne($_GET['id']); if(empty($shareJobOne)){ header('Location:'.Url('wap',array('c'=>'job','a'=>'comapply','id'=>$_GET['id']))); }else{ //分享赏金发放 if($wxUser['openid'] && !empty($shareJobOne)){ $packM->shareJobLook($shareJobOne,$_GET['u'],$wxUser['openid']); } $this->yunset('title',$shareJobOne['salary'].' '.$shareJobOne['cityname'].$shareJobOne['com_name'].'现在招聘 '.$shareJobOne['name'].', 赶紧来看看吧!'); $this->yunset('description',$shareJobOne['job_desc']); if($this->uid){ $this->yunset("shareurl",Url('wap',array('c'=>'reward','a'=>'shareshow','id'=>$shareJobOne['id'],'u'=>$this->uid))); }else{ $this->yunset("shareurl",Url('wap',array('c'=>'reward','a'=>'shareshow','id'=>$shareJobOne['id']))); } if($this->uid && $this->usertype && $this->usertype!=1){ $typename = array('2'=>'企业身份','3'=>'猎头账户','4'=>'培训账户'); $this->yunset("usertypemsg","您当前帐号名为:".$this->username.',账户属于'.$typename[$this->usertype].'。'); } $this->yunset("row",$shareJobOne); $data['job_name'] = $shareJobOne['name'];//职位名称 $data['company_name'] = $shareJobOne['com_name'];//公司名称 $data['industry_class'] = $shareJobOne['hy_n'];//所属行业 $data['job_class'] = $shareJobOne['job_one'].",".$shareJobOne['job_two'].",".$shareJobOne['job_three'];//职位名称 $data['job_desc'] = $this->GET_content_desc($shareJobOne['description']);//描述 $this->data = $data; $this->seo('rewardshare'); $this->yunset("headertitle","分享赚赏金"); $this->yuntpl(array('wap/rewardshareshow')); } } function ajaxreward_action(){ if($_GET['jobid']){ $packM = $this->MODEL('pack'); $return = $packM->veriftyUser($_GET['jobid'],$this->uid,$this->usertype); if($return['error']=='1' || $return['error']=='7' ){ $reward = $packM->getRewardJobInfo($return['data']['jobid']); $this->yunset('error',$return['error']); $this->yunset('rdata',$return['data']); $this->yunset('reward',$reward); }elseif($return['error']=='12' || $return['error']=='11'){ $this->wapheader('member/index.php?c=talentreward&jobid='.$_GET['jobid']); }else{ if($return['error']<1){ $data['msg'] = '请先登录个人账户!'; $data['url'] = Url('wap',array('c'=>'login')); }elseif($return['error']=='2'){ $data['msg'] = '请先创建一份合适的简历!'; $data['url'] = $this->config['sy_wapdomain'].'/member/index.php?c=resume'; }elseif($return['error']=='10'){ $data['msg'] = '您的简历正在审核,暂无法申请!'; $data['url'] = $this->config['sy_wapdomain'].'/member/index.php?c=resume'; }else{ $data['msg'] = $return['msg']; $data['url'] = Url('wap',array('c'=>'job','a'=>'comapply','id'=>$_GET['jobid'])); } $this->ACT_msg_wap($data['url'],$data['msg'], 1, 3); } $this->yunset("backurl",Url('wap',array('c'=>'job','a'=>'comapply','id'=>$_GET['jobid']))); $this->yunset("headertitle","赏金申请"); $this->yunset("jobid",$_GET['jobid']); $this->seo('reward'); $this->yuntpl(array('wap/sqreward')); } } function sqreward_action(){ if($_GET['jobid']){ $packM = $this->MODEL('pack'); $return = $packM->sqRewardJob((int)$_GET['jobid'],$this->uid,$this->usertype); if($return['error']=='1'){ //5.0推送 $pushM = $this -> MODEL('push'); $pushM -> pushMsg('rewardNewresume',array('fuid' => $this->uid,'puser' => $return['comuid'],'tid' => $return['tid'],'jobid' => $_POST['jobid'])); $data['msg'] ='申请成功!'; $data['url'] = Url('wap',array('c'=>'job','a'=>'comapply','id'=>(int)$_GET['jobid'])); $this->yunset("layer",$data); }else{ if($return['error']<1){ $data['msg'] = '请先登录个人账户!'; $data['url'] = Url('wap',array('c'=>'login')); }elseif($return['error']=='2'){ $data['msg'] = '请先创建一份合适的简历!'; $data['url'] = $this->config['sy_wapdomain'].'/member/index.php?c=resume'; }elseif($return['error']=='10'){ $data['msg'] = '您的简历正在审核,暂无法申请!'; $data['url'] = $this->config['sy_wapdomain'].'/member/index.php?c=resume'; }elseif($return['error']=='7'){ $data['msg'] = '您暂不符合相关要求!'; $data['url'] = Url('wap',array('c'=>'job','a'=>'comapply','id'=>(int)$_GET['jobid'])); }else{ $data['msg'] = $return['msg']; $data['url'] = Url('wap',array('c'=>'job','a'=>'comapply','id'=>$_GET['jobid'])); } $this->yunset("jobid",$_GET['jobid']); } $this->yunset("layer",$data); $this->yunset("backurl",Url('wap',array('c'=>'job','a'=>'comapply','id'=>$_GET['jobid']))); $this->yunset("headertitle","赏金申请"); $this->yuntpl(array('wap/sqreward')); } } } ?>