<script>
	export default {
		onLaunch: function() {
			const token = {
				loginName: uni.getStorageSync('loginName'),
				secretKey: uni.getStorageSync('Gs-Token'),
			}
			if (token.secretKey){
				uni.reLaunch({
					url: '/pages/homeIndex/index'
				})
			} else {
				uni.reLaunch({
					url: '/pages/login/login'
					// url:'/pages/mypage/mypage'
				})
			}
			
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import '@/uni_modules/uni-scss/index.scss';
  @import "@/uni_modules/uview-ui/index.scss";
	/* #ifndef APP-NVUE */
	@import '@/static/customicons.css';
	// 设置整个项目的背景色
	page {
		// background: linear-gradient(-180deg, #64acf0 0%, #ffffff 62%,#EEF3F6 70%);
	}

	/* #endif */
	.example-info {
		font-size: 14px;
		color: #333;
		padding: 10px;
	}
	.userinfo{
		border-radius: 5px;
		display: flex;
		flex-direction: row;
		margin-top: 5vh;
		margin-left: 2vw;
		margin-bottom: 2vh;
		align-items: center;
		width: 95%;
		height: 6vh;
		background-color: #007afd;
		
	}
	.icon{
		width: 6vw;
		height: 6vh;
		align-items: center;
		line-height: 6vh;
	}
	.Header{
		display: flex;
		flex-direction: row;
		flex: 0.95;
		justify-content: center;
		color: white;
		font-size: 20px;		
	}
	.align-center{
		display: flex;
		align-items: center;
	}
	.align-justufy-center{
		display: flex;
		align-items: center;
		justify-content: center;;
	}
	.justify-center{
		display: flex;
		justify-content: center;
	}
	.justify-between{
		display: flex;
		justify-content: space-between;
	}
	page {
	  height: 100%;
	  background-color: #f3f5f8;
	}
	.time-ranger{
	  background-color: #ffffff;
	  padding: 0px 10px;
	  padding-bottom: 10px;
	   .start-time, .end-time{
	    display: flex;
	    align-items: center;
	    padding: 10px 0;
	    border-bottom: 1px solid #dfdfdf;
	  }
	  .search-btn{
	    margin: 3px 0 0 5px;
	    // color: #3399ef;
	  }
	}
</style>
