<template>
	<view class="se-p-20">
		<view class="se-c-black se-fw-6 se-fs-28">
			{{detail.title}}
		</view>
		<view class="se-mt-20">
			<u-parse :content="detail.content" :previewImg="true"></u-parse>
			<!-- <image class="se-w-p-100" src="https://cdn.uviewui.com/uview/swiper/swiper1.png" mode="widthFix"></image> -->
		</view>
	</view>
</template>

<script>
	import { queryNewsById } from "@/common/api.js"
	export default{
		data(){
			return{
				id:null,
				detail:{}
			}
		},
		onLoad(options) {
			this.id=options.id
			this.onQueryNewsByDetail()
		},
		methods:{
			onQueryNewsByDetail(){
				queryNewsById({newsId:this.id}).then(response=>{
					console.info('onQueryNewsByDetail',response)
					this.detail = response.result
				}).catch(error=>{
					
				})
			}
		}
	}
</script>

<style>
	
</style>