From 19621635052322005f31579f7f3d481750898d7c Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 31 Dec 2021 08:56:36 +0800
Subject: [PATCH] 部分更改

---
 src/components/map/components/campusBuildingSearch.vue |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/src/components/map/components/campusBuildingSearch.vue b/src/components/map/components/campusBuildingSearch.vue
index 3ddaea0..7c9e6c3 100644
--- a/src/components/map/components/campusBuildingSearch.vue
+++ b/src/components/map/components/campusBuildingSearch.vue
@@ -62,36 +62,42 @@
                     bgimg: '/img/search/org.png',
                     title: '党群机构',
                     type: 'orgnav',
+                    path: '/pcLayout/default/orgnav/masses',
                     code: 1
                 },
                 {
                     bgimg: '/img/search/ofc.png',
                     title: '职能部处',
                     type: 'orgnav',
+                    path: '/pcLayout/default/orgnav/ofc',
                     code: 2
                 },
                 {
                     bgimg: '/img/search/teach.png',
                     title: '教学科研',
-                    type: 'orgnav',
-                    code: 4
+                    type: 'arc',
+                    path: '/pcLayout/default/arc/teaching',
+                    code: 2
                 },
                 {
                     bgimg: '/img/search/venue.png',
                     title: '校内场馆',
                     type: 'arc',
+                    path: '/pcLayout/default/arc/venue',
                     code: 3
                 },
                 {
                     bgimg: '/img/search/dorm.png',
                     title: '学生宿舍',
                     type: 'arc',
+                    path: '/pcLayout/default/arc/dorm',
                     code: 4
                 },
                 {
                     bgimg: '/img/search/scenery.png',
                     title: '文化风景',
                     type: 'arc',
+                    path: '/pcLayout/default/arc/culture',
                     code: 5
                 }
             ],
@@ -136,6 +142,11 @@
 
         openModelPopup (param) {
             var list = []
+            if (this.$route.path.indexOf('/service') != -1) {
+                this.$store.dispatch('delVisitedViews', this.$route)
+                this.$router.push('/pcLayout/default')
+            }
+
             if (param.type == 'orgnav') {
                 var path = this.$route.path
                 if (path.indexOf('/arc') != -1) {
@@ -172,7 +183,8 @@
                             QRImg: item.codeurl,
                             address: item.address,
                             telephone: item.telephone,
-                            introduce: item.introduce
+                            introduce: item.introduce,
+                            videourl: item.videourl
                         })
                     })
 
@@ -234,7 +246,7 @@
             if (result.panoramaurl != '') {
                 this.$store.commit('SET_PANORAMAURL', result.panoramaurl)
             }
-            if (result.videourl != '') {
+            if (result.videourl && result.videourl != '') {
                 this.$store.commit('SET_MONITORURL', result.videourl)
             }
             this.$store.commit('SET_POPUPIMGATLAS', imgArr)

--
Gitblit v1.9.3