refactor: migrate additional hardcoded colors to design tokens
This commit is contained in:
@@ -284,7 +284,7 @@ function getBindList(): FaqItem[] {
|
|||||||
transition: background 0.15s ease;
|
transition: background 0.15s ease;
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
background: #f9f9f9;
|
background: $uv-bg-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ function openDetail(item: NoticeItem) {
|
|||||||
display: block;
|
display: block;
|
||||||
font-size: $font-size-base;
|
font-size: $font-size-base;
|
||||||
font-weight: $font-weight-bold;
|
font-weight: $font-weight-bold;
|
||||||
color: #111111;
|
color: $uv-main-color;
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
letter-spacing: -0.3rpx;
|
letter-spacing: -0.3rpx;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -170,7 +170,7 @@ function openDetail(item: NoticeItem) {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
font-size: $font-size-sm;
|
font-size: $font-size-sm;
|
||||||
font-weight: $font-weight-normal;
|
font-weight: $font-weight-normal;
|
||||||
color: #666666;
|
color: $uv-tips-color;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -178,7 +178,7 @@ function openDetail(item: NoticeItem) {
|
|||||||
.card-date {
|
.card-date {
|
||||||
font-size: 22rpx;
|
font-size: 22rpx;
|
||||||
font-weight: $font-weight-normal;
|
font-weight: $font-weight-normal;
|
||||||
color: #999999;
|
color: $uv-placeholder-color;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
letter-spacing: 0.5rpx;
|
letter-spacing: 0.5rpx;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 { height: 8rpx; background: rgba(255,255,255,0.6); border-radius: 4rpx; width: 100%; }
|
||||||
.empty-icon-stripe.short { width: 60%; }
|
.empty-icon-stripe.short { width: 60%; }
|
||||||
.empty-text { font-size: $font-size-lg; font-weight: $font-weight-bold; color: #111111; margin-bottom: 12rpx; }
|
.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: #666666; margin-bottom: 40rpx; }
|
.empty-desc { font-size: $font-size-sm; color: $uv-tips-color; margin-bottom: 40rpx; }
|
||||||
.empty-btn {
|
.empty-btn {
|
||||||
background: $uv-primary; border-radius: 44rpx; padding: 20rpx 80rpx;
|
background: $uv-primary; border-radius: 44rpx; padding: 20rpx 80rpx;
|
||||||
min-height: 88rpx; display: flex; align-items: center; justify-content: center;
|
min-height: 88rpx; display: flex; align-items: center; justify-content: center;
|
||||||
@@ -278,7 +278,7 @@ onUnmounted(() => { if (timer) clearInterval(timer) })
|
|||||||
transition: opacity 150ms;
|
transition: opacity 150ms;
|
||||||
}
|
}
|
||||||
.empty-btn-secondary:active { opacity: 0.7; }
|
.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; }
|
.card-swiper-wrap { margin: 20rpx 20rpx 20rpx; overflow: visible; }
|
||||||
@@ -339,16 +339,16 @@ onUnmounted(() => { if (timer) clearInterval(timer) })
|
|||||||
transform: rotate(45deg); border-radius: 2rpx;
|
transform: rotate(45deg); border-radius: 2rpx;
|
||||||
}
|
}
|
||||||
.holder-main { flex: 1; }
|
.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 {
|
.holder-tag {
|
||||||
display: inline-block; font-size: 22rpx; color: #00b42a;
|
display: inline-block; font-size: 22rpx; color: #00b42a;
|
||||||
background: #f0fff4; padding: 2rpx 12rpx; border-radius: 6rpx; margin-top: 6rpx;
|
background: #f0fff4; padding: 2rpx 12rpx; border-radius: 6rpx; margin-top: 6rpx;
|
||||||
}
|
}
|
||||||
.holder-details { display: flex; flex-direction: column; gap: 14rpx; }
|
.holder-details { display: flex; flex-direction: column; gap: 14rpx; }
|
||||||
.detail-row { display: flex; justify-content: space-between; align-items: center; }
|
.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-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 {
|
.copy-btn {
|
||||||
font-size: 22rpx; color: $uv-primary;
|
font-size: 22rpx; color: $uv-primary;
|
||||||
padding: 4rpx 16rpx; border: 1rpx solid $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);
|
box-shadow: 0 4rpx 20rpx rgba(15, 23, 42, 0.06);
|
||||||
}
|
}
|
||||||
.qrcode-title {
|
.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;
|
display: block; margin-bottom: 20rpx; align-self: flex-start;
|
||||||
}
|
}
|
||||||
.qrcode-box {
|
.qrcode-box {
|
||||||
@@ -386,7 +386,7 @@ onUnmounted(() => { if (timer) clearInterval(timer) })
|
|||||||
top: 2rpx; left: 50%; transform: translateX(-50%);
|
top: 2rpx; left: 50%; transform: translateX(-50%);
|
||||||
border-radius: 1rpx;
|
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 {
|
.feature-panel {
|
||||||
@@ -406,5 +406,5 @@ onUnmounted(() => { if (timer) clearInterval(timer) })
|
|||||||
width: 88rpx; height: 88rpx;
|
width: 88rpx; height: 88rpx;
|
||||||
margin-bottom: 10rpx;
|
margin-bottom: 10rpx;
|
||||||
}
|
}
|
||||||
.feature-label { font-size: $font-size-sm; color: #333333; }
|
.feature-label { font-size: $font-size-sm; color: $uv-content-color; }
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -248,22 +248,22 @@ $icon-crown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' w
|
|||||||
.text-title {
|
.text-title {
|
||||||
font-size: $font-size-title;
|
font-size: $font-size-title;
|
||||||
font-weight: $font-weight-bold;
|
font-weight: $font-weight-bold;
|
||||||
color: #111111;
|
color: $uv-main-color;
|
||||||
line-height: 48rpx;
|
line-height: 48rpx;
|
||||||
}
|
}
|
||||||
.text-body {
|
.text-body {
|
||||||
font-size: $font-size-base;
|
font-size: $font-size-base;
|
||||||
color: #333333;
|
color: $uv-content-color;
|
||||||
line-height: 40rpx;
|
line-height: 40rpx;
|
||||||
}
|
}
|
||||||
.text-assist {
|
.text-assist {
|
||||||
font-size: $font-size-sm;
|
font-size: $font-size-sm;
|
||||||
color: #666666;
|
color: $uv-tips-color;
|
||||||
line-height: 32rpx;
|
line-height: 32rpx;
|
||||||
}
|
}
|
||||||
.text-hint {
|
.text-hint {
|
||||||
font-size: 22rpx;
|
font-size: 22rpx;
|
||||||
color: #999999;
|
color: $uv-placeholder-color;
|
||||||
line-height: 32rpx;
|
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 {
|
.ticket-price {
|
||||||
font-size: $font-size-base;
|
font-size: $font-size-base;
|
||||||
color: #999999;
|
color: $uv-placeholder-color;
|
||||||
text-decoration: line-through;
|
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 {
|
.ticket-label {
|
||||||
font-size: $font-size-base;
|
font-size: $font-size-base;
|
||||||
color: #333333;
|
color: $uv-content-color;
|
||||||
font-weight: $font-weight-medium;
|
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 {
|
text {
|
||||||
font-size: $font-size-base;
|
font-size: $font-size-base;
|
||||||
color: #999999;
|
color: $uv-placeholder-color;
|
||||||
font-weight: $font-weight-normal;
|
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 {
|
.block-title {
|
||||||
font-size: $font-size-base;
|
font-size: $font-size-base;
|
||||||
font-weight: $font-weight-bold;
|
font-weight: $font-weight-bold;
|
||||||
color: #333333;
|
color: $uv-content-color;
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 8rpx;
|
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 {
|
.block-text {
|
||||||
font-size: $font-size-sm;
|
font-size: $font-size-sm;
|
||||||
color: #666666;
|
color: $uv-tips-color;
|
||||||
line-height: 1.8;
|
line-height: 1.8;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.intro-text {
|
.intro-text {
|
||||||
font-size: $font-size-sm;
|
font-size: $font-size-sm;
|
||||||
color: #666666;
|
color: $uv-tips-color;
|
||||||
line-height: 2;
|
line-height: 2;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user