|
|
|
@ -33,9 +33,6 @@ const bounceShopAndChangeColor = data => { |
|
|
|
if (lastShop) window.Map_QM.changeMapIPState(lastShop.houseNumber, lastShop.formatColor) |
|
|
|
lastShop = data |
|
|
|
if (!data) return |
|
|
|
const xaxis = JSON.parse(data.xaxis).map(Number) |
|
|
|
showMapDialog() |
|
|
|
window.Map_QM.addElementLabel(document.getElementById('shopInfo'), xaxis[0], xaxis[2]) |
|
|
|
window.Map_QM.changeMapIPState(data.houseNumber, '#516DD8') |
|
|
|
} |
|
|
|
|
|
|
|
@ -45,12 +42,12 @@ export const setShopActive = shop => { |
|
|
|
} |
|
|
|
|
|
|
|
export const setShopInactive = () => { |
|
|
|
hideMapDialog() |
|
|
|
bounceShopAndChangeColor(null) |
|
|
|
} |
|
|
|
|
|
|
|
//点击地图店铺box
|
|
|
|
function onClickShop(event) { |
|
|
|
console.log(event) |
|
|
|
const store = useStore() |
|
|
|
store.SET_FACILITY(null) |
|
|
|
if (!event.data) { |
|
|
|
|