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
559 B

<template>
<view>
<view v-html="content"></view>
</view>
</template>
<script>
export default {
data() {
return {
content:""
};
},
onLoad() {
this.getAboutContent();
},
methods:{
async getAboutContent() {
const {
data: res
} = await uni.$http.post('/small/project/text/listAll',{type:2})
if (!res.success) return uni.$showMsg()
res.data.forEach(item=>{
this.content = item.content
})
// uni.$showMsg('数据请求成功!')
},
}
}
</script>
<style lang="scss">
</style>