erp-frontend/public/test-simple.html
2026-04-01 17:07:17 +08:00

134 lines
4.3 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ERP系统测试页面</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
margin: 0;
padding: 40px;
background: #f5f7fa;
color: #333;
}
.container {
max-width: 800px;
margin: 0 auto;
background: white;
padding: 40px;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
h1 {
color: #409eff;
margin-top: 0;
}
.status {
padding: 15px;
border-radius: 8px;
margin: 20px 0;
}
.success {
background: #f0f9eb;
color: #67c23a;
border: 1px solid #e1f3d8;
}
.error {
background: #fef0f0;
color: #f56c6c;
border: 1px solid #fde2e2;
}
.info {
background: #f4f4f5;
color: #909399;
border: 1px solid #e9e9eb;
}
.links {
margin-top: 30px;
}
.link {
display: inline-block;
margin: 10px 15px 10px 0;
padding: 10px 20px;
background: #409eff;
color: white;
text-decoration: none;
border-radius: 6px;
transition: background 0.3s;
}
.link:hover {
background: #66b1ff;
}
.link.secondary {
background: #909399;
}
.link.secondary:hover {
background: #a6a9ad;
}
code {
background: #f5f7fa;
padding: 2px 6px;
border-radius: 4px;
font-family: 'Courier New', monospace;
}
</style>
</head>
<body>
<div class="container">
<h1>🏗️ ERP系统测试页面</h1>
<div class="status success">
<strong>Vite开发服务器正常运行</strong><br>
服务器地址: <code>http://localhost:5155</code><br>
当前时间: <span id="current-time"></span>
</div>
<h2>📊 系统状态</h2>
<div class="status info">
🔍 <strong>检测到的问题:</strong><br>
1. 主应用页面可能因路由或组件错误导致空白<br>
2. 需要检查浏览器控制台错误信息<br>
3. 可能需要修复Vue组件编译问题
</div>
<h2>🔧 测试链接</h2>
<div class="links">
<a href="/" class="link" target="_blank">🏠 测试主应用</a>
<a href="/print/log" class="link" target="_blank">📋 测试打印日志</a>
<a href="/print/batch-detail?id=test123" class="link" target="_blank">📄 测试批次详情</a>
<a href="/test-vue-app.html" class="link secondary" target="_blank">🧪 Vue应用测试</a>
<a href="/test-mock.html" class="link secondary" target="_blank">🔄 Mock API测试</a>
</div>
<h2>📝 调试步骤</h2>
<ol>
<li><code>F12</code> 打开浏览器开发者工具</li>
<li>查看 <strong>Console</strong> 选项卡中的错误信息</li>
<li>查看 <strong>Network</strong> 选项卡中的请求状态</li>
<li>查看 <strong>Elements</strong> 选项卡中的HTML结构</li>
<li>将错误信息截图或复制发送给我</li>
</ol>
<h2>🚨 紧急修复方案</h2>
<p>如果主应用仍然空白,可以:</p>
<ul>
<li>使用纯HTML测试页面绕过Vue编译问题</li>
<li>检查Vite编译日志中的具体错误</li>
<li>回退到之前的稳定版本</li>
</ul>
</div>
<script>
// 显示当前时间
document.getElementById('current-time').textContent = new Date().toLocaleString('zh-CN');
// 测试链接点击事件
document.querySelectorAll('.link').forEach(link => {
link.addEventListener('click', function(e) {
console.log('测试链接点击:', this.href);
});
});
</script>
</body>
</html>