You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
483 B
37 lines
483 B
<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>
|
|
|