zj
2024-06-03 89d48809779ae41f8712539584798d5900b64b78
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<template>
  <el-container>
    <el-header>
      <home-header></home-header>
    </el-header>
    <el-container class="main-wrapper">
      <el-main>
 
        <div class="introduce">
          <h2 class="title text-center">{{ artList.artTitle }}</h2>
          <div class="introduce-body">
 
            <p class="text-center origin">
              {{ artList.author }} {{ artList.addTime | timeFormat }}
              <span class="pull-right"><i class="iconfont icon-yanjing"></i>{{ artList.hitTimes ? artList.hitTimes : 0
              }}</span>
            </p>
            <div class="summary">
              <pre>{{ artList.artSummary }}</pre>
            </div>
            <div class="risk-box">
              <img class="cert-img" :src="artList.artImg" alt="">
            </div>
            <div class="content">
              <pre>{{ artList.artCnt }}</pre>
            </div>
            <div class="bottom-box ">
              <p class="pull-right">{{ siteInfo.siteName }}</p>
              <div class="clearfix">
                <p class="pull-right">{{ artList.addTime | timeFormat }}</p>
              </div>
            </div>
          </div>
        </div>
        <home-footer :siteInfo="siteInfo"></home-footer>
      </el-main>
    </el-container>
  </el-container>
</template>
 
<script>
import HomeHeader from '../../../components/HeaderOrder'
import HomeFooter from '../../../components/Footer'
import * as api from '../../../axios/api'
 
export default {
  components: {
    HomeHeader,
    HomeFooter
  },
  props: {},
  data() {
    return {
      bannerList: [],
      market: {}, // 大盘详情
      artList: {}, // 公告列表
      siteInfo: {},
      timer: null
    }
  },
  watch: {},
  computed: {},
  mounted() {
    this.getArtList()
    this.getInfoSite()
  },
  methods: {
    async getInfoSite() {
      // 获取大盘指数
      let result = await api.getInfoSite()
      if (result.status === 0) {
        this.siteInfo = result.data
      } else {
        this.$message.error(result.msg)
      }
    },
    async getArtList() {
      // 获取公告详情
      let result = await api.getArtDetail({ artId: this.$route.query.id })
      // let result = await api.getArtList()
      if (result.status === 0) {
        this.artList = result.data
      } else {
        this.$message.error(result.msg)
      }
    }
  }
}
</script>
<style lang="less" scoped>
.introduce {
  padding: 20px;
  min-height: 400px;
  width: 1200px;
  margin: 40px auto;
 
  .title {
    font-size: 20px;
    line-height: 38px;
  }
 
  .introduce-body {
    line-height: 28px;
    padding-top: 20px;
    text-indent: 2em;
    font-size: 14px;
    width: 800px;
    margin: 0 auto;
 
    p {
      margin-bottom: 10px;
    }
 
    .origin {
      font-size: 12px;
      color: #9c9c9c;
      margin: 10px 0;
    }
 
    .content {
      font-size: 18px;
      text-indent: 2em;
      text-indent: 2em;
      margin-top: 20px;
    }
 
    .bottom-box {
      padding-top: 60px;
    }
  }
 
  .risk-box {
    margin-top: 25px;
    text-align: center;
  }
 
  .cert-img {
    max-height: 300px;
  }
 
}
 
pre {
  white-space: pre-wrap;
  word-wrap: break-word;
}
</style>