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.
38 lines
483 B
38 lines
483 B
7 months ago
|
<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>
|