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.
 
 
 
 
 
quzhou/pages/my/richText.vue

41 lines
756 B

<template>
<view class="richText">
<navbar :title="title" :isCenter="true" :back="true" ></navbar>
<u-parse :content="content" style="margin-top:45px;"></u-parse>
</view>
</template>
<script>
import navbar from '@/components/navbar.vue'
import {privacyPolicy} from '@/common/api.js'
export default {
components:{navbar},
data() {
return {
title:'',
content:'',
id:null
}
},
onLoad(option) {
this.id = option.id
this.getText()
},
methods: {
getText(){
privacyPolicy({id:this.id}).then(res=>{
console.log(res.data.content,"-000")
this.title = res.data.title
this.content = res.data.content
})
}
}
}
</script>
<style lang="scss" scoped>
.richText{
padding:24rpx;
}
</style>