<template>
	<view class="content" v-html="content">
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content: ""
			};
		},
		onLoad() {
			this.content=uni.getStorageSync("pcontent").noticeContent.replace(/style=""/g, '')
								.replace(/<img " src=/g, '<img src=')
								.replace(/<img src=/g, '<img style="width: 100%; height:100%; display:block" src=');
								uni.setNavigationBarTitle({
									title: uni.getStorageSync("pcontent").noticeTitle
								})
		},
		destroyed() {
			uni.removeStorageSync("pcontent")
		}
	}
</script>

<style scoped lang="scss">
.content{
	padding: 25rpx;
	overflow: hidden;
	font-size: 28rpx;
	color: #333;
}
</style>

