update
1.优化
This commit is contained in:
@@ -427,6 +427,7 @@
|
|||||||
const params = {
|
const params = {
|
||||||
healthRoomId: res.id,
|
healthRoomId: res.id,
|
||||||
};
|
};
|
||||||
|
indexModalTitle.value = '健康小屋详情';
|
||||||
modalApi.value = roomDetailApi;
|
modalApi.value = roomDetailApi;
|
||||||
apiParams.value = params;
|
apiParams.value = params;
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
|
|||||||
@@ -9,10 +9,10 @@
|
|||||||
<div v-show="currentIndex == list.length - 1" class="route-navigation">
|
<div v-show="currentIndex == list.length - 1" class="route-navigation">
|
||||||
<a-form :model="formState" layout="inline">
|
<a-form :model="formState" layout="inline">
|
||||||
<a-form-item class="form-item-self" label="起点">
|
<a-form-item class="form-item-self" label="起点">
|
||||||
<a-input v-model:value="formState.start" placeholder="请输入起点" id="startInput" />
|
<a-input v-model:value="formState.start" autocomplete="off" placeholder="请输入起点" id="startInput" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item class="form-item-self" label="终点">
|
<a-form-item class="form-item-self" label="终点">
|
||||||
<a-input v-model:value="formState.end" placeholder="请输入终点" id="endInput" />
|
<a-input v-model:value="formState.end" autocomplete="off" placeholder="请输入终点" id="endInput" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item>
|
<a-form-item>
|
||||||
<a-button class="reset-btn" @click="removeInput">清空</a-button>
|
<a-button class="reset-btn" @click="removeInput">清空</a-button>
|
||||||
@@ -176,6 +176,7 @@
|
|||||||
const { lat, lng } = poi.location;
|
const { lat, lng } = poi.location;
|
||||||
formState.value.start = poi.name;
|
formState.value.start = poi.name;
|
||||||
Map.createSMarker([lng, lat]);
|
Map.createSMarker([lng, lat]);
|
||||||
|
Map.map.setZoom(15);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -186,6 +187,7 @@
|
|||||||
const { lat, lng } = poi.location;
|
const { lat, lng } = poi.location;
|
||||||
formState.value.end = poi.name;
|
formState.value.end = poi.name;
|
||||||
Map.createEMarker([lng, lat]);
|
Map.createEMarker([lng, lat]);
|
||||||
|
Map.map.setZoom(15);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -365,7 +367,7 @@
|
|||||||
function resetMap() {
|
function resetMap() {
|
||||||
Map.clearSOrE();
|
Map.clearSOrE();
|
||||||
closeDrivingElement();
|
closeDrivingElement();
|
||||||
changeTab(list.value[currentIndex.value], currentIndex.value);
|
changeTab(list.value[currentIndex.value === 4 ? 0 : currentIndex.value], currentIndex.value);
|
||||||
emits('showRestB');
|
emits('showRestB');
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@@ -414,6 +416,7 @@
|
|||||||
|
|
||||||
.route-navigation {
|
.route-navigation {
|
||||||
--fontColor: #607ddb;
|
--fontColor: #607ddb;
|
||||||
|
background: #002e64;
|
||||||
margin: 12px 0;
|
margin: 12px 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 46px;
|
height: 46px;
|
||||||
@@ -715,6 +718,10 @@
|
|||||||
z-index: 101;
|
z-index: 101;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 0px 6px;
|
padding: 0 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.amap-sug-result) {
|
||||||
|
background: #002e64 !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user