<template>
	<view>
		<rich-text :nodes="content" v-if="$isRight(content)"></rich-text>
		<lf-nocontent v-else></lf-nocontent>
		<!-- 回到顶部 -->
		<u-back-top :scroll-top="pageScrollTop" :custom-style="{background: 'rgba(51, 51 51, 0.3)'}"></u-back-top>
	</view>
</template>

<script>
	export default {
		data(){
			return {
				content: '',
				news_id: 0
			}
		},
		onLoad(e){
			this.news_id = e.news_id
			if(this.news_id) {
				this.getData();
			}
		},
		methods: {
			getData(){
				this.$http(this.API.API_MESSAGEDETAILS,{id: this.news_id}).then(res => {
					this.content = res.data?.content;
					console.log(this.content)
				})
			}
		}
	}
</script>

<style lang="scss" scoped="scoped">
	
</style>
