Răsfoiți Sursa

fix(frontend): 补齐 4 处模板表达式未加引号的 hex + 缺失的 gray-300 令牌

- health/report-blocks-renderer.vue:9:item.color || #F97316 → '#F97316'
- activity/create.vue:137-138:tpl.mainColor/darkColor || #F97316/#EA580C 补引号
- mind-detail/traditional-mirror.vue:77:numSoulData.colorHex || #FF6B9D 补引号
  (模板表达式里的裸 # 会被解析成 private name / hash token,编译直接失败)
- uni.scss 新增 $facade-text-gray-300 (#D1D5DB):RelatedContent.vue:429 已在
  使用但从未定义,dart-sass 报 Undefined variable;与既有的 gray-400/700/800 同族
- 校验:383 个 <template> 用 vue-template-compiler 编译 0 失败、
  371 个 scss 块 dart-sass 编译 0 失败、432 个 <script> 块 babel 解析 0 失败
liaoxg 5 zile în urmă
părinte
comite
c71fb4742c

+ 2 - 2
cfc-frontend/pages/activity/create.vue

@@ -134,8 +134,8 @@
           @click="selectPosterTemplate(tpl)"
         >
           <view class="tpl-colors">
-            <view class="tpl-dot tpl-main" :style="{ background: tpl.mainColor || #F97316 }"></view>
-            <view class="tpl-dot tpl-dark" :style="{ background: tpl.darkColor || #EA580C }"></view>
+            <view class="tpl-dot tpl-main" :style="{ background: tpl.mainColor || '#F97316' }"></view>
+            <view class="tpl-dot tpl-dark" :style="{ background: tpl.darkColor || '#EA580C' }"></view>
             <view class="tpl-dot tpl-light" :style="{ background: tpl.lightColor || '#FFF7ED' }"></view>
           </view>
           <text class="tpl-name">{{ tpl.name }}</text>

+ 1 - 1
cfc-frontend/pages/health/report-blocks-renderer.vue

@@ -6,7 +6,7 @@
         <view class="block-title">{{ block.title }}</view>
         <view class="score-grid">
           <view class="score-item" v-for="(item, si) in block.items" :key="si">
-            <view class="score-circle" :style="'border-color:' + (item.color || #F97316)">
+            <view class="score-circle" :style="'border-color:' + (item.color || '#F97316')">
               <text class="score-value">{{ item.value }}</text>
             </view>
             <text class="score-label">{{ item.label }}</text>

+ 1 - 1
cfc-frontend/pages/mind-detail/traditional-mirror.vue

@@ -74,7 +74,7 @@
           <text class="section-title">生命灵数</text>
         </view>
         <view class="numsoul-display">
-          <view class="numsoul-number" :style="{ background: numSoulData.colorHex || #FF6B9D }">
+          <view class="numsoul-number" :style="{ background: numSoulData.colorHex || '#FF6B9D' }">
             <text class="numsoul-num">{{ lifeNumber }}</text>
           </view>
           <view class="numsoul-info">

+ 1 - 0
cfc-frontend/uni.scss

@@ -577,6 +577,7 @@ $facade-text-deep-2:  #444;    // 深灰文字·副档(vs $facade-text-deep #5
 $facade-fill-gray-50:  #F9FAFB; // gray-50 页面浅灰底(6 文件)
 $facade-fill-gray-100: #F3F4F6; // gray-100 发丝分隔/浅填充(13 文件)
 $facade-gray-200:      #E5E7EB; // gray-200 填充/描边兼用(18 文件)
+$facade-text-gray-300: #D1D5DB; // gray-300 极弱文字(1 文件;如「没有更多了」置灰)
 $facade-text-gray-400: #9CA3AF; // gray-400 弱文字(18 文件)
 $facade-text-gray-700: #374151; // gray-700 深文字(12 文件)