<template>
	<view class="">
		
	</view>
</template>

<script>
	export default {
		data(){
			return{
				num:0
			}
		},
		onShow(){
			let pages=getCurrentPages();
			if(this.num==1){
				uni.navigateBack({
					delta:1
				})
			}
		},
		onLoad(options) {
			uni.openLocation({
				latitude:Number(options.lat),
				longitude:Number(options.lng),
				address:options.address,
				name:options.name,
				success:res=>{
					this.num++
				}
			})
		}
	}
</script>

<style>
</style>
