<template>
  <div id="jobfair">
    <el-col :span="24" class="list" @click.native="$router.push({ path: '/jobfairDetail', query: { id: data.id } })">
      <el-col :span="20" class="title">
        <p class="textOver tit"><span class="dian"></span>{{ data.title }}</p>
        <p class="textOver"><span class="dian"></span>地址:{{ data.city }}{{ data.address }}</p>
        <p class="textOver"><span class="dian"></span>举办方:{{ data.organizer }}</p>
      </el-col>
      <el-col :span="4" class="date">{{ data.time }}</el-col>
    </el-col>
  </div>
</template>

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

<style lang="less" scoped>
p {
  padding: 0;
  margin: 0;
}
.textOver {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dian {
  display: inline-block;
  width: 4px;
  height: 4px;
  background-color: #4f4f4f;
  border-radius: 90px;
  margin: 5px 8px;
}
.title {
  padding: 10px 0;
}
.title p {
  font-size: 16px;
  color: #4f4f4f;
}
.date {
  font-size: 14px;
  color: #323131;
  text-align: right;
  padding: 10px 0;
}
.list:hover {
  cursor: pointer;
}
</style>
