28
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
<title2 title="车船" />
|
<title2 title="车船" />
|
||||||
<div class="tabs-list">
|
<div class="tabs-list">
|
||||||
<div class="t-item"
|
<div class="t-item"
|
||||||
|
style="cursor: pointer;"
|
||||||
v-for="(item,index) in tabsList"
|
v-for="(item,index) in tabsList"
|
||||||
:class="tabsListIndex==index?'tabs-active':''"
|
:class="tabsListIndex==index?'tabs-active':''"
|
||||||
@click="handleTabsList(item)"
|
@click="handleTabsList(item)"
|
||||||
@@ -115,6 +116,7 @@ import PubSub from 'pubsub-js'
|
|||||||
])
|
])
|
||||||
let tabsListIndex = ref(0)
|
let tabsListIndex = ref(0)
|
||||||
const handleTabsList = (item)=>{
|
const handleTabsList = (item)=>{
|
||||||
|
scenicSpotId.value = item.scenicSpotId
|
||||||
tabsListIndex.value = item.id
|
tabsListIndex.value = item.id
|
||||||
PubSub.publish('tabsListChange', item)
|
PubSub.publish('tabsListChange', item)
|
||||||
}
|
}
|
||||||
@@ -243,7 +245,6 @@ import PubSub from 'pubsub-js'
|
|||||||
// console.log(item,'item')
|
// console.log(item,'item')
|
||||||
|
|
||||||
if (item.lng && item.lat) {
|
if (item.lng && item.lat) {
|
||||||
console.log(item,2255555555)
|
|
||||||
// if (item.status == '行驶') {
|
// if (item.status == '行驶') {
|
||||||
// console.log(item,'8888888888888888')
|
// console.log(item,'8888888888888888')
|
||||||
// if(item.type==1){
|
// if(item.type==1){
|
||||||
@@ -254,7 +255,6 @@ import PubSub from 'pubsub-js'
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
if (item.accStatus == 1) {
|
if (item.accStatus == 1) {
|
||||||
console.log(item,9999999999)
|
|
||||||
if(item.type==1){
|
if(item.type==1){
|
||||||
addMarker(shipIcon, [item.lng, item.lat], [36, 50])
|
addMarker(shipIcon, [item.lng, item.lat], [36, 50])
|
||||||
|
|
||||||
@@ -364,7 +364,6 @@ import PubSub from 'pubsub-js'
|
|||||||
currentMarker.value = null
|
currentMarker.value = null
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
console.log(222,infoBox.value,'infoBox.value')
|
|
||||||
if (lastInfoBox.value) lastInfoBox.value?.close()
|
if (lastInfoBox.value) lastInfoBox.value?.close()
|
||||||
infoBox.value.setContent(setHtml(data))
|
infoBox.value.setContent(setHtml(data))
|
||||||
lastInfoBox.value = infoBox.value
|
lastInfoBox.value = infoBox.value
|
||||||
|
|||||||
@@ -62,7 +62,8 @@
|
|||||||
})
|
})
|
||||||
PubSub.subscribe('tabsListChange', (msg, data) => {
|
PubSub.subscribe('tabsListChange', (msg, data) => {
|
||||||
console.log(data.scenicSpotId,22222222)
|
console.log(data.scenicSpotId,22222222)
|
||||||
sendMessage(JSON.stringify({ action: 'start', type: '',"keyword":keyword.value, scenicSpotId: data.scenicSpotId }))
|
scenicSpotId.value = data.scenicSpotId
|
||||||
|
sendMessage(JSON.stringify({ action: 'start', type: '',"keyword":keyword.value, scenicSpotId: scenicSpotId.value }))
|
||||||
})
|
})
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user