<script>
	export default {
		globalData: {
			tabhei: 100
		},
		data() {},
		onLaunch: function() {
          this.init()
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		methods: {
			init() {
				let xh = uni.getSystemInfoSync().platform
				switch (uni.getSystemInfoSync().platform) {
					case 'android':
						this.globalData.tabhei = 100
						console.log('运行Android上')
						break;
					case 'ios':
						console.log('运行iOS上')
						this.globalData.tabhei = 120
						break;
					default:
						this.globalData.tabhei = 100
						console.log('运行在开发者工具上')
						break;
				}
			}
		}
	}
</script>

<style lang="scss">
	@import "uview-ui/index.scss";
	@import '/static/css/chj.css'
	/*每个页面公共css */
</style>
