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:
jacobxu666
2026-06-26 10:34:54 +08:00
co-authored by Claude
parent 25a1cc4eb3
commit cfb9a4ce26
9 changed files with 268 additions and 337 deletions
+9 -14
View File
@@ -82,18 +82,13 @@ async function handleBuy() {
</script>
<style lang="scss" scoped>
$font: 'SourceHanSerifCN', '思源宋体', -apple-system, 'PingFang SC', 'Helvetica Neue', sans-serif;
$primary: #3c9cff;
$text-main: #111111;
$text-hint: #666666;
$text-weak: #999999;
$bar-height: 120rpx;
.page {
min-height: 100vh;
background: #ffffff;
padding-bottom: calc(#{$bar-height} + env(safe-area-inset-bottom));
font-family: $font;
font-family: $font-family-body;
}
/* ===== 图片区域 ===== */
@@ -129,9 +124,9 @@ $bar-height: 120rpx;
}
.price-label {
font-family: $font;
font-family: $font-family-body;
font-size: 26rpx;
color: $text-hint;
color: $uv-tips-color;
}
.price-row {
@@ -140,14 +135,14 @@ $bar-height: 120rpx;
}
.price-symbol {
font-family: $font;
font-family: $font-family-body;
font-size: 28rpx;
font-weight: 700;
color: #e53935;
}
.price-value {
font-family: $font;
font-family: $font-family-body;
font-size: 38rpx;
font-weight: 700;
color: #e53935;
@@ -155,9 +150,9 @@ $bar-height: 120rpx;
}
.price-original {
font-family: $font;
font-family: $font-family-body;
font-size: 22rpx;
color: $text-weak;
color: $uv-placeholder-color;
text-decoration: line-through;
margin-left: 12rpx;
}
@@ -168,7 +163,7 @@ $bar-height: 120rpx;
height: 80rpx;
padding: 0 56rpx;
border-radius: 40rpx;
background: $primary;
background: $uv-primary;
border: none;
display: flex;
align-items: center;
@@ -190,7 +185,7 @@ $bar-height: 120rpx;
}
.btn-buy__text {
font-family: $font;
font-family: $font-family-body;
font-size: 28rpx;
font-weight: 700;
color: #ffffff;