<template>
	<view class="content">
		<view class="title">{{pageData.title}}</view>
		<view class="container">
			<u-parse :content="pageData.content"></u-parse>
		</view>
	</view>
</template>

<script>
	var that = ""
	import $api from '@/static/js/api.js'
	export default {
		data() {
			return{
				pageData: {
				},
				id: '',
			}
		},
		onLoad(options) {
			that = this
			that.id = options.id
			that.getData()
		},
		methods: {
			getData() {
				$api.req({
					url: '/data/api.business.User/message_details',
					method: 'POST',
					data: {
						id: that.id
					}
				}, function(res) {
					if(res.code == 1) {
						console.log(res);
						that.pageData = res.data
					}
				})
			}
		}
	}
</script>

<style scoped lang="scss"> 
	.content {
		background-color: #fff;
		padding: 0 30rpx;
		.title {
			width: 100%;
			margin: 40rpx 0 24rpx;
			font-size: 40rpx;
			line-height: 56rpx;
			color: #222;
			font-weight: 600;
		}
		.container {
			font-size: 36rpx;
			color: #444;
			line-height: 50rpx;
			padding-top: 20rpx;
		}
	}
</style>