refactor: remove local SCSS variables from 9 pages
Replace with global uni.scss tokens: $font → $font-family-body $primary → $uv-primary $text-* → $uv-main-color/$uv-content-color/$uv-tips-color/$uv-placeholder-color $divider → $uv-border-color $card-radius → $radius-lg $accent → $uv-primary Kept $bar-height: 120rpx as component-specific local var. Removed dead $primary-dark: #e89a2a from card-bind.vue (never used). Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -267,23 +267,13 @@ function handleCancel() {
|
||||
|
||||
<style lang="scss" scoped>
|
||||
/* ===== Design Tokens ===== */
|
||||
$font: 'SourceHanSerifCN', '思源宋体', -apple-system, 'PingFang SC', 'Helvetica Neue', sans-serif;
|
||||
$primary: #3c9cff;
|
||||
$primary-dark: #e89a2a;
|
||||
$accent: #3c9cff;
|
||||
$text-main: #111111;
|
||||
$text-label: #222222;
|
||||
$text-body: #333333;
|
||||
$text-hint: #666666;
|
||||
$text-weak: #999999;
|
||||
$divider: #eeeeee;
|
||||
|
||||
/* ===== Page ===== */
|
||||
.page {
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
background: #ffffff;
|
||||
font-family: $font;
|
||||
font-family: $font-family-body;
|
||||
}
|
||||
|
||||
/* ===== 1. Header ===== */
|
||||
@@ -301,25 +291,25 @@ $divider: #eeeeee;
|
||||
}
|
||||
|
||||
.header-title__bind {
|
||||
font-family: $font;
|
||||
font-family: $font-family-body;
|
||||
font-size: 38rpx;
|
||||
font-weight: 700;
|
||||
color: $text-main;
|
||||
color: $uv-main-color;
|
||||
}
|
||||
|
||||
.header-title__card {
|
||||
font-family: $font;
|
||||
font-family: $font-family-body;
|
||||
font-size: 38rpx;
|
||||
font-weight: 700;
|
||||
color: $accent;
|
||||
color: $uv-primary;
|
||||
}
|
||||
|
||||
.header-desc {
|
||||
display: block;
|
||||
font-family: $font;
|
||||
font-family: $font-family-body;
|
||||
font-size: 24rpx;
|
||||
font-weight: 400;
|
||||
color: $text-hint;
|
||||
color: $uv-tips-color;
|
||||
line-height: 36rpx;
|
||||
margin-top: 12rpx;
|
||||
text-align: center;
|
||||
@@ -348,9 +338,9 @@ $divider: #eeeeee;
|
||||
}
|
||||
|
||||
.form-label {
|
||||
font-family: $font;
|
||||
font-family: $font-family-body;
|
||||
font-size: 24rpx;
|
||||
color: $text-label;
|
||||
color: $uv-main-color;
|
||||
font-weight: 400;
|
||||
line-height: 40rpx;
|
||||
flex-shrink: 0;
|
||||
@@ -364,42 +354,42 @@ $divider: #eeeeee;
|
||||
.form-input {
|
||||
flex: 1;
|
||||
height: 88rpx;
|
||||
font-family: $font;
|
||||
font-family: $font-family-body;
|
||||
font-size: 26rpx;
|
||||
font-weight: 400;
|
||||
color: $text-body;
|
||||
color: $uv-content-color;
|
||||
line-height: 40rpx;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.placeholder {
|
||||
font-family: $font;
|
||||
color: $text-weak;
|
||||
font-family: $font-family-body;
|
||||
color: $uv-placeholder-color;
|
||||
font-size: 26rpx;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.divider {
|
||||
height: 1rpx;
|
||||
background: $divider;
|
||||
background: $uv-border-color;
|
||||
margin: 0 32rpx;
|
||||
}
|
||||
|
||||
/* ===== Form Value + Chevron ===== */
|
||||
.form-value {
|
||||
flex: 1;
|
||||
font-family: $font;
|
||||
font-family: $font-family-body;
|
||||
font-size: 26rpx;
|
||||
font-weight: 400;
|
||||
color: $text-body;
|
||||
color: $uv-content-color;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.chevron-right {
|
||||
width: 12rpx;
|
||||
height: 12rpx;
|
||||
border-top: 2rpx solid $text-weak;
|
||||
border-right: 2rpx solid $text-weak;
|
||||
border-top: 2rpx solid $uv-placeholder-color;
|
||||
border-right: 2rpx solid $uv-placeholder-color;
|
||||
transform: rotate(45deg);
|
||||
flex-shrink: 0;
|
||||
margin-left: 12rpx;
|
||||
@@ -442,9 +432,9 @@ $divider: #eeeeee;
|
||||
}
|
||||
|
||||
.upload-text {
|
||||
font-family: $font;
|
||||
font-family: $font-family-body;
|
||||
font-size: 22rpx;
|
||||
color: $accent;
|
||||
color: $uv-primary;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
@@ -514,8 +504,8 @@ $divider: #eeeeee;
|
||||
}
|
||||
|
||||
.checkbox--checked {
|
||||
background: $accent;
|
||||
border-color: $accent;
|
||||
background: $uv-primary;
|
||||
border-color: $uv-primary;
|
||||
}
|
||||
|
||||
.checkbox__check {
|
||||
@@ -535,17 +525,17 @@ $divider: #eeeeee;
|
||||
}
|
||||
|
||||
.agreement__label {
|
||||
font-family: $font;
|
||||
font-family: $font-family-body;
|
||||
font-size: 24rpx;
|
||||
font-weight: 400;
|
||||
color: $text-hint;
|
||||
color: $uv-tips-color;
|
||||
}
|
||||
|
||||
.agreement__link {
|
||||
font-family: $font;
|
||||
font-family: $font-family-body;
|
||||
font-size: 24rpx;
|
||||
font-weight: 400;
|
||||
color: $accent;
|
||||
color: $uv-primary;
|
||||
|
||||
&:active {
|
||||
opacity: 0.7;
|
||||
@@ -590,7 +580,7 @@ $divider: #eeeeee;
|
||||
}
|
||||
|
||||
.btn-confirm__text {
|
||||
font-family: $font;
|
||||
font-family: $font-family-body;
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
color: #ffffff;
|
||||
@@ -598,7 +588,7 @@ $divider: #eeeeee;
|
||||
}
|
||||
|
||||
.btn-confirm--disabled .btn-confirm__text {
|
||||
color: $text-weak;
|
||||
color: $uv-placeholder-color;
|
||||
}
|
||||
|
||||
.btn-cancel {
|
||||
@@ -625,10 +615,10 @@ $divider: #eeeeee;
|
||||
}
|
||||
|
||||
.btn-cancel__text {
|
||||
font-family: $font;
|
||||
font-family: $font-family-body;
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
color: $text-hint;
|
||||
color: $uv-tips-color;
|
||||
}
|
||||
|
||||
/* ===== Popup Sheet ===== */
|
||||
@@ -638,7 +628,7 @@ $divider: #eeeeee;
|
||||
max-height: 70vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
font-family: $font;
|
||||
font-family: $font-family-body;
|
||||
}
|
||||
|
||||
.popup-header {
|
||||
@@ -646,14 +636,14 @@ $divider: #eeeeee;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 32rpx;
|
||||
border-bottom: 1rpx solid $divider;
|
||||
border-bottom: 1rpx solid $uv-border-color;
|
||||
}
|
||||
|
||||
.popup-title {
|
||||
font-family: $font;
|
||||
font-family: $font-family-body;
|
||||
font-size: 28rpx;
|
||||
font-weight: 700;
|
||||
color: $text-main;
|
||||
color: $uv-main-color;
|
||||
line-height: 48rpx;
|
||||
}
|
||||
|
||||
@@ -682,7 +672,7 @@ $divider: #eeeeee;
|
||||
left: 50%;
|
||||
width: 20rpx;
|
||||
height: 3rpx;
|
||||
background: $text-hint;
|
||||
background: $uv-tips-color;
|
||||
border-radius: 2rpx;
|
||||
}
|
||||
|
||||
@@ -701,10 +691,10 @@ $divider: #eeeeee;
|
||||
}
|
||||
|
||||
.popup-content {
|
||||
font-family: $font;
|
||||
font-family: $font-family-body;
|
||||
font-size: 26rpx;
|
||||
font-weight: 400;
|
||||
color: $text-body;
|
||||
color: $uv-content-color;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
@@ -731,15 +721,15 @@ $divider: #eeeeee;
|
||||
}
|
||||
|
||||
.id-type-item__text {
|
||||
font-family: $font;
|
||||
font-family: $font-family-body;
|
||||
font-size: 26rpx;
|
||||
font-weight: 400;
|
||||
color: $text-body;
|
||||
color: $uv-content-color;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
|
||||
.id-type-item--active .id-type-item__text {
|
||||
color: $accent;
|
||||
color: $uv-primary;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user