修改编辑地图加最大值,

This commit is contained in:
A1300399510
2023-08-10 11:23:18 +08:00
parent b27a4a6e7d
commit 1e3bd6068e
3 changed files with 16 additions and 5 deletions

View File

@@ -1,7 +1,8 @@
<template> <template>
<div class="flexcenter pop-mask"> <div class="flexcenter pop-mask">
<img class="cross" src="@/assets/img/edit/close-icon.svg" @click="$emit('choosingLocation')" />
<div class="pop"> <div class="pop">
<img class="cross" src="@/assets/img/edit/close-icon.svg" @click="$emit('choosingLocation')" />
<div id="map"></div> <div id="map"></div>
<iframe id="mapPage" width="100%" height="100%" frameborder=0 <iframe id="mapPage" width="100%" height="100%" frameborder=0
:src="`https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=${key}&referer=myapp&coord=${latlng.longitude},${latlng.latitude}`"> :src="`https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=${key}&referer=myapp&coord=${latlng.longitude},${latlng.latitude}`">
@@ -89,6 +90,8 @@ export default {
background: #fff; background: #fff;
border-radius: 20px; border-radius: 20px;
padding: 20px; padding: 20px;
max-width: 1800px;
max-height: 1000px;
} }
.cross { .cross {
@@ -96,8 +99,12 @@ export default {
height: 15px; height: 15px;
position: fixed; position: fixed;
top: 10px; top: 10px;
right: 5px; right: 10px;
z-index: 111; z-index: 111;
cursor: pointer; cursor: pointer;
transition: all 0.3s;
&:hover {
transform: scale(1.5);
}
} }
</style> </style>

View File

@@ -51,15 +51,18 @@ const popperOptions = ref({
] ]
}); });
if (props['type'] == 'housingTop') popperOptions.value['modifiers'][0]['options']['offset'][0] = 14 console.log("props['type']", props['type']);
// if (props['type'] == 'housingTop') popperOptions.value['modifiers'][0]['options']['offset'][0] = 14
if (props['type'] == 'housingTop') popperOptions.value['modifiers'][0]['options']['offset'][0] = 18
if (props['type'] == 'housing') popperOptions.value['modifiers'][0]['options']['offset'][0] = 38 if (props['type'] == 'housing') popperOptions.value['modifiers'][0]['options']['offset'][0] = 38
// console.log("newValue", props['type']); // console.log("newValue", props['type']);
watch(() => props.concatType, (newValue, oldValue) => { watch(() => props.concatType, (newValue, oldValue) => {
setTimeout(() => { setTimeout(() => {
if (newValue && props['type'] == 'housingTop') popperOptions.value['modifiers'][0]['options']['offset'][0] = 225 if (newValue && props['type'] == 'housingTop') popperOptions.value['modifiers'][0]['options']['offset'][0] = 229
else if (props['type'] == 'housingTop') popperOptions.value['modifiers'][0]['options']['offset'][0] = 14 else if (props['type'] == 'housingTop') popperOptions.value['modifiers'][0]['options']['offset'][0] = 18
}, 250) }, 250)
}); });

View File

@@ -897,6 +897,7 @@ const publicJump = path => router.push(path)
margin-right: 6px; margin-right: 6px;
position: relative; position: relative;
cursor: pointer; cursor: pointer;
border-radius: 6px;
&::after { &::after {
content: ""; content: "";