<template>
	<view class="main">
		<view class="content">
			<view class="title">{{ item.title }}</view>
			<view class="desc">
				<text>发布于：{{ item.createTime }}</text>
			</view>
			<view class="con">
				<u-divider :dot="true"></u-divider>
				<u-parse :content="item.contents"></u-parse>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			item: {}
		};
	},
	onLoad(e) {
		this.http.request({
			url: '/app/notice/detail/' + e.id,
			success: (res) => {
				this.item = res.data.data;
				this.item.contents = res.data.data.contents.replace(new RegExp('/profile/upload/', 'g'), this.http.ip + '/profile/upload/');
			}
		});
	},
	methods: {}
};
</script>

<style lang="scss">
.main {
	padding: 0px 10px 10px 10px;
}
.content {
	padding: 15px;
	background-color: white;
	border-radius: 8px;
	.title {
		font-size: 18px;
	}
	.desc {
		padding-top: 15px;
		font-size: 13px;
		color: #7c8388;
		text {
			padding-right: 25px;
		}
	}
	.con {
		font-size: 14px;
	}
}
</style>
