<template>
	<view class="padding-lr">
		<rich-text :nodes="detail.content" v-if="detail.content"></rich-text>
		<my-nocontent v-else></my-nocontent>
		<!-- 回到顶部 -->
		<u-back-top :scroll-top="pageScrollTop"></u-back-top>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				article_id: 0,
				detail: {}
			}
		},
		onLoad(options){
			this.article_id = options.id;
			this.getData();
		},
		methods: {
			getData(){
				this.$http(this.API.API_ARTICLE_DETAIL, {article_id: this.article_id}).then(res => {
					this.detail = res.data;
				})
			}
		}
	}
</script>

<style>
</style>
