1 changed files with 36 additions and 0 deletions
@ -0,0 +1,36 @@ |
|||
<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/library/getById',{guid:this.guid}) |
|||
if (!res.success) return uni.$showMsg() |
|||
|
|||
this.content = res.data.content |
|||
}, |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style lang="scss"> |
|||
|
|||
</style> |
|||
Loading…
Reference in new issue