Explorar el Código

chore: 其他页面微调(assessment/games/membership/stats)

Ultraworked with Sisyphus
User hace 3 meses
padre
commit
a4d3de98b0

+ 9 - 3
cfc-frontend/custom-tab-bar/index.vue

@@ -50,7 +50,7 @@ export default {
         { text: '我的', pagePath: '/pages/profile/profile', icon: '/static/tab-profile.png', selectedIcon: '/static/tab-profile-active.png' }
       ],
       teacherTabs: [
-        { text: '首页', pagePath: '/pages/teacher/teacher-home', icon: '/static/tab-home.png', selectedIcon: '/static/tab-home-active.png' },
+        { text: '首页', pagePath: '/pages/teacher/index', icon: '/static/tab-home.png', selectedIcon: '/static/tab-home-active.png' },
         { text: '家庭', pagePath: '/pages/teacher/families', icon: '/static/tab-family.png', selectedIcon: '/static/tab-family-active.png' },
         { text: '团队', pagePath: '/pages/teacher/team', icon: '/static/tab-team.png', selectedIcon: '/static/tab-team-active.png' },
         { text: '成长档案', pagePath: '/pages/growth/index', icon: '/static/tab-growth.png', selectedIcon: '/static/tab-growth-active.png' },
@@ -90,7 +90,13 @@ export default {
     },
     switchTab(item, index) {
       this.currentIndex = index
-      uni.reLaunch({ url: item.pagePath })
+      // 原生TabBar页使用switchTab,非Tab页使用redirectTo(比reLaunch轻量)
+      const nativeTabPages = ['/pages/index/index', '/pages/discover/index', '/pages/shop/index', '/pages/profile/profile']
+      if (nativeTabPages.includes(item.pagePath)) {
+        uni.switchTab({ url: item.pagePath })
+      } else {
+        uni.redirectTo({ url: item.pagePath })
+      }
     }
   }
 }
@@ -133,6 +139,6 @@ export default {
 }
 
 .tab-item.active .tab-text {
-  color: #FF6B6B;
+  color: #F97316;
 }
 </style>

+ 2 - 2
cfc-frontend/pages/assessment/apply.vue

