feat: 界面切换暖色主题
统一配色/圆角/间距与图标资源,订单页结构简化, 健康档案与订单编辑交互调整;附主题色方案文档
This commit is contained in:
@@ -77,7 +77,7 @@
|
||||
<text class="section-title">近7日订单</text>
|
||||
<view class="view-all" bindtap="viewAllOrders">
|
||||
<text>全部</text>
|
||||
<t-icon name="chevron-right" size="28rpx" color="#a0a3bd" />
|
||||
<t-icon name="chevron-right" size="28rpx" color="#A3988B" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
</view>
|
||||
|
||||
<view class="empty-state" wx:else>
|
||||
<t-icon name="inbox" size="72rpx" color="#d8dde8" />
|
||||
<t-icon name="inbox" size="72rpx" color="#DFD7CE" />
|
||||
<text class="empty-text">暂无近7日订单</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
+38
-33
@@ -1,8 +1,8 @@
|
||||
/* pages/home/index.wxss */
|
||||
|
||||
page {
|
||||
background: #ededed;
|
||||
color: #1a1a2e;
|
||||
background: #F4EFE9;
|
||||
color: #2A211B;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
||||
}
|
||||
|
||||
@@ -13,15 +13,15 @@ page {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
/* === 头部信息卡(翡翠绿实底) === */
|
||||
/* === 头部信息卡(暖棕主色实底) === */
|
||||
.header-card {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
background: linear-gradient(135deg, #29b785 0%, #1a8a63 100%);
|
||||
background: #C26A2E;
|
||||
border-radius: 28rpx;
|
||||
padding: 36rpx 32rpx;
|
||||
color: #ffffff;
|
||||
box-shadow: 0 12rpx 32rpx rgba(26, 138, 99, 0.25);
|
||||
box-shadow: 0 12rpx 32rpx rgba(122, 62, 29, 0.25);
|
||||
}
|
||||
|
||||
/* 装饰光斑,增加层次 */
|
||||
@@ -159,7 +159,7 @@ page {
|
||||
|
||||
.switch-track.on .switch-thumb {
|
||||
left: 26rpx;
|
||||
background-color: #1a8a63;
|
||||
background-color: #C26A2E;
|
||||
}
|
||||
|
||||
.stats-row {
|
||||
@@ -215,7 +215,7 @@ page {
|
||||
position: relative;
|
||||
font-size: 30rpx;
|
||||
font-weight: 600;
|
||||
color: #1a1a1a;
|
||||
color: #2A211B;
|
||||
margin-left: 20rpx;
|
||||
letter-spacing: 1rpx;
|
||||
}
|
||||
@@ -229,7 +229,7 @@ page {
|
||||
width: 8rpx;
|
||||
height: 28rpx;
|
||||
border-radius: 4rpx;
|
||||
background: linear-gradient(180deg, #2dd36f, #17c3a5);
|
||||
background: #C26A2E;
|
||||
}
|
||||
|
||||
.section-header {
|
||||
@@ -243,15 +243,15 @@ page {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 24rpx;
|
||||
color: #a0a3bd;
|
||||
color: #A3988B;
|
||||
}
|
||||
|
||||
/* === 快捷功能入口 === */
|
||||
.card {
|
||||
background-color: #ffffff;
|
||||
border-radius: 24rpx;
|
||||
border: 1rpx solid rgba(31, 61, 56, 0.06);
|
||||
box-shadow: 0 6rpx 20rpx rgba(31, 61, 56, 0.07);
|
||||
border: 1rpx solid rgba(90, 62, 42, 0.06);
|
||||
box-shadow: 0 6rpx 20rpx rgba(90, 62, 42, 0.07);
|
||||
}
|
||||
|
||||
.quick-grid {
|
||||
@@ -288,12 +288,12 @@ page {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 14rpx;
|
||||
box-shadow: inset 0 2rpx 4rpx rgba(255, 255, 255, 0.8), 0 4rpx 10rpx rgba(31, 61, 56, 0.06);
|
||||
box-shadow: inset 0 2rpx 4rpx rgba(255, 255, 255, 0.8), 0 4rpx 10rpx rgba(90, 62, 42, 0.06);
|
||||
}
|
||||
|
||||
.quick-label {
|
||||
font-size: 26rpx;
|
||||
color: #3a3f4d;
|
||||
color: #5C5044;
|
||||
}
|
||||
|
||||
/* === 订单列表 === */
|
||||
@@ -306,15 +306,15 @@ page {
|
||||
.order-card {
|
||||
background: #ffffff;
|
||||
border-radius: 24rpx;
|
||||
border: 1rpx solid rgba(31, 61, 56, 0.06);
|
||||
border: 1rpx solid rgba(90, 62, 42, 0.06);
|
||||
padding: 28rpx 32rpx;
|
||||
box-shadow: 0 6rpx 20rpx rgba(31, 61, 56, 0.07);
|
||||
box-shadow: 0 6rpx 20rpx rgba(90, 62, 42, 0.07);
|
||||
transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.3s cubic-bezier(0.32, 0.72, 0, 1);
|
||||
}
|
||||
|
||||
.order-card:active {
|
||||
transform: scale(0.98);
|
||||
box-shadow: 0 4rpx 12rpx rgba(31, 61, 56, 0.08);
|
||||
box-shadow: 0 4rpx 12rpx rgba(90, 62, 42, 0.08);
|
||||
}
|
||||
|
||||
.order-line1 {
|
||||
@@ -325,14 +325,14 @@ page {
|
||||
.order-patient {
|
||||
font-size: 30rpx;
|
||||
font-weight: 600;
|
||||
color: #1a1a1a;
|
||||
color: #2A211B;
|
||||
margin-right: 16rpx;
|
||||
}
|
||||
|
||||
.order-service {
|
||||
font-size: 26rpx;
|
||||
font-weight: 500;
|
||||
color: #1abc9c;
|
||||
color: #C26A2E;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -348,28 +348,33 @@ page {
|
||||
}
|
||||
|
||||
.status-pending {
|
||||
background: #fdf3e0;
|
||||
color: #d99a2b;
|
||||
background: #FBF0DC;
|
||||
color: #D98E04;
|
||||
}
|
||||
|
||||
.status-confirmed {
|
||||
background: #e9f1f8;
|
||||
color: #5c88a8;
|
||||
background: #EAF1F8;
|
||||
color: #3E6E9E;
|
||||
}
|
||||
|
||||
.status-in_progress {
|
||||
background: #e6f4ee;
|
||||
color: #43a08a;
|
||||
background: #FBEEDF;
|
||||
color: #C26A2E;
|
||||
}
|
||||
|
||||
.status-completed {
|
||||
background: #efedf6;
|
||||
color: #8a7bb5;
|
||||
background: #F0EDF6;
|
||||
color: #8A7BB5;
|
||||
}
|
||||
|
||||
.status-cancelled {
|
||||
background: #f5f5f5;
|
||||
color: #b0b0b0;
|
||||
background: #F3EEE8;
|
||||
color: #BFB6AC;
|
||||
}
|
||||
|
||||
.status-cancel_requested {
|
||||
background: #FBEDEB;
|
||||
color: #C0564A;
|
||||
}
|
||||
|
||||
.order-line2 {
|
||||
@@ -381,7 +386,7 @@ page {
|
||||
|
||||
.order-hospital {
|
||||
font-size: 26rpx;
|
||||
color: #888888;
|
||||
color: #8A8078;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -391,7 +396,7 @@ page {
|
||||
|
||||
.order-time {
|
||||
font-size: 26rpx;
|
||||
color: #a0a3bd;
|
||||
color: #A3988B;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@@ -399,16 +404,16 @@ page {
|
||||
.empty-state {
|
||||
background: #ffffff;
|
||||
border-radius: 24rpx;
|
||||
border: 1rpx solid rgba(31, 61, 56, 0.06);
|
||||
border: 1rpx solid rgba(90, 62, 42, 0.06);
|
||||
padding: 64rpx 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
box-shadow: 0 6rpx 20rpx rgba(31, 61, 56, 0.07);
|
||||
box-shadow: 0 6rpx 20rpx rgba(90, 62, 42, 0.07);
|
||||
}
|
||||
|
||||
.empty-text {
|
||||
margin-top: 16rpx;
|
||||
font-size: 26rpx;
|
||||
color: #c0c3d4;
|
||||
color: #C7BDB2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user