|
@@ -10,8 +10,8 @@
|
|
|
class="switch-item"
|
|
|
@click="selectItem(item.key)"
|
|
|
>
|
|
|
- <div class="item-bg1">
|
|
|
- <div :class="activeMap === 'logical' ? 'item-text bg-active' : 'item-text'">{{ item.name }}</div>
|
|
|
+ <div :class="'item-bg1 ' + item.key">
|
|
|
+ <div :class="activeMap === item.key ? 'item-text bg-active' : 'item-text'">{{ item.name }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -32,7 +32,7 @@ const mapData = ref([
|
|
|
{ name: '矢量地图', key: 'vectorgraph' },
|
|
|
{ name: '卫星地图', key: 'satellite' },
|
|
|
{ name: '粤政图', key: 'satellite2' },
|
|
|
- { name: '粤政图2', key: 'satellite3' },
|
|
|
+ { name: '粤政图2', key: 'satellite3' }
|
|
|
]);
|
|
|
let open = ref(false);
|
|
|
const selectItem = (key) => {
|
|
@@ -84,7 +84,6 @@ const handleExpand = () => {
|
|
|
font-size: 32px;
|
|
|
font-weight: 700;
|
|
|
text-wrap: wrap;
|
|
|
- font-family: 'SourceHanSansCN';
|
|
|
word-wrap: break-word;
|
|
|
word-break: break-all;
|
|
|
}
|
|
@@ -113,11 +112,24 @@ const handleExpand = () => {
|
|
|
position: relative;
|
|
|
width: 323px;
|
|
|
height: 222px;
|
|
|
- background-size: cover;
|
|
|
cursor: pointer;
|
|
|
- background: url('@/assets/images/map/preview1.png') no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
}
|
|
|
+ .logical {
|
|
|
+ background: url('@/assets/images/map/logical.png') no-repeat;
|
|
|
+ }
|
|
|
+ .vectorgraph {
|
|
|
+ background: url('@/assets/images/map/vectorgraph.png') no-repeat;
|
|
|
+ }
|
|
|
+ .satellite {
|
|
|
+ background: url('@/assets/images/map/satellite.png') no-repeat;
|
|
|
+ }
|
|
|
+ .satellite2 {
|
|
|
+ background: url('@/assets/images/map/satellite2.png') no-repeat;
|
|
|
+ }
|
|
|
+ .satellite3 {
|
|
|
+ background: url('@/assets/images/map/satellite3.png') no-repeat;
|
|
|
+ }
|
|
|
.item-text {
|
|
|
position: absolute;
|
|
|
right: 0;
|