index.vue 916 Bytes
<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>