提交小程序合入代码

This commit is contained in:
HycJack
2026-05-09 16:50:42 +08:00
parent 83bb79a8d0
commit a7f3b4f8dd
19 changed files with 1762 additions and 30 deletions

View File

@@ -164,11 +164,21 @@
justify-content: space-between;
padding: 24px;
&.sleep-item:active {
background: #F8F9FA;
}
&.volume-item {
flex-direction: column;
align-items: stretch;
padding: 20px 24px 24px;
}
&.quick-sleep-item {
flex-direction: column;
align-items: stretch;
padding: 20px 24px 24px;
}
}
.control-left {
@@ -220,6 +230,14 @@
color: #FF8C42;
}
.control-link {
flex-shrink: 0;
margin-left: 16px;
font-size: 26px;
font-weight: 700;
color: #FF8C42;
}
.divider {
height: 1px;
margin: 0 24px;
@@ -236,6 +254,195 @@
}
}
.quick-sleep-header {
display: flex;
align-items: center;
margin-bottom: 18px;
}
.quick-sleep-actions {
display: flex;
gap: 16px;
}
.quick-sleep-btn {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
height: 82px;
border-radius: 18px;
&.sleep {
background: #1F2937;
}
&.wake {
background: #FF8C42;
}
&.disabled {
opacity: 0.65;
}
}
.quick-sleep-btn-text {
font-size: 28px;
font-weight: 700;
color: #FFFFFF;
}
.alarm-card {
margin: 0 24px 24px;
border-radius: 20px;
background: #FFFFFF;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
overflow: hidden;
}
.alarm-header {
padding: 24px 24px 18px;
background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%);
}
.alarm-title {
display: block;
font-size: 30px;
font-weight: 700;
color: #9F1239;
}
.alarm-subtitle {
display: block;
margin-top: 8px;
font-size: 24px;
line-height: 1.6;
color: #BE123C;
}
.alarm-body {
padding: 6px 24px 10px;
}
.alarm-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 18px 0;
border-bottom: 1px solid #F7E4E8;
&:last-child {
border-bottom: none;
}
}
.alarm-label {
font-size: 28px;
color: #666666;
}
.alarm-value {
max-width: 60%;
font-size: 28px;
text-align: right;
word-break: break-all;
color: #1A1A1A;
}
.alarm-empty {
padding: 24px;
}
.alarm-empty-text {
font-size: 26px;
line-height: 1.7;
color: #666666;
}
.alarm-history {
padding: 0 24px 20px;
border-top: 1px solid #F7E4E8;
}
.alarm-history-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 22px 0 18px;
}
.alarm-history-title {
font-size: 28px;
font-weight: 700;
color: #1A1A1A;
}
.alarm-history-count {
font-size: 24px;
color: #9CA3AF;
}
.alarm-history-item {
padding: 18px 0;
border-top: 1px solid #F5F5F5;
&:first-of-type {
border-top: none;
}
}
.alarm-history-main {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
}
.alarm-history-time {
flex: 1;
min-width: 0;
font-size: 26px;
font-weight: 600;
color: #1F2937;
}
.alarm-history-type {
flex-shrink: 0;
font-size: 24px;
font-weight: 600;
color: #BE123C;
}
.alarm-history-meta {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
margin-top: 10px;
}
.alarm-history-child,
.alarm-history-device {
flex: 1;
min-width: 0;
font-size: 24px;
color: #6B7280;
word-break: break-all;
}
.alarm-history-device {
text-align: right;
}
.alarm-history-empty {
padding: 8px 0 4px;
}
.alarm-history-empty-text {
font-size: 24px;
color: #9CA3AF;
}
.volume-slider {
display: flex;
align-items: center;