index.vue
916 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<template>
<view>
<accountindex v-if="type=='account'"></accountindex>
<mallindex v-else-if="type=='mall'"></mallindex>
<floorindex v-else-if="type=='floor'"></floorindex>
<zoneindex v-else-if="type=='zone'"></zoneindex>
</view>
</template>
<script>
import accountindex from "@/pages/index/accountIndex"
import mallindex from "@/pages/index/mallIndex"
import floorindex from "@/pages/index/floorIndex"
import zoneindex from "@/pages/index/zoneIndex"
export default{
data() {
return {
type:''
}
},
onLoad() {
uni.getStorage({
key:'type',
success:(res)=>{
this.type=res.data;
}
})
console.log(this.permissionsFun('behavior'))
if(!this.permissionsFun('behavior')){
console.log('aaa')
document.getElementsByClassName('uni-tabbar__item')[2].style.display="none"
}
},
components:{
accountindex,mallindex,floorindex,zoneindex
}
}
</script>
<style>
</style>