<template>
	<view class="lxwm ql-editor" v-html="jiexi">
		
	</view>
</template>

<script>
	import {progressioncontactUs} from '@/api/user.js'
	import {ref} from 'vue'
	export default {
		setup() {
			let jiexi=ref('<h2 style="color:#ffffff;text-align: center;">联系我们</h2>')
			progressioncontactUs({}).then(res=>{
				jiexi.value=res.data[0].content
				let richtext = jiexi.value
				let regex = new RegExp('<img', 'gi');
				richtext = richtext.replace(regex, '<img style="max-width: 100%;"');
				jiexi.value = richtext
			})
			return {
				jiexi
			}
		}
	}
</script>

<style lang="scss">
.lxwm{
	width: 100%;
	padding: 20upx 30upx;
	box-sizing: border-box;
}
</style>
