<template>
	<view class="bg">
		<view class="topLeft flex-center">
			<span class="iconfont" @click="goBack">&#xe660;</span>
		</view>
		
		<view class="topBox" :style="{backgroundImage: 'url(https://static.ticket.sz-trip.com/tongli/images/notice/detailBgs.png)', backgroundSize: 'cover'}">
			<view>{{detail.title}}</view>
			<view style="font-weight: 500;font-size: 24rpx;margin-top: 22rpx;">{{detail.create_time.slice(0,10)}}</view>
		</view>
		
		<view class="content" v-html="formateRichText(detail.content)"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				detail: {}
			}
		},
		onLoad(option) {
			this.Post({
				id: option.id
			},'/api/anncmnt/getAnncmntById').then(res => {
				this.detail = res.data
			})
		}
	}
</script>

<style lang="scss" scoped>
	.bg {
		width: 750rpx;
		min-height: 100vh;
		background: url('https://static.ticket.sz-trip.com/tongli/images/notice/noticeBg.png') no-repeat bottom;
		background-size: 100% auto;
		background-color: #F7F7F7;
	}
	
	.topBox {
		width: 750rpx;
		height: 432rpx;
		padding: 240rpx 60rpx 0 60rpx;
		font-weight: bold;
		font-size: 35rpx;
		color: #FFFFFF;
	}
	
	.content {
		width: 697rpx;
		height: auto;
		background: #FFFFFF;
		border-radius: 13rpx;
		margin: -28rpx auto 0;
		padding: 48rpx 21rpx 50rpx;
		position: relative;
	}
</style>