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

<script>
	import richTextTemplate from '@/components/module/listTemplate/richTextTemplate'
	import { protocolAgree } from "@/api/other.js"
	
	export default{
		components: {
		   richTextTemplate
		},
		data() {
			return{
				type: ''
			}
		},
		onLoad(){
			this.type = 'afterSale';
			this.initData();
		},
		methods:{
			initData(){
				let self = this;
				protocolAgree({helpPageID:1036}).then(response =>{
					let data =response.data.content
					self.$refs.childTemplate.html = self.$api.adaptRichTextImg(data);
				}).catch(response =>{
					this.$util.msg(response.msg,2000)
				})
			}
		}
	}
</script>

<style lang="scss">

</style>