<template>
  <div id="detail">
    <el-row>
      <el-col :span="24" class="detail" :style="`border-color:${Color}`">
        <el-col :span="24" class="topInfo" :style="`border-color:${Color}`">
          <el-col :span="8" class="top">
            <p :style="`color:${Color}`">{{ title }}</p>
          </el-col>
          <el-col :span="16" class="bread">
            <el-breadcrumb separator-class="el-icon-arrow-right">
              <el-breadcrumb-item>您当前所在位置</el-breadcrumb-item>
              <el-breadcrumb-item :to="{ path: '/' }">网站首页</el-breadcrumb-item>
              <el-breadcrumb-item>信息列表</el-breadcrumb-item>
              <el-breadcrumb-item>信息详细</el-breadcrumb-item>
            </el-breadcrumb>
          </el-col>
        </el-col>
        <el-col :span="24" class="info">
          <el-col :span="24" class="image" v-if="detailInfo.pic">
            <el-image style="width:769px;height:443px;" :src="detailInfo.pic"></el-image>
          </el-col>
          <el-col :span="24" class="title">
            <p>{{ detailInfo.title }}</p>
          </el-col>
          <el-col :span="24" class="date">
            发布时间： {{ detailInfo.meta && detailInfo.meta.createdAt ? new Date(detailInfo.meta.createdAt).toLocaleDateString() : '' || '' }}</el-col
          >
          <el-col :span="24" class="content">
            <p v-html="detailInfo.content"></p>
          </el-col>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'detail',
  props: {
    detailInfo: null,
    Color: null,
    title: { type: String, default: '就业动态' },
  },
  components: {},
  data: () => ({}),
  created() {},
  computed: {},
  methods: {},
};
</script>

<style lang="less" scoped>
p {
  padding: 0;
  margin: 0;
}
.detail {
  border-left: 1px solid;
  min-height: 1020px;
  padding: 0 15px;
}
.topInfo {
  height: 47px;
  line-height: 47px;
  border-bottom: 2px solid;
}
.top {
  padding: 0 10px;
}
.top p {
  font-size: 24px;
}
.bread {
  padding: 16px 0px 16px 220px;
}
.info {
  text-align: center;
  margin: 20px 0 0 0;
}
.info .image {
  margin: 20px 0;
}
.info .title {
  padding: 10px 0;
}
.info .title p {
  font-size: 24px;
  color: #333;
}
.info .date {
  font-size: 14px;
  color: #666666;
  padding: 20px 0;
}
.info .content p {
  font-size: 14px;
  color: #5b5b5b;
  text-indent: 2rem;
  text-align: left;
  line-height: 30px;
}
</style>
