<template>
	<view class="center">
		<view class="news_info">
			<view class="text">{{dataInfo.newsTitle}}</view>
			<view style='white-space: pre-wrap;' class="info">{{dataInfo.newsContent}}</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				dataInfo:{},
			}
		},
		onLoad(options) {
			this.dataInfo = JSON.parse(options._obj)
				uni.setNavigationBarTitle({
				title: this.dataInfo.newsType
			})
			
		},
		
		methods:{
			
		}
	}
</script>

<style lang="scss">
	.center{
		padding:30rpx;
		height: calc(100vh - 4vh);
		background: #F5F6FA ;
		.text{
			font-size: 18px;
			font-weight: 600;
		}
		.info{
			font-size: 14px;
			color: #999999;
			margin-top: 20rpx;
		}
		.news_info{
			background: #FFFFFF;
			padding: 20rpx 30rpx;
			border-radius: 20rpx;
		}
	}
</style>
