jhzh
2026-01-04 d73b91becc044ee107b94668504f6286be00d622
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
148
149
150
151
152
153
154
155
156
157
158
159
160
<template>
  <div class="wrapper">
    <div class="header">
      <mt-header :title="$t('jy75')">
        <router-link to="/home" slot="left">
          <mt-button icon="back"> {{ $t("jy74") }}</mt-button>
        </router-link>
      </mt-header>
    </div>
    <div class="introduce">
      <h2 class="title text-center">{{ artList.artTitle }}</h2>
      <div class="introduce-body">
        <p class="text-center origin">
          {{ artList.author }} {{ new Date(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">
              {{ new Date(artList.addTime) | timeFormat }}
            </p>
          </div>
        </div>
      </div>
    </div>
    <div class="alert-box">
      {{ $t("jy76") }}
    </div>
  </div>
</template>
 
<script>
import { Toast } from "mint-ui";
import * as api from "@/axios/api";
 
export default {
  components: {},
  props: {},
  data() {
    return {
      artList: "",
      siteInfo: {}
    };
  },
  watch: {},
  computed: {},
  created() {},
  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 });
      if (+result.status === 0) {
        this.artList = result.data;
      } else {
        Toast(result.msg);
      }
    }
  }
};
</script>
<style lang="less" scoped>
.introduce {
  // color: #fff;
  min-height: 400px;
  width: 100%;
  margin: 10px auto;
 
  .title {
    font-size: 20px;
    line-height: 38px;
  }
 
  .introduce-body {
    // color: #666;
    line-height: 28px;
    font-size: 14px;
    width: 92%;
    margin: 0 auto;
 
    p {
      margin-bottom: 10px;
    }
 
    .origin {
      font-size: 12px;
      // color: #9c9c9c;
    }
 
    .content {
      font-size: 18px;
      text-indent: 2em;
      text-indent: 2em;
      margin-top: 20px;
    }
 
    .bottom-box {
      padding-top: 0.5rem;
 
      p {
        margin-bottom: 0.1rem;
      }
    }
  }
 
  .risk-box {
    margin-top: 25px;
    text-align: center;
  }
 
  .cert-img {
    max-height: 300px;
    max-width: 100%;
  }
}
 
pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 0.24rem;
  // color:#ccc;
  background: none;
  overflow: inherit;
  line-height: 0.36rem;
}
 
.alert-box {
  color: #666;
  font-size: 0.24rem;
  background: #1e2125;
  padding: 0.2rem;
  line-height: 0.32rem;
}
 
.wrapper {
  padding: 0;
}
</style>