<template>
	<view class="">
		<web-view :src="mapUrl+'/#/pages/index/navigation?startPoint=' + startPoint + '&endPoint='+ endPoint"></web-view>
	
	</view>
</template>

<script>
	import config from '@/config'
	export default {

		data() {
			return {
				startPoint: [],
				endPoint: [],
				mapUrl:config.mapUrl
			};
		},
		onLoad(option) {
			uni.showLoading({
							title: 'Loading...'
						});
		     setTimeout(() => {
			   uni.hideLoading()
			  }, 2000);
			this.startPoint = option.startPoint
			this.endPoint = option.endPoint
			console.log(this.mapUrl+'/#/pages/index/navigation?startPoint=' + this.startPoint + '&endPoint='+ this.endPoint);
		},

		methods: {
		}
	};
</script>