|
@@ -4,6 +4,7 @@
|
|
|
:style="{
|
|
:style="{
|
|
|
borderColor: themeContext.resolveThemeColor('primary'),
|
|
borderColor: themeContext.resolveThemeColor('primary'),
|
|
|
}"
|
|
}"
|
|
|
|
|
+ @click="handleGoLocation"
|
|
|
>
|
|
>
|
|
|
<map
|
|
<map
|
|
|
id="prevMap"
|
|
id="prevMap"
|
|
@@ -14,7 +15,6 @@
|
|
|
:longitude="lonlat.longitude"
|
|
:longitude="lonlat.longitude"
|
|
|
:latitude="lonlat.latitude"
|
|
:latitude="lonlat.latitude"
|
|
|
/>
|
|
/>
|
|
|
-
|
|
|
|
|
|
|
|
|
|
<FlexCol v-if="!isValidLonlat"
|
|
<FlexCol v-if="!isValidLonlat"
|
|
|
gap="gap.xl"
|
|
gap="gap.xl"
|
|
@@ -94,6 +94,15 @@ const markers = computed(() => {
|
|
|
}
|
|
}
|
|
|
] : []);
|
|
] : []);
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
|
|
+function handleGoLocation() {
|
|
|
|
|
+ if (!isValidLonlat.value)
|
|
|
|
|
+ return;
|
|
|
|
|
+ uni.openLocation({
|
|
|
|
|
+ latitude: Number(props.lonlat.latitude),
|
|
|
|
|
+ longitude: Number(props.lonlat.longitude),
|
|
|
|
|
+ });
|
|
|
|
|
+}
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
@@ -109,6 +118,7 @@ const markers = computed(() => {
|
|
|
.mini-village-map-map {
|
|
.mini-village-map-map {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
height: 340rpx;
|
|
height: 340rpx;
|
|
|
|
|
+ pointer-events: none;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|