Files
recommend/templates/analysis.html
赵杰 Jie Zhao (雄狮汽车科技) 20bbda37e9 chore: update code 周一-2025-11 17:11
2025-11-03 17:11:28 +08:00

62 lines
2.5 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>营养分析 - 个性化饮食推荐助手</title>
<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">
<h1>🍎 营养分析</h1>
<p class="subtitle">AI智能营养分析</p>
</header>
<nav class="nav">
<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>
</nav>
<main class="main">
<div class="analysis-container">
<div id="loginSection" class="section">
<h2>用户登录</h2>
<div class="form-group">
<label for="userId">用户ID</label>
<input type="text" id="userId" class="form-input" placeholder="请输入用户ID">
</div>
<button id="loginBtn" class="btn btn-primary">登录</button>
</div>
<div id="requestSection" class="section" style="display: none;">
<h2>营养分析</h2>
<div class="form-group">
<label>餐食信息:</label>
<textarea id="mealData" class="form-textarea" rows="5" placeholder="请输入餐食信息:&#10;例如:燕麦粥、香蕉、牛奶&#10;热量350大卡"></textarea>
</div>
<button id="analyzeBtn" class="btn btn-primary">开始分析</button>
</div>
<div id="analysisSection" class="section" style="display: none;">
<h2>分析结果</h2>
<div id="analysisResult" class="analysis-result"></div>
</div>
<div id="messageArea" class="message-area"></div>
</div>
</main>
<footer class="footer">
<p>&copy; 2024 个性化饮食推荐助手</p>
</footer>
</div>
<script src="{{ url_for('static', filename='js/analysis.js') }}"></script>
</body>
</html>