<template>
	<view class="bg">
		<view class="content" v-html="formateRichText(detail.rule_content)"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				detail: {}
			}
		},
		onLoad(option) {
			if(option.title) {
				uni.setNavigationBarTitle({
				  title: option.title
				});
			}

			
			this.Post({
				id: option.id
			},'/api/lottery_activity/getActivityById').then(res => {
				this.detail = res.data
			})
		}
	}
</script>

<style lang="scss" scoped>
	.bg {
		width: 750rpx;
		min-height: 100vh;
		
	}

	.content {
		width: 697rpx;
		height: auto;
		background: #FFFFFF;
		border-radius: 13rpx;
		margin: -28rpx auto 0;
		padding: 48rpx 21rpx 98rpx;
		position: relative;
	}
</style>