<template>
	<view class="pages">
		<view>
			<rich-text :nodes="content"></rich-text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content: {}
			}
		},
		onLoad(options) {
			this.getNoticeDetail(options.id);
		},
		methods: {
			getNoticeDetail(id){
				this.$api('noticeOne',{id}).then(res => {
					let {code, result, message} = res;
					if(code == 200) {
						this.content = result.content;
					}else {
						this.$Toast(message);
					}
				}).catch(err => {
					this.$Toast(err.message);
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.pages{
	width: 92%;
	margin: 0 auto;
}
</style>
