feat: 界面切换暖色主题
统一配色/圆角/间距与图标资源,订单页结构简化, 健康档案与订单编辑交互调整;附主题色方案文档
This commit is contained in:
+22
-24
@@ -1,20 +1,18 @@
|
||||
/* pages/customer/index.less */
|
||||
|
||||
// 颜色变量
|
||||
@bg-primary: #f5f6fa;
|
||||
@bg-primary: #FAF6F1;
|
||||
@bg-secondary: #ffffff;
|
||||
@bg-card: #ffffff;
|
||||
@accent-primary: #1abc9c;
|
||||
@accent-secondary: #17c3a5;
|
||||
@accent-gradient-start: #2dd36f;
|
||||
@accent-gradient-end: #17c3a5;
|
||||
@text-primary: #1a1a2e;
|
||||
@text-secondary: #6b7280;
|
||||
@text-muted: #9ca3af;
|
||||
@border-color: #e5e7eb;
|
||||
@male-color: #1abc9c;
|
||||
@female-color: #ff6b6b;
|
||||
@divider-color: #f3f4f6;
|
||||
@accent-primary: #C26A2E;
|
||||
@accent-secondary: #B4552A;
|
||||
@text-primary: #2A211B;
|
||||
@text-secondary: #6F655C;
|
||||
@text-muted: #A3988B;
|
||||
@border-color: #EAE1D6;
|
||||
@male-color: #3E6E9E;
|
||||
@female-color: #E86A8A;
|
||||
@divider-color: #F4EFE9;
|
||||
|
||||
page {
|
||||
background-color: @bg-primary;
|
||||
@@ -71,13 +69,13 @@ page {
|
||||
|
||||
.search-btn {
|
||||
padding: 16rpx 28rpx;
|
||||
background: linear-gradient(135deg, @accent-gradient-start, @accent-gradient-end);
|
||||
background: @accent-primary;
|
||||
color: #ffffff;
|
||||
font-size: 26rpx;
|
||||
font-weight: 500;
|
||||
border-radius: 32rpx;
|
||||
white-space: nowrap;
|
||||
box-shadow: 0 4rpx 16rpx rgba(23, 195, 165, 0.25);
|
||||
box-shadow: 0 4rpx 16rpx rgba(180, 85, 42, 0.25);
|
||||
|
||||
&:active {
|
||||
opacity: 0.9;
|
||||
@@ -165,7 +163,7 @@ page {
|
||||
.empty-action {
|
||||
margin-top: 30rpx;
|
||||
padding: 16rpx 48rpx;
|
||||
background: linear-gradient(135deg, @accent-gradient-start, @accent-gradient-end);
|
||||
background: @accent-primary;
|
||||
color: #ffffff;
|
||||
font-size: 28rpx;
|
||||
border-radius: 32rpx;
|
||||
@@ -214,15 +212,15 @@ page {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: linear-gradient(135deg, @accent-gradient-start, @accent-gradient-end);
|
||||
box-shadow: 0 4rpx 12rpx rgba(23, 195, 165, 0.25);
|
||||
background: @accent-primary;
|
||||
box-shadow: 0 4rpx 12rpx rgba(180, 85, 42, 0.25);
|
||||
|
||||
&.male {
|
||||
background: linear-gradient(135deg, #2dd36f, #17c3a5);
|
||||
background: @male-color;
|
||||
}
|
||||
|
||||
&.female {
|
||||
background: linear-gradient(135deg, #ff6b6b, #ff8787);
|
||||
background: @female-color;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -263,12 +261,12 @@ page {
|
||||
font-weight: 500;
|
||||
|
||||
&.male {
|
||||
background-color: rgba(26, 188, 156, 0.1);
|
||||
background-color: rgba(62, 110, 158, 0.1);
|
||||
color: @male-color;
|
||||
}
|
||||
|
||||
&.female {
|
||||
background-color: rgba(255, 107, 107, 0.1);
|
||||
background-color: rgba(232, 106, 138, 0.1);
|
||||
color: @female-color;
|
||||
}
|
||||
}
|
||||
@@ -301,16 +299,16 @@ page {
|
||||
width: 72rpx;
|
||||
height: 72rpx;
|
||||
border-radius: 50%;
|
||||
background-color: rgba(26, 188, 156, 0.08);
|
||||
background-color: rgba(194, 106, 46, 0.08);
|
||||
transition: all 0.2s ease;
|
||||
|
||||
&:active {
|
||||
background-color: rgba(26, 188, 156, 0.15);
|
||||
background-color: rgba(194, 106, 46, 0.15);
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
&.call {
|
||||
background-color: rgba(26, 188, 156, 0.08);
|
||||
background-color: rgba(194, 106, 46, 0.08);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<!-- 搜索区域 -->
|
||||
<view class="search-section">
|
||||
<view class="search-bar">
|
||||
<t-icon name="search" size="32rpx" color="#9ca3af" />
|
||||
<t-icon name="search" size="32rpx" color="#A3988B" />
|
||||
<input
|
||||
class="search-input"
|
||||
type="text"
|
||||
@@ -15,7 +15,7 @@
|
||||
bindconfirm="onSearch"
|
||||
/>
|
||||
<view class="search-clear" wx:if="{{searchKey}}" bindtap="onClearSearch">
|
||||
<t-icon name="close-circle" size="32rpx" color="#9ca3af" />
|
||||
<t-icon name="close-circle" size="32rpx" color="#A3988B" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="search-btn" bindtap="onSearch">搜索</view>
|
||||
@@ -100,7 +100,7 @@
|
||||
<!-- 操作按钮 -->
|
||||
<view class="customer-action">
|
||||
<view class="action-btn call" data-phone="{{item.mobile}}" catchtap="onCallPhone">
|
||||
<t-icon name="call" size="32rpx" color="#1abc9c" />
|
||||
<t-icon name="call" size="32rpx" color="#C26A2E" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user