大德通墓地App
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.
 
 
 

41 lines
631 B

<template>
<view class="box">
<map class="map" :latitude="latitude" :longitude="longitude"></map>
</view>
</template>
<script>
export default {
data() {
return {
latitude: '',
longitude: '',
}
},
methods: {
},
onLoad(data) {
console.log(JSON.parse(data.ambitus), 999999)
let ambitus = JSON.parse(data.ambitus)
this.latitude = ambitus.latitude
this.longitude = ambitus.longitude
uni.setNavigationBarTitle({
title: ambitus.title
});
}
}
</script>
<style lang="scss" scoped>
.box {
height: 100vh;
width: 100%;
.map {
width: 100%;
height: 100%;
}
}
</style>