<template>
  <div id="info-1">
    <el-row>
      <el-col :span="24" class="main">
        <el-col :span="24" class="one">
          {{ info.title }}
        </el-col>
        <el-col :span="24" class="two">
          <span>
            信息来源：<span>{{ info.origin }}</span>
          </span>
          <span>
            发布时间：<span>{{ info.create_time }}</span>
          </span>
        </el-col>
        <el-col :span="24" class="thr">
          <p v-html="info.content"></p>
        </el-col>
        <el-col :span="24" class="four" v-if="info.file_url && info.file_url.length > 0">
          <el-col :span="24" class="four_1">附件</el-col>
          <el-col :span="24" class="four_2">
            <el-link :underline="false" :href="item.uri" target="_blank" v-for="(item, index) in info.file_url" :key="index">{{ item.name }}</el-link>
          </el-col>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { mapState, createNamespacedHelpers } from 'vuex';
export default {
  name: 'info-1',
  props: {
    info: { type: Object },
  },
  components: {},
  data: function () {
    return {};
  },
  created() {},
  methods: {},
  computed: {
    ...mapState(['user']),
  },
  metaInfo() {
    return { title: this.$route.meta.title };
  },
  watch: {
    test: {
      deep: true,
      immediate: true,
      handler(val) {},
    },
  },
};
</script>

<style lang="less" scoped>
.main {
  .one {
    text-align: center;
    font-size: 20px;
    margin: 15px 0;
  }
  .two {
    text-align: center;
    margin: 0 0 15px 0;
    span {
      font-size: 14px;
      color: #858585;
      span {
        color: #000000;
      }
    }
  }
  .thr {
    margin: 0 0 15px 0;
  }
  .four {
    .four_1 {
      font-weight: bold;
      margin: 0 0 5px 0;
    }
  }
}
</style>
