<template>
  <div id="questionInfo">
    <el-row>
      <el-col :span="24" class="main">
        <el-col :span="24" class="title textOver">
          {{ info.title }}
        </el-col>
        <el-col :span="24" class="other">
          <span>发布时间：{{ info.create_date || '暂无' }}</span>
          <span>信息来源：{{ info.origin || '暂无' }}</span>
        </el-col>
        <el-col :span="24" class="image">
          <el-image :src="info.img_path"></el-image>
        </el-col>
        <el-col :span="24" class="content">
          <p v-html="info.content"></p>
        </el-col>
        <el-col :span="24" class="link">
          <el-link :href="info.file_path" :underline="false">附件下载</el-link>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { mapState, createNamespacedHelpers } from 'vuex';
export default {
  name: 'questionInfo',
  props: {
    info: { type: Object },
  },
  components: {},
  data: function() {
    return {};
  },
  created() {},
  methods: {},
  computed: {
    ...mapState(['user']),
  },
  watch: {},
};
</script>

<style lang="less" scoped>
.main {
  .title {
    font-size: 25px;
    padding: 15px 0;
    text-align: center;
    color: #005293;
  }
  .other {
    text-align: center;
    font-size: 18px;
    margin: 0 0 15px 0;
    span {
      padding: 0 10px;
    }
  }
  .image {
    text-align: center;
    height: 300px;
    margin: 0 0 15px 0;
    .el-image {
      width: 50%;
      height: 300px;
      overflow: hidden;
    }
  }
  .content {
    margin: 0 0 15px 0;
  }
  .link {
    margin: 0 0 15px 0;
    .el-link {
      font-size: 16px;
    }
  }
}
</style>
