433 lines
7.1 KiB
Plaintext
433 lines
7.1 KiB
Plaintext
/* pages/order/index.less */
|
|
|
|
@bg: #f5f6fa;
|
|
@card: #ffffff;
|
|
@dark: #1a1a2e;
|
|
@text: #3a3d5c;
|
|
@muted: #a0a3bd;
|
|
@border: #f0f1f5;
|
|
@accent: #1abc9c;
|
|
@accent-end: #17c3a5;
|
|
|
|
page {
|
|
background-color: @bg;
|
|
color: @dark;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
}
|
|
|
|
.page {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: @bg;
|
|
padding: 24rpx 24rpx 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* === 顶部(home 同款翡翠绿圆角卡片) === */
|
|
.header {
|
|
background: linear-gradient(135deg, #29b785 0%, #1a8a63 100%);
|
|
border-radius: 28rpx;
|
|
box-shadow: 0 12rpx 32rpx rgba(26, 138, 99, 0.25);
|
|
padding: 36rpx 32rpx;
|
|
position: relative;
|
|
overflow: hidden;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
|
|
&::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: -80rpx;
|
|
right: -60rpx;
|
|
width: 280rpx;
|
|
height: 280rpx;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, 0.03);
|
|
}
|
|
|
|
&::before {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -120rpx;
|
|
left: -80rpx;
|
|
width: 200rpx;
|
|
height: 200rpx;
|
|
border-radius: 50%;
|
|
background: rgba(255, 255, 255, 0.02);
|
|
}
|
|
}
|
|
|
|
.header-content {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.header-title {
|
|
display: block;
|
|
font-size: 36rpx;
|
|
font-weight: 700;
|
|
color: #fff;
|
|
letter-spacing: 2rpx;
|
|
margin-bottom: 12rpx;
|
|
}
|
|
|
|
.header-sub {
|
|
display: block;
|
|
font-size: 22rpx;
|
|
color: rgba(255, 255, 255, 0.65);
|
|
font-weight: 300;
|
|
letter-spacing: 1rpx;
|
|
}
|
|
|
|
.header-add {
|
|
position: relative;
|
|
z-index: 1;
|
|
flex-shrink: 0;
|
|
padding: 16rpx 28rpx;
|
|
font-size: 26rpx;
|
|
color: #fff;
|
|
background: rgba(255, 255, 255, 0.18);
|
|
border: 1rpx solid rgba(255, 255, 255, 0.4);
|
|
border-radius: 32rpx;
|
|
}
|
|
|
|
/* === 筛选栏 === */
|
|
.filter-bar {
|
|
padding: 24rpx 0 0;
|
|
}
|
|
|
|
.filter-scroll {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.filter-list {
|
|
display: inline-flex;
|
|
padding: 0 24rpx;
|
|
gap: 16rpx;
|
|
}
|
|
|
|
.filter-tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 12rpx 28rpx;
|
|
background: #ffffff;
|
|
border-radius: 28rpx;
|
|
font-size: 24rpx;
|
|
color: @muted;
|
|
border: 1rpx solid rgba(31, 61, 56, 0.06);
|
|
box-shadow: 0 4rpx 12rpx rgba(31, 61, 56, 0.05);
|
|
transition: all 0.25s;
|
|
|
|
&.active {
|
|
background: linear-gradient(135deg, @accent, @accent-end);
|
|
color: #fff;
|
|
border-color: transparent;
|
|
box-shadow: 0 4rpx 16rpx rgba(23, 195, 165, 0.3);
|
|
|
|
.filter-count {
|
|
background: rgba(255, 255, 255, 0.25);
|
|
color: #fff;
|
|
}
|
|
}
|
|
}
|
|
|
|
.filter-count {
|
|
min-width: 32rpx;
|
|
height: 32rpx;
|
|
padding: 0 8rpx;
|
|
margin-left: 8rpx;
|
|
background: rgba(0, 0, 0, 0.06);
|
|
border-radius: 16rpx;
|
|
font-size: 20rpx;
|
|
color: @muted;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* === 列表区域 === */
|
|
.list-area {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.list-scroll {
|
|
height: 100%;
|
|
}
|
|
|
|
.loading-box {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 200rpx 40rpx;
|
|
}
|
|
|
|
.empty-box {
|
|
margin-top: 24rpx;
|
|
background: @card;
|
|
border-radius: 24rpx;
|
|
border: 1rpx solid rgba(31, 61, 56, 0.06);
|
|
box-shadow: 0 6rpx 20rpx rgba(31, 61, 56, 0.07);
|
|
padding: 64rpx 40rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.loading-text {
|
|
color: @muted !important;
|
|
font-size: 26rpx !important;
|
|
}
|
|
|
|
.empty-text {
|
|
color: @muted !important;
|
|
font-size: 28rpx !important;
|
|
}
|
|
|
|
.empty-btn {
|
|
margin-top: 24rpx;
|
|
padding: 14rpx 48rpx;
|
|
background: linear-gradient(135deg, @accent, @accent-end);
|
|
color: #fff;
|
|
font-size: 26rpx;
|
|
border-radius: 28rpx;
|
|
display: inline-block;
|
|
}
|
|
|
|
/* === 订单卡片 === */
|
|
.card-list {
|
|
padding: 24rpx 0 40rpx;
|
|
}
|
|
|
|
.order-card {
|
|
margin-bottom: 20rpx;
|
|
background: @card;
|
|
border-radius: 24rpx;
|
|
border: 1rpx solid rgba(31, 61, 56, 0.06);
|
|
box-shadow: 0 6rpx 20rpx rgba(31, 61, 56, 0.07);
|
|
padding: 24rpx 32rpx;
|
|
transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.3s cubic-bezier(0.32, 0.72, 0, 1);
|
|
|
|
&:active {
|
|
transform: scale(0.98);
|
|
box-shadow: 0 4rpx 12rpx rgba(31, 61, 56, 0.08);
|
|
}
|
|
}
|
|
|
|
.card-top {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
margin-bottom: 12rpx;
|
|
}
|
|
|
|
.order-no {
|
|
font-size: 24rpx;
|
|
color: @muted;
|
|
font-weight: 500;
|
|
font-family: 'DIN Alternate', 'Helvetica Neue', monospace;
|
|
}
|
|
|
|
.status-badge {
|
|
font-size: 22rpx;
|
|
padding: 6rpx 20rpx;
|
|
border-radius: 30rpx;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.status-pending {
|
|
background: #fdf3e0;
|
|
color: #d99a2b;
|
|
}
|
|
|
|
.status-confirmed {
|
|
background: #e9f1f8;
|
|
color: #5c88a8;
|
|
}
|
|
|
|
.status-in_progress {
|
|
background: #e6f4ee;
|
|
color: #43a08a;
|
|
}
|
|
|
|
.status-completed {
|
|
background: #efedf6;
|
|
color: #8a7bb5;
|
|
}
|
|
|
|
.status-cancelled {
|
|
background: #f5f5f5;
|
|
color: #b0b0b0;
|
|
}
|
|
|
|
/* === 卡片主体 === */
|
|
.card-main {
|
|
padding: 0;
|
|
}
|
|
|
|
.patient-line {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20rpx;
|
|
margin-bottom: 16rpx;
|
|
}
|
|
|
|
.patient-avatar {
|
|
width: 72rpx;
|
|
height: 72rpx;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, @accent, @accent-end);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.avatar-char {
|
|
font-size: 28rpx;
|
|
font-weight: 700;
|
|
color: #fff;
|
|
}
|
|
|
|
.patient-meta {
|
|
flex: 1;
|
|
}
|
|
|
|
.patient-name-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12rpx;
|
|
margin-bottom: 4rpx;
|
|
}
|
|
|
|
.patient-name {
|
|
font-size: 30rpx;
|
|
font-weight: 600;
|
|
color: @dark;
|
|
}
|
|
|
|
.patient-sex {
|
|
font-size: 20rpx;
|
|
padding: 2rpx 10rpx;
|
|
border-radius: 8rpx;
|
|
font-weight: 500;
|
|
|
|
&.male {
|
|
background: rgba(26, 188, 156, 0.1);
|
|
color: @accent;
|
|
}
|
|
|
|
&.female {
|
|
background: rgba(234, 102, 150, 0.1);
|
|
color: #ea6696;
|
|
}
|
|
}
|
|
|
|
.patient-age {
|
|
font-size: 22rpx;
|
|
color: @muted;
|
|
}
|
|
|
|
.patient-phone {
|
|
font-size: 24rpx;
|
|
color: @muted;
|
|
}
|
|
|
|
.divider {
|
|
height: 1rpx;
|
|
background: @border;
|
|
margin: 16rpx 0;
|
|
}
|
|
|
|
.info-line {
|
|
display: flex;
|
|
align-items: baseline;
|
|
margin-bottom: 12rpx;
|
|
}
|
|
|
|
.line-label {
|
|
font-size: 24rpx;
|
|
color: @muted;
|
|
width: 64rpx;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.line-value {
|
|
font-size: 26rpx;
|
|
color: @text;
|
|
flex: 1;
|
|
}
|
|
|
|
/* === 卡片底部 === */
|
|
.card-bottom {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 20rpx 0 4rpx;
|
|
margin-top: 16rpx;
|
|
border-top: 1rpx solid @border;
|
|
}
|
|
|
|
.fee-area {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8rpx;
|
|
}
|
|
|
|
.fee-label {
|
|
font-size: 24rpx;
|
|
color: @muted;
|
|
}
|
|
|
|
.fee-amount {
|
|
font-size: 36rpx;
|
|
font-weight: 700;
|
|
color: @dark;
|
|
font-family: 'DIN Alternate', 'Helvetica Neue', sans-serif;
|
|
}
|
|
|
|
.action-area {
|
|
display: flex;
|
|
gap: 14rpx;
|
|
}
|
|
|
|
.action-btn {
|
|
padding: 14rpx 32rpx;
|
|
border-radius: 24rpx;
|
|
font-size: 24rpx;
|
|
font-weight: 500;
|
|
transition: all 0.2s;
|
|
|
|
&:active {
|
|
transform: scale(0.95);
|
|
}
|
|
}
|
|
|
|
.btn-solid {
|
|
background: linear-gradient(135deg, @accent, @accent-end);
|
|
color: #fff;
|
|
box-shadow: 0 4rpx 16rpx rgba(23, 195, 165, 0.25);
|
|
}
|
|
|
|
.btn-ghost {
|
|
background: @bg;
|
|
color: @muted;
|
|
border: 1rpx solid @border;
|
|
}
|
|
|
|
/* === 加载更多 === */
|
|
.load-more {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 32rpx 20rpx;
|
|
}
|
|
|
|
.no-more {
|
|
font-size: 24rpx;
|
|
color: @muted;
|
|
}
|