<template>
  <div id="jobInfo">
    <el-row>
      <el-col :span="24" class="top">
        <el-col :span="24">
          <el-breadcrumb separator-class="el-icon-arrow-right">
            <el-breadcrumb-item :to="{ path: '/' }"
              ><i class="el-icon-s-home"></i>
              <span>网站首页</span>
            </el-breadcrumb-item>
            <el-breadcrumb-item><span>招聘职位</span></el-breadcrumb-item>
            <el-breadcrumb-item class="webDetail">详情</el-breadcrumb-item>
          </el-breadcrumb>
        </el-col>
      </el-col>
      <el-col :span="24" class="jobInfo">
        <!-- <span v-if="jobInfo && jobInfo.id"> -->
        <el-card class="cards">
          {{ jobInfo.job_name }}
        </el-card>
        <el-row style="margin-top;1rem;">
          <el-col :span="22" style="padding:10px;">
            <span style="color:#f40;font-size:18px;">
              <i class="el-icon-coin"></i>
              <!-- {{ jobInfo.salary.text }} -->
              {{ jobInfo | getSalary }}
            </span>
            <span class="row_icon">
              <i class="el-icon-location"></i>
              {{ jobInfo.city }}
            </span>
            <span class="row_icon">
              <i class="el-icon-collection">{{ jobInfo.xl_req }}</i>
            </span>
          </el-col>
        </el-row>
        <el-row>
          <el-col style="padding: 5px 10px;" :span="24">
            职位诱惑: {{ jobInfo && jobInfo.job_tag ? jobInfo.job_tag : '绩效奖金 岗前培训 节日礼物 扁平管理 年度旅游 岗位晋升 带薪年假 餐补 股票期权 ' }}
          </el-col>
          <el-col style="padding:5px 10px;" :span="24"> 薪酬福利: {{ jobInfo && jobInfo.welfare ? jobInfo.welfare : '五险一金 ' }} </el-col>
          <el-col style="padding:5px 10px;" :span="24"> 截止时间: {{ jobInfo && jobInfo.end_date ? jobInfo.end_date : '2017年11月22日 ' }} </el-col>
        </el-row>
        <el-col :span="24" class="miaoshu">
          <h3 style="border-left:5px solid #0457c7;padding:0 10px;">职位描述</h3>
          <el-col :span="24">
            <p>{{ jobInfo.job_desc }}</p>
          </el-col>
        </el-col>
        <el-col :span="24" class="jieshao">
          <h3 style="border-left:5px solid #0457c7;padding:0 10px;">单位介绍</h3>
          <el-col>
            <p>{{ corpsInfo.intro }}</p>
          </el-col>
        </el-col>
        <!-- </span> -->
      </el-col>
    </el-row>
  </div>
</template>

<script>
import _ from 'lodash';
export default {
  name: 'jobInfo',
  props: {
    jobInfo: null,
    corpsInfo: null,
  },
  components: {},
  data: () => ({}),
  created() {},
  computed: {},
  methods: {},
  filters: {
    getSalary(data) {
      return _.get(data, `salary.text`);
    },
  },
};
</script>

<style lang="less" scoped>
p {
  padding: 0;
  margin: 0;
}
.top {
  padding: 10px 0;
}
.cards {
  padding: 10px 0;
  background: #0457c7;
  color: #fff;
  font-size: 20px;
}
.miaoshu p {
  padding: 10px;
}
.jieshao p {
  padding: 10px;
}
</style>
