<template>
	<view>
		<!-- 基本信息 -->
		<view class="top_bg"></view>
		<t-m-info></t-m-info>
		
		<!-- t-m-icon -->
		<t-m-icon></t-m-icon>
		
		<t-m-list></t-m-list>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		onLoad() {
			// 判断会否登录、没有则跳转至登录页
			const Authorization = uni.getStorageSync('Authorization')
			if (Authorization == '') {
			
				uni.showToast({
					icon: "none",
					title: "用户未登录"
				})
			
				setTimeout(function() {
					uni.redirectTo({
						url: "../../login/login"
					})
				}, 1000)
			}
		}
	}
</script>

<style lang="scss">
	.top_bg {
		height: 60px;
		background: #009FE8;
	}
</style>
