Files
recommend/templates/analysis.html
赵杰 Jie Zhao (雄狮汽车科技) f65abdef0f feat: complete web app features and fix encoding
2025-11-02 22:23:10 +08:00

67 lines
2.6 KiB
HTML
Raw 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>