From eb6be7e76f6d12ebbc5a552a6fe67e9a79758cb4 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Thu, 20 Jan 2022 17:30:34 +0800
Subject: [PATCH] +
---
src/components/map/components/campusBuildingSearch.vue | 97 +++++++++++++++++++++++++++---------------------
1 files changed, 55 insertions(+), 42 deletions(-)
diff --git a/src/components/map/components/campusBuildingSearch.vue b/src/components/map/components/campusBuildingSearch.vue
index 3ddaea0..174021a 100644
--- a/src/components/map/components/campusBuildingSearch.vue
+++ b/src/components/map/components/campusBuildingSearch.vue
@@ -3,7 +3,7 @@
<div class="map-campus-search"
id="CampusSearchPanel">
<el-input class="search-input"
- placeholder="校园搜索…"
+ placeholder="社区搜索…"
v-model="searchInput"
@input="searchValueChange"
@focus="shortcutFlag = true">
@@ -58,42 +58,48 @@
return {
DC: null,
shortcutList: [
- {
- bgimg: '/img/search/org.png',
- title: '党群机构',
- type: 'orgnav',
- code: 1
- },
- {
- bgimg: '/img/search/ofc.png',
- title: '职能部处',
- type: 'orgnav',
- code: 2
- },
- {
- bgimg: '/img/search/teach.png',
- title: '教学科研',
- type: 'orgnav',
- code: 4
- },
+ // {
+ // 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: 'arc',
+ // path: '/pcLayout/default/arc/teaching',
+ // code: 2
+ // },
{
bgimg: '/img/search/venue.png',
- title: '校内场馆',
+ title: '社区场馆',
type: 'arc',
+ path: '/pcLayout/default/arc/venue',
code: 3
- },
- {
- bgimg: '/img/search/dorm.png',
- title: '学生宿舍',
- type: 'arc',
- code: 4
- },
- {
- bgimg: '/img/search/scenery.png',
- title: '文化风景',
- type: 'arc',
- code: 5
}
+ // {
+ // 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
+ // }
],
shortcutFlag: false,
searchInput: '',
@@ -104,7 +110,7 @@
computed: {
...mapGetters([
'viewer',
- // 校内导航的显示关闭
+ // 社区内导航的显示关闭
'campusNavFlag',
'orgNavBarFlag',
'arcNavBarFlag'
@@ -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)
@@ -252,7 +264,7 @@
this.newPopup(result)
this.viewer.flyToPosition(
- new this.DC.Position(Number(result.jd), Number(result.wd), 3000, Number(result.heading), Number(result.pitch), Number(result.roll)),
+ new this.DC.Position(Number(result.jd), Number(result.wd), 300, Number(result.heading), Number(result.pitch), Number(result.roll)),
() => {
},
@@ -261,7 +273,7 @@
},
newPopup (item) {
- const position = this.DC.Transform.transformWGS84ToCartesian(new this.DC.Position(Number(item.jd), Number(item.wd), Number(item.gd), Number(item.heading), Number(item.pitch), Number(item.roll)))
+ const position = this.DC.Transform.transformWGS84ToCartesian(new this.DC.Position(Number(item.jd), Number(item.wd), Number(item.gd)))
// eslint-disable-next-line no-unused-vars
var popup = new this.DC.DivForms(this.viewer, {
domId: 'divFormsDomBox',
@@ -287,7 +299,7 @@
right: 0;
bottom: auto;
margin: auto;
- width: 320px;
+ width: 330px;
min-height: 40px;
max-height: 360px;
height: auto;
@@ -297,7 +309,7 @@
.search-input {
float: left;
- width: 240px;
+ width: 250px;
height: 40px;
border-radius: 5px 0 0 5px;
@@ -347,7 +359,7 @@
top: 41px;
left: 0;
width: auto;
- min-width: 240px;
+ min-width: 250px;
max-height: 520px;
background: #fff;
overflow-y: auto;
@@ -371,7 +383,7 @@
.map-campus-shortcut {
margin-top: 20px;
width: 100%;
- height: 320px;
+ height: 330px;
background: #fff;
border-radius: 5px;
@@ -381,10 +393,11 @@
display: flex;
width: 100%;
height: 120px;
- justify-content: space-around;
+ justify-content: flex-start;
flex-wrap: wrap;
li {
+ margin: 0 13px;
width: 84px;
height: 76px;
--
Gitblit v1.9.3