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.
鹿和sa0ChunLuyu ba32ba269a 更新 WEB登记 字段调整, H5 婚前检查登记 1 year ago
..
readme.vue 更新 WEB登记 字段调整, H5 婚前检查登记 1 year ago

readme.vue

This file contains ambiguous Unicode characters!

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
	 * usersa0ChunLuyu
	 * date2024年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"></view>
			</view>
			<view @click="toFormClick()" class="button_wrapper">立即预约</view>
			<view style="height: 100rpx;"></view>
		</view>
	</view>
</template>
<style scoped>
	.button_wrapper {
		background: #279EA3;
		color: #ffffff;
		font-size: 28rpx;
		text-align: center;
		line-height: 90rpx;
		height: 90rpx;
		width: 600rpx;
		border-radius: 10rpx;
		margin: 50rpx auto 0;
	}

	.page_wrapper {
		padding-top: 20rpx;
		width: calc(100% - 50rpx);
		margin: 0 auto;
	}

	.readme_wrapper {
		margin-top: 20rpx;
	}
</style>