InformationDetails.vue
731 字节
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
<template>
<view class="">
<rich-text :nodes="content"></rich-text>
</view>
</template>
<script>
import { arcDetail } from '@/api/mine.js'
export default {
data() {
return {
id: '',
content:''
}
},
onLoad(e) {
this.id = e.id
this.arcDetail()
},
methods: {
async arcDetail(){
try {
const res = await arcDetail(this.id)
this.content = res.detail.content
uni.setNavigationBarTitle({
title: res.detail.title
})
console.log('arcDetail', res)
// 保存数据
} catch (err) {
uni.showToast({ title:err,icon:'none' })
console.log('arcDetail', err)
}
},
},
}
</script>
<style>
</style>