aboutus.vue
860 字节
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
<template>
<div class='box'>
<div class="intro">
<rich-text class="conRich" :nodes="aboutus.description"></rich-text>
</div>
</div>
</template>
<script>
import app from "../../App.vue";
export default {
data() {
return {
aboutus: '',
}
},
methods: {
// 关于我们数据
getus() {
app.post("api/abouts/aboutDetail", '', 'get')
.then(res => {
console.log(res);
this.aboutus = res
})
.catch(err => {});
},
},
onLoad(options) {
},
mounted() {
this.getus()
},
created() {
}
}
</script>
<style>
.box {
background: #F5F5F5;
padding: 40rpx 34rpx;
box-sizing: border-box;
}
.intro {
background: #fff;
height: 1112rpx;
overflow-y: scroll;
padding: 30rpx;
box-sizing: border-box;
color: #404040;
font-size: 28rpx;
line-height: 1.5;
}
</style>