<script>
	export default {
		onLaunch: function() {
			let _this = this
			
			// #ifdef H5  
			console.log("手机端",navigator.userAgent.indexOf('Mobile'))
			if (navigator.userAgent.indexOf('Mobile') === -1) {  
			  // console.log("手机端")
			  self.location.href="http://ginadmin.hxgk.group"
			}  
			// #endif
			
			let systemCache = _this.$commonMethod.getSystemCacheDate('myCache')
			console.log("systemCache",systemCache)
			if(!systemCache){
				_this.$commonMethod.JumpUrl('/pages/login/login')
			}else{
				let currentTime = new Date().getTime() - systemCache.tokenTime
				if (currentTime >= 10800000){
					_this.$commonMethod.verifyPowerIsTrue('myCache')
				}
				// _this.$commonMethod.verifyPowerIsTrue(systemCache,'/pages/login/login')
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
			
		}
	}
</script>

<style  lang="scss">
	/*每个页面公共css */
	/* #ifdef H5 */ 
		// uni-page-head { display: none; } 
	/* #endif */
	@import '@/common/uni.css';
	@import "uview-ui/index.scss";
	@import "@/uni_modules/s-ui/styles/index.scss";
	/*每个页面公共css */
	@import "/common/iconfont.css";
</style>
