<template>
	<view class="contet">
		<view class="" v-html="content">
			
		</view>
	</view>
</template>

<script>
	import {
		loadIndexs,
		getArticleList,
		getArtDetai
	} from '@/api/index.js';
	export default {
		data() {
			return {
				content: '',
				id: 0,
			}
		},
		onLoad(opt) {
			this.id = opt.id
			this.getDetai()
		},
		methods: {
			getDetai() {
				let obj = this
				getArtDetai({},obj.id).then(res => {
					console.log(res)
					obj.content = res.data.content
					if(obj.content != null){
						obj.content = obj.content.replace(/<img/g,"<img style='max-width:100%;height:auto;min-width:100%;'");
					}//小程序商品详情图超出屏幕问题
				})
			}
		}
	}
</script>

<style>
</style>
