<template>
	<view class="container clearfix rich-text-temp">
		<rich-text-template ref="childTemplate"></rich-text-template>
	</view>
</template>

<script>
	import richTextTemplate from '@/components/cm-module/listTemplate/richTextTemplate'
	
	var self
	export default{
		components: {
		   richTextTemplate
		},
		data() {
			return{
				serverUrl: '',
				type: 'introduction'
			}
		},
		onLoad(option){
			this.GetNewsCapacity(option.id)
		},
		methods:{
			GetNewsCapacity(id){
				this.CommonService.GetNewsCapacity({id:id}).then(response =>{
					let data =response.data
					let html = this.$api.adaptRichTextImg(data.capacity)
					this.$refs.childTemplate.html = html
					uni.setNavigationBarTitle({title:data.title})
				}).catch(error =>{
					this.$util.msg(error.msg,2000)
				})
			}
		}
	}
</script>

<style lang="scss">
	page{
		background-color: #FFFFFF;
	}
</style>
