<template>
	<view class="main">
		<web-view :src="url"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type: 1,
				url: ''
			}
		},
		onLoad(options) {
			this.type = options.type
			if(this.type==1) {
				uni.setNavigationBarTitle({
					title: '隐私政策'
				})
			}else {
				uni.setNavigationBarTitle({
					title: '用户使用协议'
				})
			}
			this.getAgreementFn()
		},
		methods: {
			async getAgreementFn() {
				if(this.type==1) {
					this.url = 'http://www.jakjgs.com/htmls/yszc.html'
				}else {
					this.url = 'http://www.jakjgs.com/htmls/yhxy.html'
				}
			}
		}
	}
</script>

<style>
</style>