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

<script>
	export default {
		data() {
			return {
				baseSrc: 'https://xqg.xswlsq.cn/#/',
				 src: 'https://xqg.xswlsq.cn/#/'
				 // baseSrc: 'http://192.168.10.175:8080/#/',
				 // src: 'http://192.168.10.175:8080/#/'
			}
		},
		methods: {

		},
		onLoad(opt) {
			uni.setNavigationBarTitle({
				title: opt.title
			});
			this.src = this.baseSrc +'?id=' + opt.id
			if (opt.q) {
				const q = decodeURIComponent(opt.q)
				let scan = q.split('?scan=')[1]
				if (scan == 1) {
					this.src = this.baseSrc + '?scan=1'
				}
			}
		},
		onShow() {
		}
	}
</script>

<style>

</style>
