<script>
	import {authUrl} from '@/common/conf/config.js';
	export default {
		onLaunch: function() {
			console.log('App Launch')
			let userId = uni.getStorageSync("userId")
			if (this.$isWxBrowser() && this.$u.test.isEmpty(userId)) {
				let path = 'pages/index/guide';
				window.location.href = authUrl(path);
			} else {
				uni.reLaunch({
					url: "/pages/index/guide"
				})
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
	}
</script>

<style lang="scss">
		@import "uview-ui/index.scss";
		@import "common/css/colorui/main.css";
		@import "common/css/colorui/icon.css";
		@import "common/css/app.scss";
</style>
