<script>
	import {allScan, startScan ,stopScan,Format} from '@/components/utils/validate'
	export default {
		data() {
			return {
				main: null,
				poll: null,
				filter:null,
				pusher:null,
			}
		},
		onLaunch: function() {
			const users = this.$storage.getJson("users")
			if(!users){
				uni.reLaunch({
					url: "/pages/login/index",
					success:() => {
						plus.navigator.closeSplashscreen()
					}
				});
			}
			else{
				plus.navigator.closeSplashscreen()
			}
		},
		onShow: function() {
			console.log('App Show')
			let arr = allScan(this.main,this.poll,this.filter)
			startScan(arr[0],arr[1],arr[2])
		},
		onHide: function() {
			console.log('App Hide')
			let arr = allScan(this.main,this.poll,this.filter)
			stopScan(arr[0],arr[1],arr[2])
		}
	}
</script>

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