Browse Source

图片

h5_css
yanyan 3 years ago
parent
commit
c12192bdd4
  1. 36
      subpkg/knowledgeInfo/knowledgeInfo.vue

36
subpkg/knowledgeInfo/knowledgeInfo.vue

@ -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…
Cancel
Save