<template>
	<view>
		<u-parse :content="content"></u-parse>
	</view>
</template>

<script>
	export default {
		data(){
			return {
				id: '',
				title: '',
				article: ''
			}
		},
		onLoad(options){
			this.id = options.id || '';
			this.title = options.title || '';
			// todo 此处根据文章id获取
			this.id && this.getDetail();
		},
		onReady(){
			uni.setNavigationBarTitle({
				title: this.title
			})
		},
		methods: {
			getDetail(){
				console.log("this.id", this.id);
			}
		}
	}
</script>

<style>
</style>
