|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<!-- ios头部padding适配 -->
|
|
<!-- ios头部padding适配 -->
|
|
- <div id='app' >
|
|
|
|
|
|
+ <div id='app'>
|
|
<div id='fengMap' class='fengMap'></div>
|
|
<div id='fengMap' class='fengMap'></div>
|
|
<!-- 顶部navbar -->
|
|
<!-- 顶部navbar -->
|
|
<NarBar class='nav-bar' v-if='!$route.meta.hideNarBar' />
|
|
<NarBar class='nav-bar' v-if='!$route.meta.hideNarBar' />
|
|
@@ -63,12 +63,15 @@ export default {
|
|
store.commit('SETSSOTOKEN', 'admin:liujiandong')
|
|
store.commit('SETSSOTOKEN', 'admin:liujiandong')
|
|
console.log(window.location.href)
|
|
console.log(window.location.href)
|
|
this.SETHAVEFENGMAP(false)
|
|
this.SETHAVEFENGMAP(false)
|
|
|
|
+ // 判断 安卓,ios
|
|
const { os } = osInfo()
|
|
const { os } = osInfo()
|
|
if (os === 'iOS') {
|
|
if (os === 'iOS') {
|
|
this.isIOS = true
|
|
this.isIOS = true
|
|
} else {
|
|
} else {
|
|
this.isIOS = false
|
|
this.isIOS = false
|
|
}
|
|
}
|
|
|
|
+ // 获取楼层列表
|
|
|
|
+ this.getFloorList()
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
console.log('环境变量', process.env.VUE_APP_RealEnv)
|
|
console.log('环境变量', process.env.VUE_APP_RealEnv)
|
|
@@ -82,7 +85,7 @@ export default {
|
|
...mapGetters(['plazaId', 'fmapID']),
|
|
...mapGetters(['plazaId', 'fmapID']),
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- ...mapActions(['getfmapID']),
|
|
|
|
|
|
+ ...mapActions(['getfmapID', 'getFloors']),
|
|
...mapMutations(['SETHAVEFENGMAP']),
|
|
...mapMutations(['SETHAVEFENGMAP']),
|
|
getFengMap() {
|
|
getFengMap() {
|
|
this.getfmapID().then(() => {
|
|
this.getfmapID().then(() => {
|
|
@@ -127,6 +130,12 @@ export default {
|
|
this.$router.push({ name: this.routeDict[active] })
|
|
this.$router.push({ name: this.routeDict[active] })
|
|
store.commit('SETAPPTITLE', this.titleDict[active])
|
|
store.commit('SETAPPTITLE', this.titleDict[active])
|
|
},
|
|
},
|
|
|
|
+ /**
|
|
|
|
+ * 查询楼层列表
|
|
|
|
+ */
|
|
|
|
+ getFloorList() {
|
|
|
|
+ this.getFloors()
|
|
|
|
+ },
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
plazaId(plazaId) {
|
|
plazaId(plazaId) {
|