<script lang="uts">
	let firstBackTime = 0
	export default {
		usrInfo:{},
		allMsg:[],
		infoList:[],
		productName:"",
		productUrl:'',
		storeName:'',
		dealerAddress:'',
		onLaunch: function () {
			console.log('App Launch')
		},
		onShow: function () {
			console.log('App Show')
		},
		onHide: function () {
			console.log('App Hide')
		},
		// #ifdef APP-ANDROID
		onLastPageBackPress: function () {
			console.log('App LastPageBackPress')
			if (firstBackTime == 0) {
				uni.showToast({
					title: '再按一次退出应用',
					position: 'bottom',
				})
				firstBackTime = Date.now()
				setTimeout(() => {
					firstBackTime = 0
				}, 2000)
			} else if (Date.now() - firstBackTime < 2000) {
				firstBackTime = Date.now()
				uni.exit()
			}
		},
		// #endif
		onExit: function () {
			console.log('App Exit')
		},
	}
</script>

<style>
	@import "@/static/iconfont.css";
	@import "css/header.css";
	/*每个页面公共css */
	body{
		background-color: #ffffff;
	}
	
	body {
		  font-family: Arial, sans-serif;
		  margin: 0;
		  padding: 0;
	}
	body::-webkit-scrollbar {
  display: none;
}
	 @media only screen and (-webkit-min-device-pixel-ratio:2),(min-device-pixel-ratio:2){
	    .uni-hairline{
	        border-width: 0.5px !important;
	    }
	    .uni-nbfc {
	        background-color: transparent !important;
	    }
	  }
	  
	  @media screen and (min-width: 320px) {
	      html {font-size: 14px;}
	  }
	   
	  @media screen and (min-width: 360px) {
	      html {font-size: 16px;}
	  }
	   
	  @media screen and (min-width: 400px) {
	      html {font-size: 18px;}
	  }
	   
	  @media screen and (min-width: 440px) {
	      html {font-size: 20px;}
	  }
	   
	  @media screen and (min-width: 480px) {
	      html {font-size: 22px;}
	  }
	   
	  @media screen and (min-width: 640px) {
	      html {font-size: 28px;}
	  }

</style>