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

<script>
	export default {
		data() {
			return {
				url: ""
			};
		},
		onLoad(o){
			console.log(o);
			this.url = `https://uri.amap.com/navigation?from=${o.start},${o.startName}&to=${o.end},${o.endName}&mode=car&policy=1&src=mypage&callnative=0`
		},
	}
</script>

<style lang="scss">

</style>
