From 81a26f23ac0567da23b1621d4813a5a2ab54baa2 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 06 Dec 2023 16:36:39 +0800
Subject: [PATCH] 校园搜索功能修改完善,及地图点击弹窗显示内容更换
---
src/components/map/index.vue | 28 ++++------------------------
1 files changed, 4 insertions(+), 24 deletions(-)
diff --git a/src/components/map/index.vue b/src/components/map/index.vue
index ea0be1c..8112c63 100644
--- a/src/components/map/index.vue
+++ b/src/components/map/index.vue
@@ -6,7 +6,7 @@
<mapPopup />
- <!-- <campusBuildingSearch ref="campusBuildingSearch" /> -->
+ <campusBuildingSearch ref="campusBuildingSearch" />
<campusNav ref="campusNavRoute" v-show="campusNavFlag" />
@@ -357,29 +357,9 @@
if (JSON.stringify(res.data.data) == '{}') return
let result = res.data.data
- that.$store.commit('SET_MONITORPOPUP', false)
- that.$store.commit("SET_PANORAMAPOPUP", false)
-
- this.$store.commit('SET_STATENAME', result.mechanismname)
- this.$store.commit('SET_PANORAMAURL', result.panoramaurl)
- this.$store.commit('SET_INTRODUCETEXT', result.introduce)
-
- let imgArr = result.tpurl.split(',')
-
- this.$store.commit('SET_POPUPBGURL', imgArr[0])
- this.$store.commit('SET_POPUPIMGATLAS', imgArr)
- this.$store.commit('SET_POPUPQRURL', result.codeurl)
-
- this.$store.commit("SET_POINTPOSITION", [
- Number(event.event.coordinate[0]),
- Number(event.event.coordinate[1]),
- Number(0),
- Number(0),
- Number(-90),
- Number(0),
- ])
-
- this.$store.commit("SET_DETAILSPOPUP", true)
+ this.$store.dispatch('setOurDataInPoput', {
+ item: result
+ })
this.openPopups({
lng: Number(event.event.coordinate[0]),
--
Gitblit v1.9.3