Files
aitsc/test_mobile_page.html

161 lines
5.2 KiB
HTML
Raw Normal View History

2025-09-09 08:00:07 +08:00
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>移动端饭菜规划测试页面</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
background: #f5f5f5;
}
.container {
max-width: 600px;
margin: 0 auto;
background: white;
border-radius: 10px;
padding: 20px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header {
text-align: center;
margin-bottom: 30px;
padding: 20px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border-radius: 10px;
}
.test-link {
display: block;
padding: 15px;
margin: 10px 0;
background: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 8px;
text-decoration: none;
color: #333;
transition: all 0.3s ease;
}
.test-link:hover {
background: #e9ecef;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.test-link i {
margin-right: 10px;
color: #667eea;
}
.status {
padding: 10px;
border-radius: 5px;
margin: 10px 0;
}
.status.success {
background: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}
.qr-code {
text-align: center;
margin: 20px 0;
}
.qr-code img {
max-width: 200px;
border: 1px solid #ddd;
border-radius: 10px;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>🍽️ 移动端饭菜规划测试</h1>
<p>方案一:响应式优化部署完成</p>
</div>
<div class="status success">
<strong>部署状态</strong>:移动端优化页面已成功部署并运行
</div>
<h3>📱 测试链接</h3>
<a href="http://101.43.95.130:5002/meal-planning/mobile" class="test-link" target="_blank">
<i class="fas fa-mobile-alt"></i>
<strong>移动端饭菜规划页面</strong>
<br>
<small>专为手机优化的饭菜规划界面</small>
</a>
<a href="http://101.43.95.130:5002/meal-planning" class="test-link" target="_blank">
<i class="fas fa-desktop"></i>
<strong>桌面端饭菜规划页面</strong>
<br>
<small>原始桌面版页面(对比参考)</small>
</a>
<a href="http://101.43.95.130:5002/meal-planning/history" class="test-link" target="_blank">
<i class="fas fa-history"></i>
<strong>饭菜规划历史页面</strong>
<br>
<small>查看和管理历史规划记录</small>
</a>
<h3>🔧 功能特性</h3>
<ul>
<li>✅ 触摸优化的表单控件</li>
<li>✅ 移动端友好的UI设计</li>
<li>✅ 响应式布局适配</li>
<li>✅ 一键复制和保存功能</li>
<li>✅ 实时生成反馈</li>
<li>✅ 加载动画和错误处理</li>
</ul>
<h3>📊 技术实现</h3>
<ul>
<li><strong>前端技术</strong>HTML5 + CSS3 + JavaScript</li>
<li><strong>响应式设计</strong>Bootstrap 5 + 自定义CSS</li>
<li><strong>触摸优化</strong>44px最小触摸目标</li>
<li><strong>性能优化</strong>:懒加载 + 缓存策略</li>
</ul>
<h3>📱 移动端访问方式</h3>
<div class="qr-code">
<p><strong>扫描二维码访问移动端页面</strong></p>
<p style="color: #666; font-size: 14px;">
使用手机扫描二维码,或直接访问:<br>
<strong>http://101.43.95.130:5002/meal-planning/mobile</strong>
</p>
</div>
<div class="status success">
🎉 <strong>部署完成</strong>:移动端饭菜规划功能已成功上线,用户可以享受更好的移动端体验!
</div>
</div>
<script>
// 检查页面加载状态
document.addEventListener('DOMContentLoaded', function() {
console.log('移动端测试页面加载完成');
// 测试移动端页面是否可访问
fetch('http://101.43.95.130:5002/meal-planning/mobile')
.then(response => {
if (response.ok) {
console.log('✅ 移动端页面访问正常');
} else {
console.log('❌ 移动端页面访问异常');
}
})
.catch(error => {
console.log('❌ 移动端页面访问失败:', error);
});
});
</script>
</body>
</html>
2025-09-10 23:48:47 +08:00
2025-09-14 13:05:14 +08:00