tmp
This commit is contained in:
@@ -1,24 +1,23 @@
|
||||
/* pages/order/index.less */
|
||||
|
||||
// 颜色变量
|
||||
@bg-primary: #0f1535;
|
||||
@bg-secondary: #1a1f3c;
|
||||
@bg-card: #1e2548;
|
||||
@bg-card-hover: #252d5a;
|
||||
// 颜色变量 - 参考图浅色社交风格
|
||||
@bg-primary: #f5f6fa;
|
||||
@bg-secondary: #ffffff;
|
||||
@bg-card: #ffffff;
|
||||
@accent-primary: #4c6ef5;
|
||||
@accent-secondary: #6b7aff;
|
||||
@accent-gradient-start: #4c6ef5;
|
||||
@accent-gradient-end: #748ffc;
|
||||
@text-primary: #ffffff;
|
||||
@text-secondary: #a0a8d0;
|
||||
@text-muted: #6b7298;
|
||||
@border-color: #2a3366;
|
||||
@text-primary: #1a1a2e;
|
||||
@text-secondary: #6b7280;
|
||||
@text-muted: #9ca3af;
|
||||
@border-color: #e5e7eb;
|
||||
@status-pending: #f59f00;
|
||||
@status-confirmed: #4c6ef5;
|
||||
@status-in-progress: #20c997;
|
||||
@status-completed: #51cf66;
|
||||
@status-cancelled: #ff6b6b;
|
||||
@divider-color: #2a3366;
|
||||
@divider-color: #f3f4f6;
|
||||
|
||||
page {
|
||||
background-color: @bg-primary;
|
||||
@@ -33,79 +32,11 @@ page {
|
||||
background-color: @bg-primary;
|
||||
}
|
||||
|
||||
// ========== 顶部统计区域 ==========
|
||||
.header-section {
|
||||
position: relative;
|
||||
padding: 30rpx 30rpx 40rpx;
|
||||
overflow: hidden;
|
||||
|
||||
.header-bg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: linear-gradient(135deg, @accent-gradient-start 0%, @accent-gradient-end 100%);
|
||||
border-radius: 0 0 40rpx 40rpx;
|
||||
opacity: 0.15;
|
||||
}
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: -100rpx;
|
||||
right: -100rpx;
|
||||
width: 300rpx;
|
||||
height: 300rpx;
|
||||
background: radial-gradient(circle, rgba(76, 110, 245, 0.2) 0%, transparent 70%);
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
.stats-container {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-around;
|
||||
background: rgba(30, 37, 72, 0.8);
|
||||
backdrop-filter: blur(20rpx);
|
||||
border-radius: 24rpx;
|
||||
padding: 30rpx 20rpx;
|
||||
border: 1rpx solid rgba(107, 122, 255, 0.1);
|
||||
box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.stat-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
font-size: 40rpx;
|
||||
font-weight: 700;
|
||||
color: @text-primary;
|
||||
line-height: 1.2;
|
||||
margin-bottom: 8rpx;
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
font-size: 24rpx;
|
||||
color: @text-secondary;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.stat-divider {
|
||||
width: 1rpx;
|
||||
height: 60rpx;
|
||||
background: linear-gradient(to bottom, transparent, @divider-color, transparent);
|
||||
}
|
||||
|
||||
// ========== 筛选区域 ==========
|
||||
.filter-section {
|
||||
padding: 20rpx 0;
|
||||
background-color: @bg-primary;
|
||||
background-color: @bg-secondary;
|
||||
border-bottom: 1rpx solid @border-color;
|
||||
}
|
||||
|
||||
.filter-scroll {
|
||||
@@ -114,28 +45,33 @@ page {
|
||||
|
||||
.filter-list {
|
||||
display: inline-flex;
|
||||
padding: 0 20rpx;
|
||||
gap: 16rpx;
|
||||
padding: 0 24rpx;
|
||||
gap: 20rpx;
|
||||
}
|
||||
|
||||
.filter-item {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 16rpx 28rpx;
|
||||
background-color: @bg-card;
|
||||
padding: 16rpx 32rpx;
|
||||
background-color: @bg-primary;
|
||||
border-radius: 32rpx;
|
||||
border: 1rpx solid transparent;
|
||||
border: 1rpx solid @border-color;
|
||||
transition: all 0.3s ease;
|
||||
|
||||
&.active {
|
||||
background: linear-gradient(135deg, @accent-gradient-start, @accent-gradient-end);
|
||||
border-color: transparent;
|
||||
box-shadow: 0 4rpx 16rpx rgba(76, 110, 245, 0.3);
|
||||
box-shadow: 0 4rpx 16rpx rgba(76, 110, 245, 0.25);
|
||||
|
||||
.filter-text {
|
||||
color: @text-primary;
|
||||
color: #ffffff;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.filter-badge {
|
||||
background-color: #ffffff;
|
||||
color: @accent-primary;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -156,7 +92,7 @@ page {
|
||||
background-color: @status-cancelled;
|
||||
border-radius: 16rpx;
|
||||
font-size: 20rpx;
|
||||
color: @text-primary;
|
||||
color: #ffffff;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
@@ -168,7 +104,7 @@ page {
|
||||
|
||||
.order-scroll {
|
||||
height: 100%;
|
||||
padding: 0 20rpx;
|
||||
padding: 0 24rpx;
|
||||
}
|
||||
|
||||
.loading-container,
|
||||
@@ -193,7 +129,7 @@ page {
|
||||
margin-top: 30rpx;
|
||||
padding: 16rpx 48rpx;
|
||||
background: linear-gradient(135deg, @accent-gradient-start, @accent-gradient-end);
|
||||
color: @text-primary;
|
||||
color: #ffffff;
|
||||
font-size: 28rpx;
|
||||
border-radius: 32rpx;
|
||||
display: inline-block;
|
||||
@@ -201,7 +137,7 @@ page {
|
||||
|
||||
// ========== 订单卡片 ==========
|
||||
.order-cards {
|
||||
padding-bottom: 40rpx;
|
||||
padding: 24rpx 0 40rpx;
|
||||
}
|
||||
|
||||
.order-card {
|
||||
@@ -209,34 +145,13 @@ page {
|
||||
background-color: @bg-card;
|
||||
border-radius: 24rpx;
|
||||
border: 1rpx solid @border-color;
|
||||
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
|
||||
overflow: hidden;
|
||||
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
||||
|
||||
&:active {
|
||||
transform: scale(0.98);
|
||||
background-color: @bg-card-hover;
|
||||
}
|
||||
|
||||
// 状态左边框
|
||||
&.pending {
|
||||
border-left: 4rpx solid @status-pending;
|
||||
}
|
||||
|
||||
&.confirmed {
|
||||
border-left: 4rpx solid @status-confirmed;
|
||||
}
|
||||
|
||||
&.in_progress {
|
||||
border-left: 4rpx solid @status-in-progress;
|
||||
}
|
||||
|
||||
&.completed {
|
||||
border-left: 4rpx solid @status-completed;
|
||||
}
|
||||
|
||||
&.cancelled {
|
||||
border-left: 4rpx solid @status-cancelled;
|
||||
opacity: 0.85;
|
||||
box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -244,7 +159,7 @@ page {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 24rpx 28rpx 16rpx;
|
||||
padding: 28rpx 28rpx 20rpx;
|
||||
}
|
||||
|
||||
.order-id {
|
||||
@@ -256,38 +171,39 @@ page {
|
||||
.order-id-text {
|
||||
font-size: 24rpx;
|
||||
color: @text-muted;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.status-tag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 6rpx 16rpx;
|
||||
border-radius: 8rpx;
|
||||
padding: 8rpx 18rpx;
|
||||
border-radius: 20rpx;
|
||||
font-size: 22rpx;
|
||||
font-weight: 600;
|
||||
|
||||
&.pending {
|
||||
background-color: rgba(245, 159, 0, 0.15);
|
||||
background-color: rgba(245, 159, 0, 0.1);
|
||||
color: @status-pending;
|
||||
}
|
||||
|
||||
&.confirmed {
|
||||
background-color: rgba(76, 110, 245, 0.15);
|
||||
color: @accent-secondary;
|
||||
background-color: rgba(76, 110, 245, 0.1);
|
||||
color: @accent-primary;
|
||||
}
|
||||
|
||||
&.in_progress {
|
||||
background-color: rgba(32, 201, 151, 0.15);
|
||||
background-color: rgba(32, 201, 151, 0.1);
|
||||
color: @status-in-progress;
|
||||
}
|
||||
|
||||
&.completed {
|
||||
background-color: rgba(81, 207, 102, 0.15);
|
||||
background-color: rgba(81, 207, 102, 0.1);
|
||||
color: @status-completed;
|
||||
}
|
||||
|
||||
&.cancelled {
|
||||
background-color: rgba(255, 107, 107, 0.15);
|
||||
background-color: rgba(255, 107, 107, 0.1);
|
||||
color: @status-cancelled;
|
||||
}
|
||||
}
|
||||
@@ -298,72 +214,75 @@ page {
|
||||
}
|
||||
|
||||
.patient-row {
|
||||
margin-bottom: 16rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.patient-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 20rpx;
|
||||
gap: 24rpx;
|
||||
}
|
||||
|
||||
.patient-avatar {
|
||||
width: 72rpx;
|
||||
height: 72rpx;
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
background: linear-gradient(135deg, @accent-gradient-start, @accent-gradient-end);
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
box-shadow: 0 4rpx 12rpx rgba(76, 110, 245, 0.25);
|
||||
}
|
||||
|
||||
.avatar-text {
|
||||
font-size: 28rpx;
|
||||
font-size: 30rpx;
|
||||
font-weight: 600;
|
||||
color: @text-primary;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.patient-detail {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6rpx;
|
||||
gap: 8rpx;
|
||||
}
|
||||
|
||||
.patient-name-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12rpx;
|
||||
gap: 14rpx;
|
||||
}
|
||||
|
||||
.patient-name {
|
||||
font-size: 30rpx;
|
||||
font-size: 32rpx;
|
||||
font-weight: 600;
|
||||
color: @text-primary;
|
||||
}
|
||||
|
||||
.patient-gender {
|
||||
font-size: 22rpx;
|
||||
padding: 2rpx 10rpx;
|
||||
border-radius: 6rpx;
|
||||
background-color: rgba(107, 122, 255, 0.15);
|
||||
color: @accent-secondary;
|
||||
padding: 4rpx 12rpx;
|
||||
border-radius: 10rpx;
|
||||
background-color: rgba(76, 110, 245, 0.1);
|
||||
color: @accent-primary;
|
||||
font-weight: 500;
|
||||
|
||||
&.male {
|
||||
background-color: rgba(76, 110, 245, 0.15);
|
||||
background-color: rgba(76, 110, 245, 0.1);
|
||||
color: @accent-primary;
|
||||
}
|
||||
|
||||
&.female {
|
||||
background-color: rgba(255, 107, 107, 0.15);
|
||||
background-color: rgba(255, 107, 107, 0.1);
|
||||
color: @status-cancelled;
|
||||
}
|
||||
}
|
||||
|
||||
.patient-age {
|
||||
font-size: 22rpx;
|
||||
font-size: 24rpx;
|
||||
color: @text-secondary;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.patient-phone {
|
||||
@@ -373,25 +292,25 @@ page {
|
||||
|
||||
.info-divider {
|
||||
height: 1rpx;
|
||||
background: linear-gradient(to right, transparent, @divider-color, transparent);
|
||||
margin: 16rpx 0;
|
||||
background-color: @divider-color;
|
||||
margin: 20rpx 0;
|
||||
}
|
||||
|
||||
.info-item {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 12rpx;
|
||||
margin-bottom: 12rpx;
|
||||
gap: 14rpx;
|
||||
margin-bottom: 14rpx;
|
||||
}
|
||||
|
||||
.info-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4rpx;
|
||||
gap: 6rpx;
|
||||
}
|
||||
|
||||
.hospital-name {
|
||||
font-size: 26rpx;
|
||||
font-size: 28rpx;
|
||||
color: @text-primary;
|
||||
font-weight: 500;
|
||||
}
|
||||
@@ -404,16 +323,19 @@ page {
|
||||
.service-name {
|
||||
font-size: 26rpx;
|
||||
color: @text-secondary;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.time-text {
|
||||
font-size: 26rpx;
|
||||
color: @text-secondary;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.attendant-name {
|
||||
font-size: 26rpx;
|
||||
color: @text-secondary;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
// ========== 卡片底部 ==========
|
||||
@@ -421,9 +343,9 @@ page {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 20rpx 28rpx 24rpx;
|
||||
margin-top: 8rpx;
|
||||
border-top: 1rpx solid rgba(42, 51, 102, 0.5);
|
||||
padding: 24rpx 28rpx 28rpx;
|
||||
margin-top: 12rpx;
|
||||
border-top: 1rpx solid @divider-color;
|
||||
}
|
||||
|
||||
.fee-section {
|
||||
@@ -438,7 +360,7 @@ page {
|
||||
}
|
||||
|
||||
.fee-value {
|
||||
font-size: 36rpx;
|
||||
font-size: 38rpx;
|
||||
font-weight: 700;
|
||||
color: @status-pending;
|
||||
}
|
||||
@@ -452,7 +374,7 @@ page {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 14rpx 32rpx;
|
||||
padding: 16rpx 36rpx;
|
||||
border-radius: 28rpx;
|
||||
font-size: 26rpx;
|
||||
font-weight: 500;
|
||||
@@ -466,17 +388,17 @@ page {
|
||||
|
||||
.btn-primary {
|
||||
background: linear-gradient(135deg, @accent-gradient-start, @accent-gradient-end);
|
||||
color: @text-primary;
|
||||
box-shadow: 0 4rpx 16rpx rgba(76, 110, 245, 0.3);
|
||||
color: #ffffff;
|
||||
box-shadow: 0 4rpx 16rpx rgba(76, 110, 245, 0.25);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background-color: transparent;
|
||||
background-color: @bg-primary;
|
||||
color: @text-secondary;
|
||||
border: 1rpx solid @border-color;
|
||||
|
||||
&:active {
|
||||
background-color: rgba(107, 122, 255, 0.1);
|
||||
background-color: rgba(76, 110, 245, 0.05);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user