index.vue
724 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
<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>