2025-11-02 22:23:10 +08:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
|
<html lang="zh-CN">
|
|
|
|
|
|
<head>
|
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2025-11-03 17:11:28 +08:00
|
|
|
|
<title>营养分析 - 个性化饮食推荐助手</title>
|
2025-11-02 22:23:10 +08:00
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
|
|
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/analysis.css') }}">
|
|
|
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
|
|
|
<div class="container">
|
|
|
|
|
|
<header class="header">
|
2025-11-03 17:11:28 +08:00
|
|
|
|
<h1>🍎 营养分析</h1>
|
|
|
|
|
|
<p class="subtitle">AI智能营养分析</p>
|
2025-11-02 22:23:10 +08:00
|
|
|
|
</header>
|
|
|
|
|
|
|
|
|
|
|
|
<nav class="nav">
|
2025-11-03 17:11:28 +08:00
|
|
|
|
<a href="/" class="nav-item">首页</a>
|
|
|
|
|
|
<a href="/data-collection" class="nav-item">数据采集</a>
|
|
|
|
|
|
<a href="/recommendation" class="nav-item">智能推荐</a>
|
|
|
|
|
|
<a href="/analysis" class="nav-item active">营养分析</a>
|
|
|
|
|
|
<a href="/recitation" class="nav-item">背诵排序</a>
|
2025-11-02 22:23:10 +08:00
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
|
|
<main class="main">
|
|
|
|
|
|
<div class="analysis-container">
|
|
|
|
|
|
<div id="loginSection" class="section">
|
2025-11-03 17:11:28 +08:00
|
|
|
|
<h2>用户登录</h2>
|
2025-11-02 22:23:10 +08:00
|
|
|
|
<div class="form-group">
|
2025-11-03 17:11:28 +08:00
|
|
|
|
<label for="userId">用户ID:</label>
|
|
|
|
|
|
<input type="text" id="userId" class="form-input" placeholder="请输入用户ID">
|
2025-11-02 22:23:10 +08:00
|
|
|
|
</div>
|
2025-11-03 17:11:28 +08:00
|
|
|
|
<button id="loginBtn" class="btn btn-primary">登录</button>
|
2025-11-02 22:23:10 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="requestSection" class="section" style="display: none;">
|
2025-11-03 17:11:28 +08:00
|
|
|
|
<h2>营养分析</h2>
|
2025-11-02 22:23:10 +08:00
|
|
|
|
<div class="form-group">
|
2025-11-03 17:11:28 +08:00
|
|
|
|
<label>餐食信息:</label>
|
|
|
|
|
|
<textarea id="mealData" class="form-textarea" rows="5" placeholder="请输入餐食信息: 例如:燕麦粥、香蕉、牛奶 热量:350大卡"></textarea>
|
2025-11-02 22:23:10 +08:00
|
|
|
|
</div>
|
2025-11-03 17:11:28 +08:00
|
|
|
|
<button id="analyzeBtn" class="btn btn-primary">开始分析</button>
|
2025-11-02 22:23:10 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="analysisSection" class="section" style="display: none;">
|
2025-11-03 17:11:28 +08:00
|
|
|
|
<h2>分析结果</h2>
|
2025-11-02 22:23:10 +08:00
|
|
|
|
<div id="analysisResult" class="analysis-result"></div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div id="messageArea" class="message-area"></div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</main>
|
|
|
|
|
|
|
|
|
|
|
|
<footer class="footer">
|
2025-11-03 17:11:28 +08:00
|
|
|
|
<p>© 2024 个性化饮食推荐助手</p>
|
2025-11-02 22:23:10 +08:00
|
|
|
|
</footer>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<script src="{{ url_for('static', filename='js/analysis.js') }}"></script>
|
|
|
|
|
|
</body>
|
|
|
|
|
|
</html>
|