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