<!DOCTYPE html>
|
<html lang="zh-CN">
|
<head>
|
<meta charset="UTF-8">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<title>H5测试页面</title>
|
<style>
|
body {
|
font-family: Arial, sans-serif;
|
margin: 0;
|
padding: 20px;
|
background-color: #f5f5f5;
|
}
|
.container {
|
max-width: 600px;
|
margin: 0 auto;
|
background: white;
|
padding: 20px;
|
border-radius: 8px;
|
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
}
|
h1 {
|
color: #409eff;
|
text-align: center;
|
}
|
.info {
|
background: #f0f9ff;
|
padding: 15px;
|
border-radius: 4px;
|
margin: 20px 0;
|
}
|
.success {
|
color: #67c23a;
|
font-weight: bold;
|
}
|
</style>
|
</head>
|
<body>
|
<div class="container">
|
<h1>H5页面测试</h1>
|
<div class="info">
|
<p class="success">✅ 如果您能看到这个页面,说明服务器运行正常!</p>
|
<p>当前时间: <span id="currentTime"></span></p>
|
<p>页面路径: <span id="currentPath"></span></p>
|
</div>
|
|
<h2>测试链接</h2>
|
<ul>
|
<li><a href="/#/h5/simple">简单测试页面</a></li>
|
<li><a href="/#/h5/test">完整测试页面</a></li>
|
<li><a href="/#/h5/task/create">创建任务页面</a></li>
|
</ul>
|
|
<h2>调试信息</h2>
|
<div id="debugInfo">
|
<p>用户代理: <span id="userAgent"></span></p>
|
<p>屏幕分辨率: <span id="screenSize"></span></p>
|
<p>视口大小: <span id="viewportSize"></span></p>
|
</div>
|
</div>
|
|
<script>
|
// 显示当前时间
|
document.getElementById('currentTime').textContent = new Date().toLocaleString();
|
|
// 显示当前路径
|
document.getElementById('currentPath').textContent = window.location.href;
|
|
// 显示用户代理
|
document.getElementById('userAgent').textContent = navigator.userAgent;
|
|
// 显示屏幕分辨率
|
document.getElementById('screenSize').textContent = screen.width + 'x' + screen.height;
|
|
// 显示视口大小
|
document.getElementById('viewportSize').textContent = window.innerWidth + 'x' + window.innerHeight;
|
|
console.log('H5测试页面已加载');
|
console.log('当前URL:', window.location.href);
|
</script>
|
</body>
|
</html>
|