<template>
	<view class="agreement">
		<rich-text :nodes="content"></rich-text>
	</view>
</template>

<script>
	import { agreement } from '@/apis/interfaces/vip.js'
	export default {
		data() {
			return {
				content: ''
			};
		},
        onLoad(e) {
            agreement(e.id).then(res => {
            	this.content = res.content
                uni.setNavigationBarTitle({
                    title:res.title
                })
            }).catch(err => {
            	uni.showToast({
            		title: err.message,
            		icon : 'none'
            	})
            })
        },
	}
</script>

<style lang="scss">
	.agreement{
		padding: $padding;
	}
</style>