@@ -409,7 +409,7 @@ export default {
 
 .guide-price {
   font-size: 24rpx;
-  color: #FF6B6B;
+  color: #F97316;
   font-weight: bold;
 }
 
@@ -518,7 +518,7 @@ export default {
 }
 
 .price-value.discount {
-  color: #FF6B6B;
+  color: #F97316;
 }
 
 .btn-submit {

+ 2 - 2
cfc-frontend/pages/assessment/order.vue

@@ -201,7 +201,7 @@ export default {
 }
 .price-label { color: #666; }
 .price-value { color: #333; font-weight: bold; }
-.price-value.discount { color: #FF6B6B; }
+.price-value.discount { color: #F97316; }
 .price-row.total {
   margin-top: 16rpx;
   padding-top: 24rpx;
@@ -209,7 +209,7 @@ export default {
 }
 .price-value.highlight {
   font-size: 36rpx;
-  color: #FF6B6B;
+  color: #F97316;
 }
 .pay-methods {
   display: flex;

+ 4 - 4
cfc-frontend/pages/assessment/purchase.vue

@@ -371,7 +371,7 @@ export default {
 
 .guide-price {
   font-size: 24rpx;
-  color: #FF6B6B;
+  color: #F97316;
   font-weight: bold;
 }
 
@@ -420,7 +420,7 @@ export default {
 .price {
   font-size: 32rpx;
   font-weight: bold;
-  color: #FF6B6B;
+  color: #F97316;
   display: block;
 }
 
@@ -506,7 +506,7 @@ export default {
 }
 
 .price-value.discount {
-  color: #FF6B6B;
+  color: #F97316;
 }
 
 .price-row.total .price-label {
@@ -517,7 +517,7 @@ export default {
 
 .price-row.total .price-value {
   font-size: 36rpx;
-  color: #FF6B6B;
+  color: #F97316;
 }
 
 .btn-submit {

+ 1 - 1
cfc-frontend/pages/assessment/record.vue

@@ -643,7 +643,7 @@ export default {
   right: -10rpx;
   width: 40rpx;
   height: 40rpx;
-  background: #FF6B6B;
+  background: #F97316;
   color: #fff;
   border-radius: 50%;
   display: flex;

+ 2 - 2
cfc-frontend/pages/child/rewards.vue

@@ -10,7 +10,7 @@
         <view class="reward-info">
           <view class="reward-title">{{ reward.title }}</view>
           <view class="reward-progress">
-            <progress :percent="reward.pointsRequired > 0 ? (currentPoints / reward.pointsRequired) * 100 : 0" stroke-width="6" activeColor="#FF6B6B" backgroundColor="#eee" />
+            <progress :percent="reward.pointsRequired > 0 ? (currentPoints / reward.pointsRequired) * 100 : 0" stroke-width="6" activeColor="#F97316" backgroundColor="#eee" />
             <text class="progress-text">{{ currentPoints }}/{{ reward.pointsRequired }}积分</text>
           </view>
         </view>
@@ -149,7 +149,7 @@ export default {
 .modal-title { font-size: 32rpx; font-weight: bold; margin-bottom: 30rpx; text-align: center; }
 .form-item { margin-bottom: 20rpx; }
 .form-label { font-size: 28rpx; color: #333; margin-bottom: 10rpx; }
-.required { color: #FF6B6B; }
+.required { color: #F97316; }
 .form-tip { font-size: 24rpx; color: #999; padding: 20rpx; background: #f5f5f5; border-radius: 10rpx; margin-bottom: 20rpx; }
 .modal-btns { display: flex; gap: 20rpx; margin-top: 30rpx; }
 .modal-btns button { flex: 1; }

+ 1 - 1
cfc-frontend/pages/games/schulte.vue

@@ -240,7 +240,7 @@ export default {
 }
 
 .start-btn {
-  background: linear-gradient(135deg, #FF6B6B, #FF8E53);
+  background: linear-gradient(135deg, #F97316, #FB923C);
   color: #fff;
   padding: 20rpx 60rpx;
   border-radius: 50rpx;

+ 2 - 2
cfc-frontend/pages/games/sudoku.vue

@@ -397,7 +397,7 @@ export default {
 }
 
 .cell.error {
-  color: #FF6B6B;
+  color: #F97316;
 }
 
 .number-pad {
@@ -422,7 +422,7 @@ export default {
 }
 
 .num-btn.clear {
-  background: #FF6B6B;
+  background: #F97316;
 }
 
 .controls {

+ 1 - 1
cfc-frontend/pages/membership/index.vue

@@ -275,7 +275,7 @@ export default {
 
 .level-price {
   font-size: 26rpx;
-  color: #FF6B6B;
+  color: #F97316;
 }
 
 .level-price.free {

+ 3 - 3
cfc-frontend/pages/rewards/rewards.vue

@@ -8,7 +8,7 @@
             <progress 
               :percent="(currentPoints / reward.pointsRequired) * 100" 
               stroke-width="6" 
-              activeColor="#FF6B6B"
+              activeColor="#F97316"
               backgroundColor="#eee"
             />
             <text class="progress-text">{{ currentPoints }}/{{ reward.pointsRequired }}积分</text>
@@ -257,7 +257,7 @@ export default {
 }
 
 .btn-exchange {
-  background: #FF6B6B;
+  background: #F97316;
   color: #fff;
   font-size: 26rpx;
   padding: 10rpx 30rpx;
@@ -325,7 +325,7 @@ export default {
 }
 
 .form-label .required {
-  color: #FF6B6B;
+  color: #F97316;
 }
 
 .form-tip {

+ 3 - 3
cfc-frontend/pages/stats/completion-rate.vue

@@ -52,7 +52,7 @@
               <text class="legend-label">进行中 {{ stats.pendingTasks }}</text>
             </view>
             <view class="legend-item">
-              <view class="legend-dot" style="background: #FF6B6B;"></view>
+              <view class="legend-dot" style="background: #F97316;"></view>
               <text class="legend-label">已逾期 {{ stats.overdueTasks }}</text>
             </view>
           </view>
@@ -431,7 +431,7 @@ export default {
 
 .primary-color { color: #FF8C42; }
 .success-color { color: #4ECDC4; }
-.danger-color { color: #FF6B6B; }
+.danger-color { color: #F97316; }
 
 /* 逾期警示 */
 .alert-card {
@@ -531,7 +531,7 @@ export default {
 .bar-color-0 { background: linear-gradient(90deg, #FF8C42, #FFD93D); }
 .bar-color-1 { background: linear-gradient(90deg, #4ECDC4, #44B09E); }
 .bar-color-2 { background: linear-gradient(90deg, #667eea, #764ba2); }
-.bar-color-3 { background: linear-gradient(90deg, #FF6B6B, #FF8E53); }
+.bar-color-3 { background: linear-gradient(90deg, #F97316, #FB923C); }
 .bar-color-4 { background: linear-gradient(90deg, #A8E063, #56AB2F); }
 
 /* 分类列表 */