<script>
	export default {
		data() {
			return {
				main: null,
				poll: null,
				filter:null,
				pusher:null,
				scanObj:null
			}
		},
		onLaunch: function() {
			console.log("onLaunch")
			const users = this.$storage.getJson("users")
			if(!users){
				uni.reLaunch({
					url: "/pages/login/index",
					success:() => {
						plus.navigator.closeSplashscreen()
					}
				});
			}
			else{
				this.$msg.getMsg(this.$storage.get('airportName'))
				plus.navigator.closeSplashscreen()
			}
		},
		onShow: function() {
			this.$devapi.TYPE_DEV_JQHWGEVIQUWVILBE = this.$storage.get("device")?Number(this.$storage.get("device")):0
			this.$devapi.RFIDIntervalTime = this.$storage.get("times")?Number(this.$storage.get("times")):0
			if(this.$storage.getJson("users")){
				this.$msg.getMsg(this.$storage.get('airportName'))
			}
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
			this.$msg.stopMsg()
			if(this.$devapi.RFIDIntervalTime!=0){
				this.$devapi.RFIDStopInventory()
				this.$devapi.ISRFIDOPEN = false
			}
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
