index.vue 724 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;
			}
		})
	},
	components:{
		accountindex,mallindex,floorindex,zoneindex
	}
}
	
</script>

<style>
	
</style>