<template>
	<mobile-frame>
		<view class="main">
			<view class="one">
				<u-parse :content="info.agree"></u-parse>
			</view>
		</view>
	</mobile-frame>
</template>

<script>
	import uParse from "@/components/u-parse/u-parse.vue";
	export default {
		components: {
			uParse,
		},
		data() {
			return {
				info: {}
			};
		},
		onShow: function() {
			const that = this;
			that.search();
		},
		methods: {
			search() {
				const that = this;
				uni.getStorage({
					key: 'config',
					success: function(res) {
						if (res.data) that.$set(that, `info`, res.data);
					},
					fail: function(err) {
						console.log(err);
					}
				})
			}
		}
	}
</script>

<style lang="scss">
	.main {
		display: flex;
		flex-direction: column;
		width: 100vw;
		height: 100vh;

		.one {
			padding: 2vw;

			.text {
				text-align: center;
				font-size: var(--font20Szie);
				margin: 2vw 0;
				font-weight: bold;
			}

			.info {
				text {
					font-size: var(--font14Szie);
					float: left;
					width: 100%;
					margin: 0 0 10px 0;
				}
			}
		}
	}
</style>
