<template>
	<view class="content">
		<!-- <jyf-parser :html="content" ref="article" :tag-style="tagStyle"></jyf-parser> -->
		<web-view :src="docUrl"></web-view>
		<!-- <text   class="html-text-box" v-html="noticeList.noticeContent" ></text> -->
	</view>
</template>

<script>
	import {
		HTTP_REQUEST_URL
	} from '@/config/app';
	import parser from "@/components/jyf-parser/jyf-parser";
	import {
		getDoc,
	} from '@/api/home.js';
	import {
		getUserAgreement,
	} from '@/api/user.js';
	export default {
		components: {
			"jyf-parser": parser
		},
		data() {
			return {
				tagStyle: {
					img: 'width:100%;display:block;',
					table: 'width:100%',
					video: 'width:100%'
				},
				docUrl: '',
				content: ``
			}
		},
		onLoad(options) {
			uni.setNavigationBarTitle({
				title: options.title
			});
			this.docUrl = HTTP_REQUEST_URL + '/doc/'+ options.type
		},
		
	}
</script>

<style scoped>
	page {
		background-color: #fff;
	}

	.content {
		padding: 40rpx 30rpx;
		line-height: 2;
	}
</style>
