<script>
	import { write } from '@/uni_modules/yk-log'
	export default {
		onLaunch: function(options) {
			write("输出 平台信息");
			// 检查网络状态
			uni.getNetworkType({
			  success: (res) => {
				write("网络类型"+res.networkType);
			  },
			  fail: (err) => {
				write("获取网络状态失败");
			  }
			})
		},
		
		onShow: function(options) {
			write("显示参数"+ JSON.stringify(options));
		},

		onPageNotFound: function(res) {
			write("页面未找到"+ JSON.stringify(res));
		}
	}
</script>

<style>
</style>
