<template>
	<view class="page">
		<u-navbar  title="资讯详情" :border-bottom="false" back-icon-color="#3D3D3D" :background="bgc" title-color='#3D3D3D' title-size='36'
			height='40'	id="navbar">
		</u-navbar>
        <u-parse v-if="obj.content" :html="obj.content" style="width: 660rpx;margin: auto;padding: 20rpx;background-color: #fff;border-radius: 14rpx;"></u-parse>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				bgc: {
					backgroundColor: "#fff",
				},
				id:'',
				obj:{}
			}
		},
		onLoad(option) {
			this.id = option.id
			this.getxq()
		},
		methods: {
			// 请求资讯详情
            getxq(){
            	this.$u.get(`/app/article/detail/${this.id}?type=2`).then((res) => {
            		if(res.code == 200){
            			this.obj = res.data
            		}
            	})
            },
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #fff;
	}
	
</style>