<template>
	<view style="line-height: 26px;padding: 32upx;" class="home1">
		<view style="font-size: 28upx;" v-html="content"></view>
	</view>
</template>

<script setup>
	import {
		ref
	} from 'vue'
	import {
		onLoad
	} from '@dcloudio/uni-app'
	
	import { post, get } from '@/utils/request'
	
	const content = ref('')
	
	const getGuize = async () => {
		try {
			const res = await get('/api/protocolConfig/findByType',{
				type: 1
			})
			
			if (res.code === '200') {
				content.value = res.data.text
			} else {
			  uni.showToast({ title: res.message || '获取失败', icon: 'none' })
			}
		} catch (err) {
			// console.log('请求失败：', err)
			uni.showToast({ title: '请求失败，请稍后重试', icon: 'none' })
		}
	}
	
	onLoad(() => {
		getGuize()
	})
</script>

<style>
</style>