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
| <template>
| <view class="container">
| <text class="title">{{info.title}}</text>
| <text class="sub-title">{{info.articleAuthor}}<text class="ml-10">{{info.createtiem}}</text></text>
| <view class="content" v-html="info.content"></view>
| </view>
| </template>
|
| <script>
| export default{
| data(){
| return{
| info: {}
| }
| },
| onLoad(options) {
| this.loadInfo(options.id)
| },
| methods:{
| loadInfo(id){
| this.$httpUtils.request('/api/know/findArticleDetail/'+id).then((res) => {
| if(res.status == 200){
| this.info = res.mapInfo.article
| }
| })
| }
| }
| }
| </script>
|
| <style>
| .container{
| padding: 10px 12px;
| }
| .title{
| display: block;
| text-align: center;
| font-size: 16px;
| }
| .sub-title{
| display: block;
| text-align: center;
| color: #a5abaf;
| margin-top: 8px;
| font-size: 14px;
| }
| .content{
| font-size: 12px;
| margin-top: 20px;
| text-indent: 2em;
| text-align: justify;
| }
| .content img, .content image{
| max-width: 100%;
| display: block;
| margin: 0 auto;
| }
| </style>
|
|