<template>
  <div id="corpDetail">
    <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>
        </el-col>
      </el-col>
      <el-col :span="24" class="qiye">
        <h3 style="border-left:5px solid #0457c7;padding:0 10px;">企业信息</h3>
        <el-col :span="24">
          <el-col :span="3" style="padding: 25px 0;">
            <el-image style="width:150px;height:107px;" :src="corpDetails.logo_url"></el-image>
          </el-col>
          <el-col :span="20">
            <el-col :span="24" class="title">
              <p>{{ corpDetails.corpname }}</p>
            </el-col>
            <el-col :span="8" class="title"> 行业：{{ corpDetails.industry }} </el-col>
            <el-col :span="10" class="title"> 规模：{{ corpDetails.scale }} </el-col>
            <el-col :span="8" class="title"> 城市：{{ corpDetails.province }}-{{ corpDetails.city }} </el-col>
            <el-col :span="10" class="title"> 地址：{{ corpDetails.address }} </el-col>
            <el-col :span="8" class="title"> 联系电话：{{ corpDetails.job_tel }} </el-col>
            <el-col :span="24" class="title"> 邮箱：{{ corpDetails.job_email }} </el-col>
            <el-col :span="24" class="title"> 注册资金：{{ corpDetails.reg_capital }} </el-col>
            <el-col :span="24" class="title">
              企业标签：<el-tag v-for="(item, index) in corpDetails.tags" :key="index">{{ item }}</el-tag></el-col
            >
          </el-col>
        </el-col>
      </el-col>
      <el-col :span="24" class="jieshao">
        <h3 style="border-left:5px solid #0457c7;padding:0 10px;">企业介绍</h3>
        <el-col :span="24">
          <p>{{ corpDetails.intro }}</p>
        </el-col>
      </el-col>
      <el-col :span="24" class="zhiwei">
        <h3 style="border-left:5px solid #0457c7;padding:0 10px;">招聘职位</h3>
        <el-col :span="24">
          <el-row class="rowStyle" v-for="(item, index) in jobslist" :key="index" :gutter="10">
            <el-col :span="16">
              <el-link class="job__name" :underline="false" @click="turnToJobs(item.id)">
                <span title="查看职位">{{ item.job_name ? item.job_name : '' }}</span>
              </el-link>
            </el-col>
            <el-col class="money" :span="4">
              {{ item.salary ? item.salary.text : '' }}
            </el-col>
            <el-col :span="4" style="text-align:center;"> 招聘人数：{{ item.job_number | jobNum }} </el-col>
            <el-col :span="16"> 招聘专业 : {{ item.zy_req ? item.zy_req : '' }} </el-col>
            <el-col :span="8"> {{ item.xl_req ? item.xl_req : '' }} | {{ item.city ? item.city : '' }} </el-col>
          </el-row>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'corpDetail',
  props: {
    corpDetails: null,
    jobslist: null,
  },
  components: {},
  data: () => ({}),
  created() {},
  computed: {},
  methods: {},
};
</script>

<style lang="less" scoped>
p {
  padding: 0;
  margin: 0;
}
.title {
  font-size: 14px;
  color: #333;
  padding: 2px 10px;
}
.jieshao p {
  padding: 0 15px;
}
.rowStyle {
  padding: 10px;
  border-bottom: 1px dashed #ccc;
}
.job__name {
  font-size: 18px;
}
</style>
