فهرست منبع

fix: 智首页六维认知雷达图无数据时也显示人群平均值

E2E Test Bot 3 ماه پیش
والد
کامیت
ae3bca99c7
1فایلهای تغییر یافته به همراه9 افزوده شده و 3 حذف شده
  1. 9 3
      cfc-frontend/pages/wisdom/index.vue

+ 9 - 3
cfc-frontend/pages/wisdom/index.vue

@@ -8,11 +8,12 @@
       tagline="学以启智 · 慧及未来"
       quote="知者不惑,仁者不忧" />
 
-    <!-- 2. 认知雷达图(登录后) -->
-    <view class="section" v-if="isLoggedIn && cognitiveReport">
+    <!-- 2. 认知雷达图(始终显示,无数据时仅显示人群平均值) -->
+    <view class="section">
       <view class="section-header">
         <text class="section-title">认知雷达</text>
-        <text class="section-more" @click="goCognitiveReport">查看详情 ›</text>
+        <text class="avg-badge" v-if="!cognitiveReport">同龄平均值 · 完成测评后显示个人数据</text>
+        <text class="section-more" v-if="isLoggedIn" @click="goCognitiveReport">查看详情 ›</text>
       </view>
       <RadarChart
         :dimensions="cognitiveDimensions"
@@ -666,4 +667,9 @@ export default {
   font-size: 24rpx;
   color: #999;
 }
+.avg-badge {
+  font-size: 20rpx;
+  color: #94A3B8;
+  margin-left: 12rpx;
+}
 </style>