<template>
	<view>
		<view id="text">
			<rich-text :nodes="item.dictDescribe"></rich-text>
		</view>
	</view>
</template>
<script>
	const NET = require('../../utils/request')
	const API = require('../../config/api')
	export default {
		data() {
			return {
				type: 'app_privacy_agreement',
				item: {}
			}
		},
		onLoad(item) {
			this.type = item.type
			let title = this.$t('page.malluseragreement')
			if (this.type === 'app_privacy_agreement') {
				title = this.$t('page.mallusersafement')
			}
			uni.setNavigationBarTitle({
				title: title
			})
			this.getquery()
		},
		methods: {
			getquery() {
				NET.request(API.Query, {
					name: this.type
				}, 'GET').then(res => {
					this.item = res.data
				}).catch(res => {

				})
			}

		}
	}
</script>

<style scoped>
	#text {
		padding: 40rpx;
	}
</style>