<template>
	<view class="box">
		<u-navbar :autoBack="true" :title="list.title" bgColor="rgba(255,255,255,0)" :placeholder="true" titleStyle="font-weight:bold;color:#000000"></u-navbar>

		<view class="ban_box">
			<view class="kc_box">
				<u-parse :content="list.content"></u-parse>
			</view>
		</view>
	</view>
</template>

<script>
let that;
export default {
	data() {
		return {
			list: []
		};
	},
	onLoad(o) {
		that = this;
		this.getNewsNotice(o.id);
	},
	methods: {
		// 公告
		getNewsNotice(id) {
			this.$api.getNotice({ main_body_id: 1, id: id }, function (res) {
				if (res.code == 1) {
					that.list = res.data;

					// console.log(that.newsListTit,'新闻')
				}
			});
		}
		// getContentDetail(id) {
		// 	this.$api.getContentDetail({ main_body_id: 1, id: id }, function (res) {
		// 		console.log(res);
		// 		that.list = res.data;
		// 	});
		// }
	}
};
</script>

<style>
.box {
	min-height: 100%;
	height: auto;
	width: 100%;
	padding-bottom: 50rpx;
	background-image: url('https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/xbg_2.png');
	background-repeat: repeat-y;
	background-size: cover;
	background-size: 100% 100%;
}
.ban_box {
	width: 92%;
	margin: auto;
	margin-top: 20rpx;
}
.map_tit {
	display: flex;
	align-items: center;
	margin-left: 60rpx;
	margin-top: 40rpx;
	font-size: 40rpx;
	font-weight: 700;
	line-height: 52rpx;
	color: #444444;
}
.ban_item {
	display: flex;
	margin-top: 20rpx;
	font-size: 30rpx;
}
.kc_box {
	width: 92%;
	margin: auto;
	padding: 30upx;
	display: flex;
	align-items: center;
	margin-top: 30rpx;
}
.b-cover {
	width: 225rpx;
	height: 125rpx;
}

.text_25 {
	font-size: 26rpx;
	color: #727070;
	margin-top: 10rpx;
	font-weight: 400;
}
</style>
