<script>
	export default {
		onLaunch: function() {
			const token = {
				loginName: uni.getStorageSync('loginName'),
				secretKey: uni.getStorageSync('secretKey'),
			}
			if (token.secretKey){
				uni.reLaunch({
					url: '/pages/homeIndex/index'
				})
				console.log(token.secretKey,'App Launch')
			} else {
				uni.reLaunch({
					url: '/pages/login/login'
				})
				console.log(token.secretKey,'App Launch2')
			}
			
		},
		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{
		width: 100%;
		height: 100%;
		// background: linear-gradient(-180deg, #64acf0 0%, #ffffff 62%,#EEF3F6 70%);
	}

	/* #endif */
	.example-info {
		font-size: 14px;
		color: #333;
		padding: 10px;
	}
</style>
