From bda127148b7a03f515b845dead5b70508a7918f7 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 24 Dec 2021 15:41:37 +0800
Subject: [PATCH] 逻辑调整部分文件更换

---
 src/pcviews/campusnavi/index.vue |   57 +++++++++++++++++++++++++++++++++++++++------------------
 1 files changed, 39 insertions(+), 18 deletions(-)

diff --git a/src/pcviews/campusnavi/index.vue b/src/pcviews/campusnavi/index.vue
index 21a01c1..4f02eb1 100644
--- a/src/pcviews/campusnavi/index.vue
+++ b/src/pcviews/campusnavi/index.vue
@@ -1,35 +1,56 @@
 <template>
     <div>
-        <campusNav ref="campusNavRoute"
-                   :comeName="comeName"
-                   :getToName="getToName"
-                   v-show="campusNavFlag" />
+
     </div>
 </template>
 
 <script>
+
+import { mapGetters } from 'vuex'
+
 export default {
     data () {
         return {
-            campusNavFlag: true,
-            comeName: '',
-            getToName: ''
+
         }
     },
+
+    computed: {
+        ...mapGetters([
+            'viewer',
+            'popupBgUrl',
+            'pupupQRUrl',
+            // 终点
+            'terminus',
+            // 起点
+            'startingPoint',
+            // 点信息
+            'pointPosition',
+            // 点名称
+            'stateName',
+            // 地址
+            'siteName',
+            // 介绍
+            'introduceText',
+            // 全景地址
+            'panoramaUrl',
+            // 详情弹框显示关闭
+            'detailsPopup',
+            // 全景弹框显示关闭
+            'panoramaPopup',
+            // 校内导航的显示关闭
+            'campusNavFlag'
+        ])
+    },
+
+    mounted () {
+        if (this.campusNavFlag == false) this.$store.commit('SET_CAMPUSNAVFLAG', true)
+    },
+
     methods: {
-        closeCampusNav () {
-            this.campusNavFlag = false
-            this.$refs.campusNavRoute.clearLayer()
-            this.$store.commit('SET_STARTINGPOINT', null)
-            this.$store.commit('SET_TERMINUS', null)
-            this.comeName = ''
-            this.getToName = ''
-            this.$store.dispatch('delVisitedViews', this.$route)
-            this.$router.push('/pcLayout/default')
-        }
+
     },
     destroyed () {
-        this.campusNavFlag = false
     }
 }
 </script>

--
Gitblit v1.9.3