123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <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: 3
- })
-
- 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>
|