ソースを参照

refactor(body-detail): B-2b member-body-detail 令牌化——10 处硬编码色收敛(零观感变化)

- 补 lang="scss"(原为纯 CSS style 块)
- 6 色全映射既有全局令牌:$app-bg/$app-surface/$facade-text-strong/
  $facade-text-muted/$uni-success/$uni-success-light(后两者 33/5 文件复用)
- equiv-regression PASS
liaoxg 1 週間 前
親
コミット
177f3f48bd
1 ファイル変更、10 行追加、10 行削除
  1. 10 10
      cfc-frontend/pages/body-detail/member-body-detail.vue

+ 10 - 10
cfc-frontend/pages/body-detail/member-body-detail.vue

@@ -184,22 +184,22 @@ export default {
 }
 </script>
 
-<style scoped>
+<style scoped lang="scss">
 .detail-container {
   min-height: 100vh;
-  background: #f5f7fa;
+  background: $app-bg;
   padding-bottom: 40rpx;
 }
 .nav-back-icon {
   font-size: 36rpx;
-  color: #333;
+  color: $facade-text-strong;
 }
 .member-card {
   display: flex;
   flex-direction: row;
   align-items: center;
   margin: 20rpx 30rpx;
-  background: #fff;
+  background: $app-surface;
   border-radius: 20rpx;
   padding: 24rpx;
   box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06);
@@ -208,7 +208,7 @@ export default {
   width: 80rpx;
   height: 80rpx;
   border-radius: 40rpx;
-  background: linear-gradient(135deg, #4CAF50, #81C784);
+  background: linear-gradient(135deg, $uni-success, $uni-success-light);
   display: flex;
   align-items: center;
   justify-content: center;
@@ -216,7 +216,7 @@ export default {
 }
 .avatar-text {
   font-size: 32rpx;
-  color: #fff;
+  color: $app-surface;
   font-weight: bold;
 }
 .member-info {
@@ -227,11 +227,11 @@ export default {
 .member-name {
   font-size: 30rpx;
   font-weight: bold;
-  color: #333;
+  color: $facade-text-strong;
 }
 .member-role {
   font-size: 24rpx;
-  color: #999;
+  color: $facade-text-muted;
   margin-top: 4rpx;
 }
 .member-score {
@@ -242,11 +242,11 @@ export default {
 .score-value {
   font-size: 40rpx;
   font-weight: bold;
-  color: #4CAF50;
+  color: $uni-success;
 }
 .score-label {
   font-size: 22rpx;
-  color: #999;
+  color: $facade-text-muted;
 }
 .bottom-spacer {
   height: 40rpx;