<template>
	<view class="main padding">
		<!-- <web-view :src="url"></web-view> -->
		<yszc v-if="type == 1"></yszc>
		<yhxy v-else></yhxy>
		
	</view>
</template>

<script setup>
	import yhxy from './comp/yhxy.vue'
	import yszc from './comp/yszc.vue'
	import {
		ref
	} from 'vue'
	import {
		onLoad,
	} from '@dcloudio/uni-app'
	let type = ref(1)
	let url = ref('')
	onLoad((options) => {
		type.value = options.type
		if (type.value == 1) {
			uni.setNavigationBarTitle({
				title: '隐私政策'
			})
			url.value = 'https://www.jakjgs.com/htmls/yszc.html'
		} else {
			uni.setNavigationBarTitle({
				title: '用户使用协议'
			})
			url.value = 'https://www.jakjgs.com/htmls/yhxy.html'
		}
	})
</script>

<style>
</style>