<template>
	<view class="pages">
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				params:{
					token:'',
				}
				
			}
		},
		onShow() {
			let self = this;
			uni.getStorage({
				key : 'userInfo',
				success:function(res){
					console.log('userInfo customerType',res.data.customerType);
					if(res.data.customerType =='1'){
						console.log('个人用户');
						self.$api.href('/pages/building/building')
						// self.$api.href('/pages/mall/mall');
					}else{
						self.$api.href('/pages/use/use')
					};
				}
			});
		},
		onLoad(option) {
			console.log('this',this)

		},
		methods: {

		}
	}
</script>

<style >
	/* @import url("./index.css"); */
</style>
