Files
2026-03-23 11:52:05 +08:00

53 lines
1.5 KiB
Vue

<template>
<view class="content">
<myNav title="协议内容" bgColor="#fff" titleColor="#614D49" :backIcon="true" :backHome="false" :flex="false">
</myNav>
<view style="width: 100%;height: 100%;display: flex;flex-direction: column;align-items: center;overflow-y: auto;padding-bottom: 40rpx;">
<view style="margin: 40rpx;display: flex;width: 670rpx;flex-direction: column;align-items: center;background-color: #fff;box-sizing: border-box;
border-radius: 10rpx;padding: 40rpx;">
<text class="title">{{procotol.title}}</text>
<rich-text style="margin-top: 40rpx;" :nodes="procotol.context"></rich-text>
</view>
</view>
</view>
</template>
<script setup>
import myNav from '@/components/my-nav.vue'
import {
urls
} from '@/util/apiUrl.js'
import dohttp from '@/util/requestConfig.js'
onLoad((option) => {
getProcotol()
})
const procotol=ref()
const getProcotol = () => {
dohttp.post(urls.getByCode + "?code=consultation_appointment_agreement").then((result) => {
procotol.value = result
})
}
</script>
<style scoped>
.content {
width: 100vw;
height: 100vh;
background-color: #f9f8f8;
display: flex;
flex-direction: column;
font-family: SourceHanSans;
background-image: url('https://miniapp.yuxingu.com.cn/yxg-mp/pic/bg-all.png');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
font-family: SourceHanSans;
}
.title{
font-size: 36rpx;
font-family: SourceHanSansBold;
}
</style>