<template>
	<view class="container clearfix">
	
	</view>
</template>

<script>
	import { mapState,mapMutations} from 'vuex';
	export default {
		components:{
			
		},
		data() {
			return {
				userName:'',
				userIdentity:0
			}
		},
		onLoad() {
			if(!this.hasLogin){
				uni.redirectTo({
					url:'../../login/login'
				})
			}
		},
		computed: {
			...mapState(['hasLogin','userInfo','identity','isActivity'])
		},
		methods: {

		},
		onShow(){
			this.$api.getComStorage('userInfo').then((resolve) =>{
				this.userName = resolve.name;
				this.userIdentity = resolve.userIdentity
			}).catch(error =>{
				
			})
		}
	}
</script>

<style lang="scss">
	.container{
		width: 100%;
		height: auto;
	}
</style>
