You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
566 B
37 lines
566 B
<template>
|
|
<view>
|
|
<view v-html="content"></view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
content:"",
|
|
guid:""
|
|
};
|
|
},
|
|
onLoad(options) {
|
|
this.guid = options.guid;
|
|
this.getContent();
|
|
|
|
},
|
|
methods:{
|
|
async getContent() {
|
|
|
|
const {
|
|
data: res
|
|
} = await uni.$http.post('/small/project/message/getById',{guid:this.guid})
|
|
if (!res.success) return uni.$showMsg()
|
|
|
|
this.content = res.data.content
|
|
// uni.$showMsg('数据请求成功!')
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
|
|
</style>
|
|
|