<script>
	import upapp from "/utils/upapp.js"
	export default {
		onLaunch: function() {
		
			 uni.log = function(...arg) {
			 	console.log(...arg)
			 
			 	uni.$emit("consoledebug",...arg)
			 }
			
				
			// 初始化推送	
			uni.getPushClientId({
				success: (res) => {}
			})
			
			
			let _Android = uni.getStorageSync('cid') || new Date().getTime()
			// #ifdef APP
			
			     
			
			setTimeout(() => {
				plus.navigator.setFullscreen(true)
			}, 500)
			// 检查是否要更新APP

			setTimeout(() => {
				upapp()
			}, 5000)
			// 获取设备码
			function getAndroidId() {
				plus.android.importClass("android.provider.Settings");
				const context = plus.android.runtimeMainActivity().getApplicationContext();
				const androidId = plus.android.invoke("android.provider.Settings$Secure", "getString",
					context.getContentResolver(), "android_id");
				return androidId;
			}
			_Android = getAndroidId() || plus.device.getOAID() || uni.getSystemInfoSync().deviceId;
			// #endif
			uni.setStorageSync('cid', _Android)
		},
		onShow: function() {

			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	view {
		box-sizing: border-box;
		color: #667085;
		font-size: 14rpx;
	}

	.numcolor1 {
		background: #3336E0;
		color: #fff;
		border-radius: 5rpx;
		letter-spacing: 2rpx;
	}

	.numcolor3 {
		background: #07C688;
		color: #fff;
		border-radius: 5rpx;
		letter-spacing: 2rpx;
	}

	.numcolor2 {
		background: #FF9521;
		color: #fff;
		border-radius: 5rpx;
		letter-spacing: 2rpx;
	}

	.numcolor4 {
		background: #333333;
		color: #fff;
		border-radius: 5rpx;
		letter-spacing: 2rpx;
	}

	/* :root{  

	  font-size: calc(100vw / 960px * 32px) !important;  
	} */
</style>