Просмотр исходного кода

fix(profile): 我的页移除「我的健康报告」入口及关联死代码

- 删除菜单项「我的健康报告」整块(含 gp-report 图标与 {{ healthReports }} 份 计数)
- 移除 goToHealthReports 跳转方法
- 移除 healthReports data 字段及其在 loadProfileStats 的赋值
- 移除失效的 .gp-report 图标样式(scoped,仅本页使用)
- 成就汇总注释由「勋章+健康报告」更正为「勋章」

健康报告功能仍保留于 pages/health/*(独立入口),仅从「我的」tab 下线该入口。
zxyj-langgraph 9 часов назад
Родитель
Сommit
a4dccd756a
1 измененных файлов с 2 добавлено и 16 удалено
  1. 2 16
      cfc-frontend/pages/profile-main/profile.vue

+ 2 - 16
cfc-frontend/pages/profile-main/profile.vue

@@ -212,14 +212,6 @@
         </view>
       </view>
 
-      <!-- 健康档案(上传报告) -->
-      <view class="menu-row" @click="goToHealthReports">
-        <view class="menu-row-icon gp-report"></view>
-        <text class="menu-row-text">我的健康报告</text>
-        <text class="menu-row-sub">{{ healthReports }} 份</text>
-        <text class="menu-row-arrow">›</text>
-      </view>
-
       <!-- 规划师服务中心入口(仅规划师可见) -->
       <view class="service-center-section" v-if="isTeacherUser && teacherStatus === 'approved'">
         <view class="service-center-card" @click="goToServiceCenter">
@@ -320,9 +312,8 @@ export default {
       totalPoints: 0,
       referralEarnings: 0,
       teamMembers: 0,
-      // 成就汇总(收敛后仅保留勋章数与健康报告数;连续打卡/任务/成长/挑战明细进二级页)
+      // 成就汇总(收敛后仅保留勋章数;健康报告入口已从本页下线,明细进二级页)
       badgesCollected: 0,
-      healthReports: 0,
       // 家庭
       familyMembers: [],
       // 商城(收敛后保留订单四态计数,用于「我的资产」订单汇总入口)
@@ -572,10 +563,9 @@ export default {
       getProfileStats().then(function(res) {
         if (res && res.code === 200 && res.data) {
           var d = res.data
-          // 收敛后本页仅展示积分 / 勋章 / 健康报告三个汇总数;其余明细进二级页
+          // 收敛后本页仅展示积分 / 勋章两个汇总数;其余明细进二级页
           if (d.totalPoints != null) self.totalPoints = d.totalPoints
           if (d.badgesCollected != null) self.badgesCollected = d.badgesCollected
-          if (d.healthReports != null) self.healthReports = d.healthReports
         }
       }).catch(function() {})
     },
@@ -782,9 +772,6 @@ export default {
     goToBadges: function() {
       uni.navigateTo({ url: '/pages/rewards/badge' })
     },
-    goToHealthReports: function() {
-      uni.navigateTo({ url: '/pages/health/report-list' })
-    },
     goToWealthCenter: function() {
       uni.navigateTo({ url: '/pages/promotion/index' })
     },
@@ -921,7 +908,6 @@ $gp-brand-d:  str-slice('#{$brand-primary}', 2);
 .gp-tree { background-image: gp-icon($gp-action-d, '%3Cpath d=%22M12 22V12%22/%3E%3Cpath d=%22M12 12a7 7 0 0 1-7-7 7 7 0 0 1 7 7z%22/%3E%3Cpath d=%22M12 12a7 7 0 0 0 7-7 7 7 0 0 0-7 7z%22/%3E%3Cpath d=%22M7 22h10%22/%3E'); }
 .gp-coin { background-image: gp-icon($gp-wealth-d, '%3Ccircle cx=%2212%22 cy=%2212%22 r=%229%22/%3E%3Cpath d=%22M12 7v10%22/%3E%3Cpath d=%22M9.5 9.5h5%22/%3E%3Cpath d=%22M9.5 14.5h5%22/%3E'); }
 .gp-hands { background-image: gp-icon($gp-wisdom-d, '%3Cpath d=%22M11 17l-5-5-3 3 5 5 6-6%22/%3E%3Cpath d=%22M14 14l6-6-3-3-6 6%22/%3E%3Cpath d=%22M8 11l3 3%22/%3E'); }
-.gp-report { background-image: gp-icon($gp-brand-d, '%3Crect x=%224%22 y=%225%22 width=%2216%22 height=%2215%22 rx=%222%22/%3E%3Cpath d=%22M8 10h8%22/%3E%3Cpath d=%22M8 14h8%22/%3E%3Cpath d=%22M8 18h5%22/%3E'); }
 .gp-mail { background-image: gp-icon($gp-brand-d, '%3Crect x=%222%22 y=%225%22 width=%2220%22 height=%2214%22 rx=%222%22/%3E%3Cpath d=%22M2 7l10 6 10-6%22/%3E'); }
 .gp-gear { background-image: gp-icon($gp-brand-d, '%3Ccircle cx=%2212%22 cy=%2212%22 r=%223%22/%3E%3Cpath d=%22M19.4 15a1.6 1.6 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.6 1.6 0 0 0-2.7 1.1V21a2 2 0 1 1-4 0v-.1A1.6 1.6 0 0 0 7 19.4a1.6 1.6 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1A1.6 1.6 0 0 0 3 14a1.6 1.6 0 0 0-1.6-1.1H1a2 2 0 1 1 0-4h.1A1.6 1.6 0 0 0 3 7.6a1.6 1.6 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1A1.6 1.6 0 0 0 8 3h.1A1.6 1.6 0 0 0 9 1.4V1a2 2 0 1 1 4 0v.1A1.6 1.6 0 0 0 15 3a1.6 1.6 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1A1.6 1.6 0 0 0 21 8v.1a2 2 0 1 1 0 4H21%22/%3E'); }
 .gp-teacher { background-image: gp-icon($gp-brand-d, '%3Cpath d=%22M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2%22/%3E%3Ccircle cx=%2212%22 cy=%227%22 r=%224%22/%3E'); }