17846405080 пре 10 месеци
родитељ
комит
ad55df5d79

+ 0 - 42
campus_health_app/frontend/campus-health-app/src/app/modules/school-services/school-services.component.html

@@ -30,48 +30,6 @@
         </div>
         </div>
       </section>
       </section>
 
 
-      <!-- 食物热量计算 -->
-      <section class="service-section">
-        <h2>热量计算工具</h2>
-        <div class="calorie-calculator">
-          <div class="food-search">
-            <input type="text" [(ngModel)]="searchFoodQuery" placeholder="搜索食物..." />
-          </div>
-          <div class="food-list">
-            @for (item of foodItems; track item.id) {
-              <div class="food-item">
-                <div class="food-info">
-                  <span class="food-name">{{ item.name }}</span>
-                  <span class="food-category">{{ item.category }}</span>
-                </div>
-                <div class="food-nutrition">
-                  <span>{{ item.calories }} kcal</span>
-                  <span>{{ item.protein }}g 蛋白质</span>
-                </div>
-                <button class="add-food-btn" (click)="addFoodToCalculator(item)">+ 添加</button>
-              </div>
-            }
-          </div>
-          @if (selectedFoods.length > 0) {
-            <div class="calculator-results">
-            <h3>已选食物</h3>
-            <div class="selected-foods">
-              @for (food of selectedFoods; track food.item.id) {
-                <div class="selected-food">
-                  <span>{{ food.item.name }} x {{ food.quantity }}</span>
-                  <button class="remove-food-btn" (click)="removeFoodFromCalculator(food.item.id)">×</button>
-                </div>
-              }
-            </div>
-            <div class="nutrition-summary">
-                <p><strong>总热量:</strong> {{ calculateTotalCalories() }} kcal</p>
-                <p><strong>总蛋白质:</strong> {{ calculateTotalProtein() }} g</p>
-              </div>
-            </div>
-          }
-        </div>
-      </section>
-
       <!-- 运动组队 -->
       <!-- 运动组队 -->
       <section class="service-section">
       <section class="service-section">
         <h2>运动组队</h2>
         <h2>运动组队</h2>

+ 0 - 162
campus_health_app/frontend/campus-health-app/src/app/modules/school-services/school-services.component.scss

@@ -44,11 +44,6 @@
   overflow-y: auto;
   overflow-y: auto;
 }
 }
 
 
-.school-services-content {
-  max-width: 1200px;
-  margin: 0 auto;
-}
-
 // 服务区块通用样式
 // 服务区块通用样式
 .service-section {
 .service-section {
   background-color: #fff;
   background-color: #fff;
@@ -147,163 +142,6 @@
   color: #27ae60;
   color: #27ae60;
 }
 }
 
 
-// 热量计算工具样式
-.calorie-calculator {
-  background: #f8f9fa;
-  border-radius: 8px;
-  padding: 1.5rem;
-}
-
-.food-search {
-  margin-bottom: 1.5rem;
-}
-
-.food-search input {
-  width: 100%;
-  padding: 0.8rem;
-  border: 1px solid #ddd;
-  border-radius: 6px;
-  font-size: 1rem;
-  transition: border-color 0.3s;
-}
-
-.food-search input:focus {
-  outline: none;
-  border-color: #3498db;
-}
-
-.food-list {
-  display: grid;
-  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
-  gap: 1rem;
-  margin-bottom: 1.5rem;
-}
-
-.food-item {
-  display: flex;
-  justify-content: space-between;
-  align-items: center;
-  background: #fff;
-  padding: 1rem;
-  border-radius: 6px;
-  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
-}
-
-.food-info {
-  flex: 1;
-}
-
-.food-name {
-  display: block;
-  font-weight: bold;
-  color: #2c3e50;
-  margin-bottom: 0.3rem;
-}
-
-.food-category {
-  font-size: 0.85rem;
-  color: #95a5a6;
-  background: #ecf0f1;
-  padding: 0.2rem 0.6rem;
-  border-radius: 12px;
-}
-
-.food-nutrition {
-  flex: 1;
-  text-align: center;
-  font-size: 0.9rem;
-  color: #7f8c8d;
-}
-
-.food-nutrition span {
-  display: block;
-  margin-bottom: 0.2rem;
-}
-
-.add-food-btn {
-  background-color: #3498db;
-  color: white;
-  border: none;
-  padding: 0.6rem 1.2rem;
-  border-radius: 6px;
-  cursor: pointer;
-  font-size: 1rem;
-  transition: background-color 0.3s;
-}
-
-.add-food-btn:hover {
-  background-color: #2980b9;
-}
-
-.calculator-results {
-  background: #fff;
-  padding: 1.5rem;
-  border-radius: 8px;
-  border-left: 4px solid #27ae60;
-}
-
-.calculator-results h3 {
-  margin-top: 0;
-  margin-bottom: 1rem;
-  color: #2c3e50;
-  font-size: 1.2rem;
-}
-
-.selected-foods {
-  max-height: 150px;
-  overflow-y: auto;
-  margin-bottom: 1rem;
-}
-
-.selected-food {
-  display: flex;
-  justify-content: space-between;
-  align-items: center;
-  padding: 0.8rem;
-  background: #f8f9fa;
-  border-radius: 4px;
-  margin-bottom: 0.5rem;
-}
-
-.selected-food span {
-  font-size: 0.95rem;
-  color: #2c3e50;
-}
-
-.remove-food-btn {
-  background: #e74c3c;
-  color: white;
-  border: none;
-  width: 24px;
-  height: 24px;
-  border-radius: 50%;
-  cursor: pointer;
-  font-size: 1rem;
-  line-height: 1;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-  transition: background-color 0.3s;
-}
-
-.remove-food-btn:hover {
-  background: #c0392b;
-}
-
-.nutrition-summary {
-  text-align: center;
-  padding: 1rem;
-  background: #e8f5e8;
-  border-radius: 6px;
-}
-
-.nutrition-summary p {
-  margin: 0.3rem 0;
-  font-size: 1.1rem;
-  font-weight: bold;
-  color: #2c3e50;
-}
-
 // 运动组队样式
 // 运动组队样式
 .exercise-teams {
 .exercise-teams {
   display: grid;
   display: grid;

+ 0 - 1
campus_health_app/frontend/campus-health-app/src/styles.scss

@@ -188,7 +188,6 @@ body {
 .article-card,
 .article-card,
 .school-services-container,
 .school-services-container,
 .school-services-main,
 .school-services-main,
-.school-services-content,
 .service-section,
 .service-section,
 .dining-options,
 .dining-options,
 .dining-card,
 .dining-card,