<template>
	<!-- 文化遗产详情、申遗历程详情、非遗体验详情 三合一 -->
	<view class="page">
		<navbar title="申遗历程" leftClick @leftClick="$utils.navigateBack" />
		<uv-parse :content="detail.articleContent"></uv-parse>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				detail : {},
				id : 0,
			}
		},
		onLoad(args) {
			this.id = args.id
		},
		onShow() {
			this.queryArticleById()
		},
		onPullDownRefresh(){
			this.queryArticleById()
		},
		methods: {
			queryArticleById(){
				this.$api('queryArticleById', {
					id : this.id
				}, res => {
					uni.stopPullDownRefresh()
					if(res.code == 200){
						this.detail = res.result
					}
				})
			},
		}
	}
</script>

<style scoped lang="scss">
.page{
	
}
</style>
