Browse Source

fix(ui-kit): 渐变禁用场景改纯色 + 晋升空态 CTA 中性化

course/detail、course/index、index/index、member/index 的按钮/进度条/状态卡渐变底改为 V4 纯色 token

promotion/index 空态按钮由『去报名培训』改为『返回首页』,规避红线④运营钩子文案
liaoxg 21 hours ago
parent
commit
6f1f89d74f

+ 2 - 2
train-frontend/pages/course/detail.vue

@@ -358,7 +358,7 @@ export default {
 .action-card { background: #FFF; border-radius: 16rpx; padding: 32rpx; margin-bottom: 24rpx; display: flex; flex-direction: column; align-items: center; }
 .action-title { font-size: 32rpx; font-weight: 700; color: #1E3A5F; margin-bottom: 12rpx; }
 .action-desc { font-size: 26rpx; color: #3B5A78; text-align: center; line-height: 1.6; margin-bottom: 28rpx; }
-.action-btn { width: 100%; height: 88rpx; line-height: 88rpx; background: linear-gradient(135deg, #2E6FA8, #1F4E79); color: #FFF; font-size: 30rpx; font-weight: 600; border-radius: 44rpx; border: none; }
+.action-btn { width: 100%; height: 88rpx; line-height: 88rpx; background: #2E6FA8; color: #FFF; font-size: 30rpx; font-weight: 600; border-radius: 44rpx; border: none; }
 .action-btn.disabled { background: #E3ECF4; color: #6B7B8C; }
 .action-btn:active { opacity: 0.88; }
 .course-level { align-self: flex-start; font-size: 22rpx; font-weight: 600; color: #2E6FA8; background: #E8F3FC; border-radius: 8rpx; padding: 4rpx 14rpx; margin-bottom: 12rpx; }
@@ -403,7 +403,7 @@ export default {
 .section-title { font-size: 30rpx; font-weight: 600; color: #1E3A5F; border-left: 8rpx solid #2E6FA8; padding-left: 16rpx; }
 .progress-count { font-size: 24rpx; color: #3B5A78; }
 .progress-bar { height: 16rpx; background: #E3ECF4; border-radius: 8rpx; overflow: hidden; margin-bottom: 20rpx; }
-.progress-fill { height: 100%; background: linear-gradient(90deg, #2E6FA8, #1F4E79); border-radius: 8rpx; }
+.progress-fill { height: 100%; background: #2E6FA8; border-radius: 8rpx; }
 .progress-list { display: flex; flex-direction: column; }
 .progress-item { display: flex; align-items: center; padding: 10rpx 0; }
 .progress-icon { font-size: 28rpx; margin-right: 12rpx; }

+ 2 - 2
train-frontend/pages/course/index.vue

@@ -152,7 +152,7 @@ export default {
 .course-page { min-height: 100vh; background: #F5FAFE; padding: 24rpx 32rpx; }
 .section-title { font-size: 30rpx; font-weight: 600; color: #1E3A5F; margin-bottom: 16rpx; border-left: 8rpx solid #2E6FA8; padding-left: 16rpx; }
 
-.active-card { background: linear-gradient(135deg, #2E6FA8, #1F4E79); border-radius: 20rpx; padding: 32rpx; margin-bottom: 32rpx; }
+.active-card { background: #2E6FA8; border-radius: 20rpx; padding: 32rpx; margin-bottom: 32rpx; }
 .active-badge { display: inline-block; background: rgba(255,255,255,0.2); border-radius: 100rpx; padding: 4rpx 20rpx; margin-bottom: 16rpx; }
 .active-badge-text { font-size: 22rpx; color: #FFF; font-weight: 600; }
 .active-name { display: block; font-size: 36rpx; font-weight: 700; color: #FFF; margin-bottom: 8rpx; }
@@ -177,7 +177,7 @@ export default {
 .course-tag.my-confirmed { color: #0E8A4F; background: #E6F6EE; }
 .course-tag.my-reviewing { color: #2E6FA8; background: #E8F3FC; }
 .course-tag.my-rejected { color: #C0392B; background: #FDE8E8; }
-.course-btn { background: linear-gradient(135deg, #2E6FA8, #1F4E79); color: #FFF; font-size: 28rpx; font-weight: 600; border-radius: 44rpx; height: 76rpx; line-height: 76rpx; border: none; margin: 0; }
+.course-btn { background: #2E6FA8; color: #FFF; font-size: 28rpx; font-weight: 600; border-radius: 44rpx; height: 76rpx; line-height: 76rpx; border: none; margin: 0; }
 .course-btn:active { opacity: 0.9; }
 .btn-disabled { background: #E3ECF4; color: #6B7B8C; }
 </style>

+ 2 - 2
train-frontend/pages/index/index.vue

@@ -589,7 +589,7 @@ export default {
 .login-hint {
   display: flex;
   align-items: center;
-  background: linear-gradient(135deg, #2E6FA8, #1F4E79);
+  background: #2E6FA8;
   border-radius: 16rpx;
   padding: 28rpx 32rpx;
   margin-top: 8rpx;
@@ -664,7 +664,7 @@ export default {
   width: 100%;
   height: 96rpx;
   line-height: 96rpx;
-  background: linear-gradient(135deg, #2E6FA8, #1F4E79);
+  background: #2E6FA8;
   color: #FFF;
   font-size: 32rpx;
   font-weight: 600;

+ 4 - 4
train-frontend/pages/member/index.vue

@@ -224,10 +224,10 @@ export default {
 .buy-btn:active { opacity: 0.85; }
 
 .status-card { border-radius: 16rpx; padding: 32rpx; margin-bottom: 24rpx; }
-.status-active { background: linear-gradient(135deg, #0E8A4F, #0E8A4F); }
-.status-pending { background: linear-gradient(135deg, #B9770E, #B9770E); }
-.status-expired { background: linear-gradient(135deg, #94A3B2, #6B7B8C); }
-.status-refunded { background: linear-gradient(135deg, #94A3B2, #6B7B8C); }
+.status-active { background: #0E8A4F; }
+.status-pending { background: #B9770E; }
+.status-expired { background: #6B7B8C; }
+.status-refunded { background: #6B7B8C; }
 .status-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24rpx; }
 .status-name { font-size: 36rpx; font-weight: 700; color: #FFF; }
 .status-tag { font-size: 24rpx; color: #FFF; background: rgba(255,255,255,0.25); padding: 6rpx 20rpx; border-radius: 24rpx; }

+ 4 - 4
train-frontend/pages/promotion/index.vue

@@ -12,8 +12,8 @@
       icon="🎓"
       title="尚未完成培训认证"
       desc="先完成培训认证,才能查看晋升进度"
-      action-text="去报名培训"
-      @action="goCohort"
+      action-text="返回首页"
+      @action="goHome"
     />
 
     <!-- 正常态 -->
@@ -389,8 +389,8 @@ export default {
       this.successVisible = false
       this.preCheck()
     },
-    goCohort() {
-      uni.navigateTo({ url: '/pages/cohort/index' })
+    goHome() {
+      uni.switchTab({ url: '/pages/index/index' })
     }
   }
 }