<template>
	<view class="page">
		<web-view src="http://192.168.4.181:86/index#/index?tab=0"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dateTime: new Date().getTime(),
				statusBarHeight: 0,
				windowHeight: 0,
				sysinfo: {},
			}
		},
		onShow() {
			uni.getSystemInfo({ // 获取当前设备的具体信息
				success: (sysinfo) => {
					this.dateTime = new Date().getTime();
					this.sysinfo = sysinfo;
					this.statusBarHeight = sysinfo.statusBarHeight == 0 ? 0 : sysinfo.statusBarHeight;
					this.windowHeight = sysinfo.windowHeight;
				}
			});
		},
		onBackPress(event) {
			this.dateTime = new Date().getTime()
			return false
		},
		methods: {
		}
	}
</script>

<style>
	.page {
		background-color: #F1F1F1;
		height: 100vh;
	}

	.webview {
		/* // height: 90vh; */
		top: 27px;
		position: fixed;
		left: 0;
		right: 0;
		/* height: calc(100vh - 27px); */
	}
</style>
