You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
< script setup >
/**
* name:
* user: sa0ChunLuyu
* date: 2024年9月11日 19:24:50
*/
import {
ref
} from 'vue'
import {
$api ,
$response
} from '@/api'
import {
onShow
} from '@dcloudio/uni-app'
import {
useStore
} from '@/store'
const $store = useStore ( )
import TitleComponent from '../src/title.vue'
const tip _content = ref ( '' )
const getTipContent = async ( ) => {
uni . showLoading ( ) ;
const response = await $api ( "GetReadme" , {
type : '2'
} ) ;
uni . hideLoading ( ) ;
$response ( response , ( ) => {
tip _content . value = response . data . content ;
} ) ;
} ;
const mountedAction = ( ) => {
getTipContent ( )
}
const config _ref = ref ( null )
const configRef = ( e ) => {
if ( ! config _ref . value ) {
config _ref . value = e
mountedAction ( )
}
}
const toFormClick = ( ) => {
uni . navigateTo ( {
url : '/pages/premarital/form/form'
} )
}
onShow ( ( ) => {
if ( ! ! config _ref . value ) {
mountedAction ( )
}
} )
< / script >
< template >
< view >
< view v-if ="!!$store.config">
<view :ref ="configRef" > < / view >
< / view >
< view class = "page_wrapper" >
< TitleComponent title = "预约须知" > < / TitleComponent >
< view class = "readme_wrapper" >
< view v-html ="tip_content" class="text-28rpx" style="line-height: 50rpx;background-color: #fff;padding: 30rpx;"></view>
</view>
<view @click="toFormClick()" class="button_wrapper">立即预约</view>
<view style="height: 100rpx;" > < / view >
< / view >
< / view >
< / template >
< style scoped >
. button _wrapper {
background : # 279 EA3 ;
color : # ffffff ;
font - size : 28 rpx ;
text - align : center ;
line - height : 90 rpx ;
height : 90 rpx ;
width : 600 rpx ;
border - radius : 10 rpx ;
margin : 50 rpx auto 0 ;
}
. page _wrapper {
padding - top : 20 rpx ;
width : calc ( 100 % - 50 rpx ) ;
margin : 0 auto ;
}
. readme _wrapper {
margin - top : 20 rpx ;
}
< / style >