refactor: migrate additional hardcoded colors to design tokens

This commit is contained in:
jacobxu666
2026-06-26 11:11:27 +08:00
parent 26b89e8132
commit d92875c86d
4 changed files with 23 additions and 23 deletions
+1 -1
View File
@@ -284,7 +284,7 @@ function getBindList(): FaqItem[] {
transition: background 0.15s ease;
&:active {
background: #f9f9f9;
background: $uv-bg-color;
}
}
+3 -3
View File
@@ -153,7 +153,7 @@ function openDetail(item: NoticeItem) {
display: block;
font-size: $font-size-base;
font-weight: $font-weight-bold;
color: #111111;
color: $uv-main-color;
line-height: 1.3;
letter-spacing: -0.3rpx;
overflow: hidden;
@@ -170,7 +170,7 @@ function openDetail(item: NoticeItem) {
overflow: hidden;
font-size: $font-size-sm;
font-weight: $font-weight-normal;
color: #666666;
color: $uv-tips-color;
line-height: 1.6;
}
@@ -178,7 +178,7 @@ function openDetail(item: NoticeItem) {
.card-date {
font-size: 22rpx;
font-weight: $font-weight-normal;
color: #999999;
color: $uv-placeholder-color;
flex-shrink: 0;
letter-spacing: 0.5rpx;
}
+9 -9
View File
@@ -263,8 +263,8 @@ onUnmounted(() => { if (timer) clearInterval(timer) })
}
.empty-icon-stripe { height: 8rpx; background: rgba(255,255,255,0.6); border-radius: 4rpx; width: 100%; }
.empty-icon-stripe.short { width: 60%; }
.empty-text { font-size: $font-size-lg; font-weight: $font-weight-bold; color: #111111; margin-bottom: 12rpx; }
.empty-desc { font-size: $font-size-sm; color: #666666; margin-bottom: 40rpx; }
.empty-text { font-size: $font-size-lg; font-weight: $font-weight-bold; color: $uv-main-color; margin-bottom: 12rpx; }
.empty-desc { font-size: $font-size-sm; color: $uv-tips-color; margin-bottom: 40rpx; }
.empty-btn {
background: $uv-primary; border-radius: 44rpx; padding: 20rpx 80rpx;
min-height: 88rpx; display: flex; align-items: center; justify-content: center;
@@ -278,7 +278,7 @@ onUnmounted(() => { if (timer) clearInterval(timer) })
transition: opacity 150ms;
}
.empty-btn-secondary:active { opacity: 0.7; }
.empty-btn-secondary-text { font-size: $font-size-base; color: #333333; }
.empty-btn-secondary-text { font-size: $font-size-base; color: $uv-content-color; }
/* === 卡面展示区域 === */
.card-swiper-wrap { margin: 20rpx 20rpx 20rpx; overflow: visible; }
@@ -339,16 +339,16 @@ onUnmounted(() => { if (timer) clearInterval(timer) })
transform: rotate(45deg); border-radius: 2rpx;
}
.holder-main { flex: 1; }
.holder-name { font-size: $font-size-lg; font-weight: $font-weight-medium; color: #111111; display: block; }
.holder-name { font-size: $font-size-lg; font-weight: $font-weight-medium; color: $uv-main-color; display: block; }
.holder-tag {
display: inline-block; font-size: 22rpx; color: #00b42a;
background: #f0fff4; padding: 2rpx 12rpx; border-radius: 6rpx; margin-top: 6rpx;
}
.holder-details { display: flex; flex-direction: column; gap: 14rpx; }
.detail-row { display: flex; justify-content: space-between; align-items: center; }
.detail-label { font-size: $font-size-sm; color: #666666; }
.detail-label { font-size: $font-size-sm; color: $uv-tips-color; }
.detail-value-wrap { display: flex; align-items: center; gap: 12rpx; }
.detail-value { font-size: $font-size-sm; color: #333333; }
.detail-value { font-size: $font-size-sm; color: $uv-content-color; }
.copy-btn {
font-size: 22rpx; color: $uv-primary;
padding: 4rpx 16rpx; border: 1rpx solid $uv-primary;
@@ -364,7 +364,7 @@ onUnmounted(() => { if (timer) clearInterval(timer) })
box-shadow: 0 4rpx 20rpx rgba(15, 23, 42, 0.06);
}
.qrcode-title {
font-size: $font-size-lg; font-weight: $font-weight-medium; color: #111111;
font-size: $font-size-lg; font-weight: $font-weight-medium; color: $uv-main-color;
display: block; margin-bottom: 20rpx; align-self: flex-start;
}
.qrcode-box {
@@ -386,7 +386,7 @@ onUnmounted(() => { if (timer) clearInterval(timer) })
top: 2rpx; left: 50%; transform: translateX(-50%);
border-radius: 1rpx;
}
.countdown-text { font-size: $font-size-sm; color: #666666; }
.countdown-text { font-size: $font-size-sm; color: $uv-tips-color; }
/* === 功能入口 === */
.feature-panel {
@@ -406,5 +406,5 @@ onUnmounted(() => { if (timer) clearInterval(timer) })
width: 88rpx; height: 88rpx;
margin-bottom: 10rpx;
}
.feature-label { font-size: $font-size-sm; color: #333333; }
.feature-label { font-size: $font-size-sm; color: $uv-content-color; }
</style>
+10 -10
View File
@@ -248,22 +248,22 @@ $icon-crown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' w
.text-title {
font-size: $font-size-title;
font-weight: $font-weight-bold;
color: #111111;
color: $uv-main-color;
line-height: 48rpx;
}
.text-body {
font-size: $font-size-base;
color: #333333;
color: $uv-content-color;
line-height: 40rpx;
}
.text-assist {
font-size: $font-size-sm;
color: #666666;
color: $uv-tips-color;
line-height: 32rpx;
}
.text-hint {
font-size: 22rpx;
color: #999999;
color: $uv-placeholder-color;
line-height: 32rpx;
}
@@ -460,7 +460,7 @@ $icon-crown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' w
.ticket-price {
font-size: $font-size-base;
color: #999999;
color: $uv-placeholder-color;
text-decoration: line-through;
}
@@ -473,7 +473,7 @@ $icon-crown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' w
.ticket-label {
font-size: $font-size-base;
color: #333333;
color: $uv-content-color;
font-weight: $font-weight-medium;
}
@@ -538,7 +538,7 @@ $icon-crown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' w
text {
font-size: $font-size-base;
color: #999999;
color: $uv-placeholder-color;
font-weight: $font-weight-normal;
}
@@ -586,7 +586,7 @@ $icon-crown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' w
.block-title {
font-size: $font-size-base;
font-weight: $font-weight-bold;
color: #333333;
color: $uv-content-color;
display: block;
margin-bottom: 8rpx;
}
@@ -599,14 +599,14 @@ $icon-crown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' w
.block-text {
font-size: $font-size-sm;
color: #666666;
color: $uv-tips-color;
line-height: 1.8;
display: block;
}
.intro-text {
font-size: $font-size-sm;
color: #666666;
color: $uv-tips-color;
line-height: 2;
display: block;
}