<template>
	<view>
		<view class="container">
			<view class="notice">
				<view class="justify-content">
					<view class="font-forty">
						标题:{{title}}
					</view>
					<view class="font-twenty-eight gray" style="margin-top: 10px;">
						创建时间:{{time}}
					</view>
				</view>
				<view class="font-thirty-two black" style="margin: 30rpx 0;">
					<rich-text :nodes="text"></rich-text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				text: '',
				title: '',
				time: ''
			}
		},
		onLoad(options) {
			if ('params' in options) {
				let e = JSON.parse(decodeURIComponent(options.params));
				this.text = e.noticeContent;
				this.title = e.noticeTitle;
				this.time = e.createTime;
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.container {
		display: flex;
		margin-left: 10px;
		margin-top: 10px;
		margin-right: 10px;
		align-items: flex-start;
		justify-content: space-between;
	}

	.notice {
		margin: 20rpx;
		width: 100%;
		padding: 20rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 8rpx 17rpx 0rpx rgba(0, 0, 0, 0.04);
		border-radius: 10rpx;
	}

	.text {
		border-left: 15rpx solid #3857F3;
		padding-left: 20rpx;
	}
</style>