<template>
	<div>
		<common ref="common" @asynCallBack="asynCallBack"></common>
		<top-header :pageTitle="pageTitle" :rightLink="rightLink" :doRightLink="doRightLink"></top-header>

		<div class="mui-content">
			<div class="vongi-hddat-tit">
				<h1 v-text="subForm.title"></h1>
				<h5>活动起止日期： 至 </h5>
			</div>
			<div class="vongi-hddat-text">
				<div v-for="(item,index) in subForm.contentList" class="vongi-hddat-cont">
					<p><img :src="item.picture" width="100%" /></p>
					<p v-html="item.detail"></p>
				</div>
				<div class="vongi-hddat-cont vongi-hddat-center">
					<p>本活动发起人： 业主 {{person_popedom.personName}} </p>
				</div>
			</div>
		</div>
	</div>
</template>

<script>
	import * as API_Activity from '@/apis/Master/activity'
	import Common from '$project/components/Common.vue'
	import Loading from '$project/components/Loading.vue'
	import TopHeader from '$project/components/TopHeader.vue'
	import {
		mapGetters,
		mapMutations
	} from 'vuex'
	import * as types from '$project/store/mutation-types'
	export default {
		name: 'MasterActivityAddText',
		components: {
			Common,
			Loading,
			TopHeader,
		},
		data() {
			return {
				isLoading: false,

				pageTitle: '详情预览',

				subForm: {
					title: '',
					content: '',
					contentList: [],
				},

				rightLink: {
					show: true,
					icon: 'mui-btn mui-btn-primary',
					style: 'width: auto;height: 25px;margin-top:5px;margin-right: 0px;line-height: 5px;color: #fff;font-size:16px;',
					title: '下一步'
				},
			}
		},
		created() {
			if (this.activity_form_data) {
				this.subForm = this.activity_form_data;
			}
		},
		methods: {

			//下一步
			doRightLink() {
				this.$router.push({
					name: 'MasterActivityAddSet'
				})
			},
			asynCallBack() {

			},
			...mapMutations({
				set_activity_form_data: types.SET_ACTIVITY_FORM_DATA,
			})
		},
		mounted() {
			document.body.style.backgroundColor = '#fff';
		},
		destroyed() {
			document.body.style.backgroundColor = '';
		},
		computed: {
			...mapGetters({
				openId: 'wx_openid',
				token: 'token',
				person_data: 'person_data',
				person_popedom: 'person_popedom',
				activity_form_data: 'activity_form_data',
			})
		}
	}
</script>

<style scoped src="$project/assets/css/xpwyfyy.css"></style>
<style src="$project/assets/css/iconfont.css"></style>
<style>
</style>
