<script>
import checkappupdate from 'common/checkappupdate.js'
export default {
  onLaunch: function () {
		// #ifdef APP-PLUS
    plus.navigator.setFullscreen(true);
    plus.screen.lockOrientation('landscape-primary');
		
		const fn = () => {
		    checkappupdate.check({
		    		title: '检测到有新版本！',
		    		content: '请升级app到最新版本！',
		    		canceltext: '暂不升级',
		    		oktext: '立即升级'
		    })
		    return fn    // 函数中返回自身
		}
		setInterval(fn(), 3600 * 1000)
		// #endif
  },
  //把想要全局的数据放在globalData对象里，globalData是uniapp的不可以自定义命名。
  globalData: {
    printSocket: null
  },
  onShow: function () {},
  onHide: function () {}
};
</script>

<style lang="scss">
/*每个页面公共css */
@import '@/uview-ui/index.scss';
@import '@/static/css/global.scss';
/deep/ .uni-select__selector-scroll {
  max-height: 120px !important;
}

/deep/ .times .uni-date-picker__container {
  height: 400px !important;
  z-index: 10000 !important;
  position: fixed !important;
}

/deep/ .uni-pagination__num-tag {
  width: 60rpx !important;
  height: 60rpx !important;
}
</style>
