<template>
	<view class="ConsultingTheDynamic">
		<view class="headers">
			<text>{{title}}</text>
		</view>
		<view class="timeText">
			<text>{{time}}</text>
		</view>
		<!-- 分割线 -->
		<view class="solid">
		</view>
		<!-- 图片 -->
		<!-- 内容区 -->
		<view class="" style="width: 720rpx;margin: 0rpx auto;" >
			<rich-text :nodes="content" space="nbsp" :selectable="true"></rich-text>
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: "",
				time: "",
				content: "",
			}
		},
		onShareAppMessage() {
			return {
				title: "", // 默认是小程序的名称(可以写slogan等)
				path: '/pages/ConsultingTheDynamic/ConsultingTheDynamic',
			}
		},
		async onLoad(options) {
		let res= await this.$api.zixundongtai.getzixundongtai(options.id)
		console.log(res);
					this.time = res.data.createTime
					this.title = res.data.title
					this.content = res.data.content
					this.content=res.data.content.replace(/<img/g,'<img style="width:96vw;"')
			
		}

	}
</script>

<style lang="scss">
	.CompanyDetails{
margin: 0rpx auto;
	}
	@import "./ConsultingTheDynamic.scss"
</style>
