wlzboy
2025-09-25 4648a3bee638e9a99d2d80b66f8833b261a2db91
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!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>