job.html 5.0 KB
Newer Older
李少辉-开发者's avatar
李少辉-开发者 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <!-- <meta name="csdn-share-wx" content='{"title":"CSDN-专业IT技术社区","imgUrl":"https://csdnimg.cn/public/favicon.ico","desc":"描述信息"}'> -->
  <link rel="stylesheet" href="css/reset.css?rev=@@hash">
  <link href="//csdnimg.cn/public/favicon.ico" rel="SHORTCUT ICON">
  <!-- CSS reset -->
  <link rel="stylesheet" href="css/style.css?rev=@@hash">
  <script src="js/modernizr.js?rev=@@hash"></script>
  <title></title>
  <style>
    body{background-color: #F5F6F7}
  </style>
</head>

<body>
  <header class="cd-header header">
    <div class="container-nav">
      <div id="cd-logo">
        <a href="https://www.csdn.net" target="_blank">
          <img src="img/csdn-logo-new.svg" alt="Logo">
        </a>
      </div>
      <nav class="cd-main-nav">
        <ul>
          <!-- inser more links here -->
          <!-- @@loop('nav_job.html',"js/header.json") -->
        </ul>
      </nav>
    </div>
    <!-- cd-main-nav -->
  </header>
  <div class="job-describe">
    <div class="job-title">
      <div class="container">
        <h2 class="job-name"></h2>
      </div>
    </div>
    <div class="container jobs_dec clearfix">
      <div class="job-contain">
        <div class="job_name_area clearfix">
          <img class="job_img" alt="">
          <h2 class="job-name-dec"></h2>
          <p><span class="job_are"></span> &nbsp; | &nbsp; <span class="job-name"></span></p>
        </div>
        <h2 class="gwzz">岗位职责</h2>
        <ol class="job-duty">
        </ol>
        <h2 class="rzyq">任职要求</h2>
        <ol class="job-require">
        </ol>
        <!-- <h2 class="jfx">加分项</h2>
        <ol class="job-pluse" id="jfx_ol">
        </ol> -->
        <!--<h2 class="tgzl">你需要提供的材料</h2>-->
        <!--<ol class="job-material">-->
        <!--</ol>-->
        <h2 class="lxfs">联系方式</h2>
        <p>*邮件标题注明:应聘<span class="job-name"></span> *邮箱地址:hrzhaopin@csdn.net</p>
        <a href="mailto:hrzhaopin@csdn.net" class="send-resume">发送简历</a>
      </div>

      <!--hot-->
      <div class="hot_jobs">
        <h3>热门岗位</h3>
        <ul class="recruit job-recruit-hot">
          @@loop('jobs-right.html',"js/jobs_description_.json")
        </ul>
      </div>
    </div>

    <!--other-->
    <div class="container jobs_other">
      <h2 class="qtzw">其他职位</h2>

      <ul class="recruit job-recruit">
        @@loop('jobs.html',"js/jobs_description_.json")
      </ul>
      <p class="btn_box"><a href="javascript:" >查看更多</a></p>
    </div>

  </div>
</body>


</html>
<script src="js/jquery-1.11.0.min.js"></script>
<script src="https://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
<script src="https://g.csdnimg.cn/sharewx/1.1.9/sharewx.js"></script>
<script src="js/main.js?rev=@@hash"></script>
<script>
  $(function () {
    var search = decodeURI(decodeURI(window.location.search.substr(1)))
    $.getJSON("js/jobs_description_.json", function (data) {
      var newArr = data.filter(function (s) {
        return s.id === search;
      });
      var title = newArr[0].title
      var duty = newArr[0].duty
      var requirement = newArr[0].requirement
      var pluse = newArr[0].pluse
      var material = newArr[0].material
      var area = newArr[0].area
      var img = newArr[0].img
      //var other_duty = newArr[0].other_duty
      $(".job-name").text(title)
      $(".job-name-dec").text(title)
      $(".job_are").text(area)
      $(".job_img").attr("src", img);
      getJob(duty, 'job-duty')
      getJob(material, 'job-material')
      getJob(pluse, 'job-pluse')
      getJob(requirement, 'job-require')
    })

    function getJob(arr, id) {
      var newArr = '';
      for (var i = 0; i <= arr.length - 1; i++) {
        newArr += "<li>" + arr[i] + "</li>"
        $("." + id).html(newArr)
      }
    }

  }) 

</script>
  <script type="text/javascript">

    $('.btn_box a').click(function(){
     $('.job-recruit').height('auto');
     $(this).hide()
   })

    if (window.csdn.sharewx.isWeiXin()) {
        window.csdn.sharewx.getConfig()
        $(document).ready(function(){
            var shareImgUrl = ''
            if($(".article_content") && $(".article_content").find("img").length > 0 && $(".article_content img").first().data('src')){
                shareImgUrl = $(".article_content img").first().data('src')
            }
            var shareData = {
                title : "wepy.js微信小程序报错\'wx\' is not defined  no-undef",
                desc : "\'wx\'isnotdefined&nbsp;no-undef是eslint报错吧。禁用eslint或者给eslint加上全局变量wx在.eslintrc.js文件中加入以下内容globals:{wx:true},",
                link : window.location.href,
                imgUrl: shareImgUrl,
            }
            window.csdn.sharewx.onMenuShare(shareData)
        })
    }
</script>