feat(miniprogram): 温润东方风全面 UI 重设计

73 文件变更,覆盖全部 40 个页面 SCSS + TabBar 图标 + 组件样式。
统一赤陶主色 #C4623A + 暖米背景 + 衬线标题字体 + 12px 圆角体系。
This commit is contained in:
iven
2026-04-28 00:19:52 +08:00
parent fbb28e655d
commit 50eae8b809
97 changed files with 7633 additions and 2373 deletions

View File

@@ -1,87 +1,129 @@
@import '../../styles/variables.scss';
@mixin serif-number {
font-family: 'Georgia', 'Times New Roman', serif;
font-variant-numeric: tabular-nums;
}
@mixin section-title {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 30px;
font-weight: bold;
color: $tx;
margin-bottom: 20px;
display: block;
}
@mixin tag($bg, $color) {
display: inline-block;
padding: 4px 12px;
border-radius: 8px;
font-size: 20px;
font-weight: 500;
background: $bg;
color: $color;
}
@mixin flex-center {
display: flex;
align-items: center;
justify-content: center;
}
.device-sync-page {
min-height: 100vh;
background: #F1F5F9;
background: $bg;
padding-bottom: env(safe-area-inset-bottom);
}
.sync-header {
background: linear-gradient(135deg, #0891B2, #0E7490);
padding: 48px 24px 24px;
color: #fff;
background: $pri;
padding: 48px 32px 32px;
color: $card;
}
.sync-header-title {
font-size: 20px;
font-weight: 600;
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 40px;
font-weight: bold;
}
.sync-section {
padding: 16px;
padding: 24px;
}
.sync-hero {
display: flex;
flex-direction: column;
align-items: center;
padding: 32px 16px;
background: #fff;
border-radius: 12px;
margin-bottom: 16px;
padding: 48px 24px;
background: $card;
border-radius: $r;
margin-bottom: 24px;
box-shadow: $shadow-sm;
}
.sync-hero-icon {
font-size: 48px;
margin-bottom: 12px;
width: 80px;
height: 80px;
border-radius: 50%;
background: $pri-l;
@include flex-center;
margin-bottom: 20px;
color: $pri;
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 36px;
font-weight: bold;
}
.sync-hero-title {
font-size: 18px;
font-weight: 600;
color: #1E293B;
margin-bottom: 4px;
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 34px;
font-weight: bold;
color: $tx;
margin-bottom: 8px;
}
.sync-hero-desc {
font-size: 13px;
color: #64748B;
font-size: 26px;
color: $tx2;
}
.sync-action {
display: flex;
align-items: center;
justify-content: center;
background: #0891B2;
border-radius: 8px;
padding: 12px 24px;
margin: 8px 0;
}
@include flex-center;
background: $pri;
border-radius: $r-sm;
padding: 20px 40px;
margin: 12px 0;
.sync-action--primary {
flex: 1;
background: #0891B2;
}
&--primary {
flex: 1;
background: $pri;
}
.sync-action--danger {
flex: 1;
background: #EF4444;
margin-left: 12px;
&--danger {
flex: 1;
background: $dan;
margin-left: 16px;
}
}
.sync-action-text {
color: #fff;
font-size: 15px;
color: $card;
font-size: 28px;
font-weight: 500;
}
.sync-device-list {
margin-top: 12px;
margin-top: 16px;
}
.sync-section-title {
font-size: 14px;
font-weight: 600;
color: #475569;
margin-bottom: 8px;
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 28px;
font-weight: bold;
color: $tx;
margin-bottom: 12px;
display: block;
}
@@ -89,10 +131,11 @@
display: flex;
justify-content: space-between;
align-items: center;
background: #fff;
border-radius: 8px;
padding: 14px 16px;
margin-bottom: 8px;
background: $card;
border-radius: $r-sm;
padding: 24px;
margin-bottom: 12px;
box-shadow: $shadow-sm;
}
.sync-device-info {
@@ -101,135 +144,149 @@
}
.sync-device-name {
font-size: 15px;
font-size: 28px;
font-weight: 500;
color: #1E293B;
color: $tx;
}
.sync-device-adapter {
font-size: 12px;
color: #94A3B8;
margin-top: 2px;
font-size: 22px;
color: $tx3;
margin-top: 4px;
}
.sync-device-rssi {
font-size: 12px;
color: #64748B;
font-size: 22px;
color: $tx2;
}
.sync-status-card {
display: flex;
align-items: center;
background: #fff;
border-radius: 8px;
padding: 14px 16px;
margin-bottom: 12px;
background: $card;
border-radius: $r-sm;
padding: 24px;
margin-bottom: 16px;
box-shadow: $shadow-sm;
}
.sync-status-dot {
width: 8px;
height: 8px;
border-radius: 4px;
margin-right: 8px;
background: #94A3B8;
}
width: 16px;
height: 16px;
border-radius: 50%;
margin-right: 16px;
background: $tx3;
.sync-status-dot--connected {
background: #22C55E;
&--connected {
background: $acc;
}
}
.sync-status-text {
font-size: 14px;
color: #1E293B;
font-size: 28px;
color: $tx;
}
.sync-readings-panel {
background: #fff;
border-radius: 8px;
padding: 14px 16px;
margin-bottom: 12px;
background: $card;
border-radius: $r-sm;
padding: 24px;
margin-bottom: 16px;
box-shadow: $shadow-sm;
}
.sync-reading-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 0;
border-bottom: 1px solid #F1F5F9;
padding: 12px 0;
border-bottom: 1px solid $bd-l;
&:last-child {
border-bottom: none;
}
}
.sync-reading-type {
font-size: 13px;
color: #64748B;
font-size: 26px;
color: $tx2;
}
.sync-reading-value {
font-size: 15px;
font-weight: 600;
color: #0891B2;
font-size: 28px;
font-weight: bold;
color: $pri;
@include serif-number;
}
.sync-readings-count {
display: block;
margin-top: 8px;
font-size: 12px;
color: #94A3B8;
margin-top: 12px;
font-size: 22px;
color: $tx3;
text-align: center;
}
.sync-actions-row {
display: flex;
gap: 8px;
gap: 12px;
}
.sync-error {
margin: 16px;
padding: 12px 16px;
background: #FEF2F2;
border-radius: 8px;
border: 1px solid #FECACA;
margin: 24px;
padding: 20px 24px;
background: $dan-l;
border-radius: $r-sm;
}
.sync-error-text {
font-size: 13px;
color: #DC2626;
font-size: 26px;
color: $dan;
}
.sync-loading {
display: flex;
justify-content: center;
padding: 48px 16px;
@include flex-center;
padding: 64px 24px;
}
.sync-loading-text {
font-size: 14px;
color: #64748B;
font-size: 28px;
color: $tx2;
}
.sync-result-card {
display: flex;
flex-direction: column;
align-items: center;
background: #fff;
border-radius: 12px;
padding: 32px 16px;
margin-bottom: 16px;
background: $card;
border-radius: $r;
padding: 48px 24px;
margin-bottom: 24px;
box-shadow: $shadow-sm;
}
.sync-result-icon {
font-size: 40px;
color: #22C55E;
margin-bottom: 8px;
width: 80px;
height: 80px;
border-radius: 50%;
background: $acc-l;
@include flex-center;
color: $acc;
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 36px;
font-weight: bold;
margin-bottom: 16px;
}
.sync-result-title {
font-size: 18px;
font-weight: 600;
color: #1E293B;
margin-bottom: 4px;
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 34px;
font-weight: bold;
color: $tx;
margin-bottom: 8px;
}
.sync-result-count {
font-size: 13px;
color: #64748B;
font-size: 26px;
color: $tx2;
}

View File

@@ -104,7 +104,7 @@ export default function DeviceSync() {
const renderIdle = () => (
<View className="sync-section">
<View className="sync-hero">
<Text className="sync-hero-icon"></Text>
<Text className="sync-hero-icon">D</Text>
<Text className="sync-hero-title"></Text>
<Text className="sync-hero-desc"></Text>
</View>
@@ -176,7 +176,7 @@ export default function DeviceSync() {
const renderDone = () => (
<View className="sync-section">
<View className="sync-result-card">
<Text className="sync-result-icon"></Text>
<Text className="sync-result-icon">V</Text>
<Text className="sync-result-title"></Text>
<Text className="sync-result-count"> {syncCount} </Text>
</View>