<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,"-000")
					this.title = res.data.title
					this.content = res.data.content
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.richText{
	padding:24rpx;
}
</style>
