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

<script>
const req = require('../../utils/request.js');

export default {
	data() {
		return {
			appId: '',
			content: ''
		};
	},
	onLoad(opt) {
		this.appId = opt.appId;
		this.getConfig();
	},
	methods: {
		getConfig() {
			req.getRequest(
				'/api/params/value',
				this.appId,
				{ type: 'quickapp_privacy' },
				data => {
					this.content = data;
				},
				true
			);
		}
	}
};
</script>

<style>
@import './index.css';
</style>
