Browse Source

fix: 🧩 区域等优化

pull/9/head
liyongle 3 years ago
parent
commit
14a9b7f876
  1. 2
      public/static/offline/JSON/GetMapInfo.json
  2. 2
      src/types/art.d.ts
  3. 5
      src/views/Guide/ArtList.vue
  4. 1
      src/views/Guide/Guide.vue
  5. 5
      src/views/Nav/Nav.vue

2
public/static/offline/JSON/GetMapInfo.json

File diff suppressed because one or more lines are too long

2
src/types/art.d.ts

@ -5,6 +5,8 @@ declare type Art = {
name: string
nameEn: string
point: string
pointNav: string
logoUrl: string
}
}

5
src/views/Guide/ArtList.vue

@ -49,6 +49,7 @@ function show(item: Art, index: number) {
current.value = index
//
const poi = item.content.point.split('_')
const poi_nav = item.content.pointNav.split('_')
hideMapDialog()
window.Map_QM.addElementByNode(document.getElementById('artInfo'), Number(poi[2]))
const art: any = document.getElementById('artInfo')
@ -61,8 +62,8 @@ function show(item: Art, index: number) {
shopNameEn: item.content.nameEn,
floorOrder: floors[0].floorOrder,
floor: floors[0].floor,
logoUrl: '',
yaxis: Number(poi[2])
logoUrl: item.content.logoUrl,
yaxis: Number(poi_nav[2])
}
store.SET_SHOP(shop)
}

1
src/views/Guide/Guide.vue

@ -133,6 +133,7 @@ getAreaPicList().then(({ data }) => {
function changeFloors(floorOrder: number) {
changeFloor(floorOrder)
mapIdx.value = -2
areaName.value = '全部区域'
currentArtName.value && store.SET_CURRENT_ART_NAME('')
}

5
src/views/Nav/Nav.vue

@ -212,9 +212,6 @@ if (showSearch.value) {
watch(shop, newVal => {
startNavi({ ...newVal })
if (showColumnList.value) {
showColumnList.value = false
}
})
const art: any = document.getElementById('mapContainer')
@ -518,8 +515,6 @@ window.Map_QM.changeWindowResize(2528, 1896)
width: 132px;
height: 132px;
animation-duration: 1s;
animation-duration: 1s;
animation-fill-mode: both;
animation-fill-mode: both;
animation-iteration-count: infinite;
}

Loading…
Cancel
Save