Commit 664e5bf2 by zhangxw

样式修改

1 parent 21553f3d
......@@ -32,12 +32,14 @@
:class="carItem ? 'text' : ''"
@click="isShowList = !isShowList"
>
<span>
<span class="left-text">
<span v-if="!carItem">请选择</span>
<span v-if="carItem">{{ carItem.ownerName || "--" }}</span>
<span v-if="carItem && carItem.licensePlate">{{
" | " + (carItem.licensePlate || "--")
<span class="name-text" v-if="carItem">{{
carItem.ownerName || "--"
}}</span>
<span v-if="carItem && carItem.licensePlate"
>&nbsp;{{ "| " + (carItem.licensePlate || "--") }}</span
>
</span>
<span class="arrow-icon"><van-icon name="arrow-down" /></span>
</div>
......@@ -470,8 +472,10 @@ export default defineComponent({
offset: new window.AMap.Pixel(24, -20),
});
const move = (newLnglat) => {
console.log(newLnglat);
marker.setPosition(newLnglat);
infoWindow.setPosition(newLnglat);
infoWindow.setSize(window.innerWidth - 48);
map.setCenter(newLnglat);
map.panBy(0, 70);
};
......@@ -787,12 +791,21 @@ export default defineComponent({
font-size: 14px;
padding: 0 16px;
line-height: 44px;
height: 44px;
display: flex;
justify-content: space-between;
.selectedText {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
.left-text {
display: flex;
width: 100%;
span {
display: inline-block;
}
.name-text {
max-width: 55%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
.arrow-icon {
color: #9ca4ad;
......@@ -915,6 +928,9 @@ export default defineComponent({
}
.amap-info {
width: 100%;
& > div {
width: 100%;
}
}
.car-info-window {
width: calc(100% - 48px);
......
......@@ -174,8 +174,7 @@ export default {
});
beginMarker = new window.AMap.Marker({
position: lnglat,
content:
'<span class="icon icon-begin" style="transform: scale(0.5);"></span>',
content: '<span class="icon icon-begin" ></span>',
map: currentMap,
offset: new window.AMap.Pixel(-8.5, -13),
visible: false,
......
<template>
<div class="info-content">
<!-- <div class="searchControll" @click="showTimeDialog = true">
<a class="icon icon-screen-btn"></a>
<span class="screen-text">筛选</span>
</div> -->
<div class="tab">
<div class="tabbar">
<button
......@@ -377,26 +373,6 @@ export default defineComponent({
}
}
}
.searchControll {
position: fixed;
top: 70px;
right: 12px;
width: 40px;
height: 52px;
background: #fff;
z-index: 300;
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
box-shadow: 0px 5px 12px 0px rgba(0, 0, 0, 0.08);
border-radius: 6px;
.screen-text {
font-size: 16px;
display: inline-block;
transform: scale(0.5);
}
}
.time-content {
background: #fff;
color: #999;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!