<!-- 第三方页面webview -->
<template>
	<web-view :src="url" :progress="false"></web-view>
</template>

<script>
	import getUrlParams from '@/utils/getUrlParams.js'
	export default {
		data() {
			return {
				url: '',
				title: '视频聊天'
			}
		},
		onLoad(res) {
			this.url = decodeURIComponent(res.url);
			const title = getUrlParams(this.url, 'title');
			if (title) {
				this.title = title
			}
		},
		onReady() {
			uni.setNavigationBarTitle({
				title: this.title
			})
		}
	}
</script>
