preview.vue
757 Bytes
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
<template>
<div class="content-box">
<!-- 文章 -->
<div>
<div class="title">{{ contentObj.materialName }}</div>
<p v-html="contentObj.content"></p>
</div>
</div>
</template>
<script>
export default {
data() {
return {
contentObj: {},
show: false,
}
},
created() {
this.show = true
this.contentObj = JSON.parse(decodeURIComponent(this.$route.query.obj))
},
methods: {},
}
</script>
<style lang="scss" scoped>
.content-box {
padding: 10px;
padding-top: 20px;
}
.title {
width: 100%;
text-align: center;
color: #000;
font-size: 16px;
margin-bottom: 20px;
}
.pic {
width: 100%;
margin: 20px 0;
}
.content {
color: #333;
font-size: 12px;
line-height: 16px;
}
</style>